#77 java error with rocksaw.dll

ver_3.x
open
nobody
Windows (24)
5
2012-11-05
2009-06-20
Frank Kannemann
No

when strting scan (tried re-copied app tried latest java 1.6 14 same problem)

java.lang.UnsatisfiedLinkError: C:\Documents and Settings\xxx\Local Settings\Temp\rocksaw.dll: Invalid access to memory location

popup appears can only click ok...

When trying changing preferences:

java.lang.NoClassDefFoundError: Could not initialize class org.savarese.rock.saw.net.RawSocket

Java tests on sun web site pass...

Must some weird configuration issue on my system

Discussion

  • Dave Private
    Dave Private
    2012-11-05

    I can confirm this behavior.
    OS:
    OS Name: Microsoft Windows Server 2008 R2 Enterprise
    OS Version: 6.1.7601 Service Pack 1 Build 7601
    OS Manufacturer: Microsoft Corporation
    OS Configuration: Member Server
    OS Build Type: Multiprocessor Free

    Java:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

    I added some debug prints: then I got:


    Nov 5, 2012 12:52:59 PM net.azib.ipscan.core.net.PingerRegistryImpl createPinger

    SEVERE: Unable to create pinger: pinger.icmp
    java.lang.ExceptionInInitializerError
    at net.azib.ipscan.core.net.ICMPSharedPinger.<init>(ICMPSharedPinger.java:51)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at net.azib.ipscan.core.net.PingerRegistryImpl.createPinger(PingerRegistryImpl.java:71)
    at net.azib.ipscan.core.net.PingerRegistryImpl.checkSelectedPinger(PingerRegistryImpl.java:88)
    at net.azib.ipscan.gui.actions.StartStopScanningAction.preScanChecks(StartStopScanningAction.java:127)
    at net.azib.ipscan.gui.actions.StartStopScanningAction.widgetSelected(StartStopScanningAction.java:118)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at net.azib.ipscan.Main.main(Main.java:91)
    Caused by: java.lang.RuntimeException: Unable to extract native library: rocksaw
    at net.azib.ipscan.core.LibraryLoader.loadLibrary(LibraryLoader.java:50)
    at org.savarese.rocksaw.net.RawSocket.<clinit>(RawSocket.java:82)
    ... 15 more
    Caused by: java.io.IOException: rocksaw.dll not found in the jar file (classpath)
    at net.azib.ipscan.core.LibraryLoader.loadLibrary(LibraryLoader.java:36)
    ... 16 more
    Nov 5, 2012 12:52:59 PM net.azib.ipscan.core.net.PingerRegistryImpl checkSelectedPinger
    INFO: ICMP pinger failed: net.azib.ipscan.fetchers.FetcherException: pingerCreateFailure


    But it happens only for non-privileged user (independently of RDP session or not).
    If I'm logged as user with Admin privileges (member of Local Admins group, even the user is domain user) then everything is working as expected (with no exceptions and any other issues)