This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 168910 - Remote pack not generating properly.
Summary: Remote pack not generating properly.
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-21 16:53 UTC by prestonfm
Modified: 2013-10-16 07:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description prestonfm 2009-07-21 16:53:00 UTC
I'm trying to generate a remote pack for glassfish on linux with a 32 bit JVM. Running calibrate.sh results in the
following 

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:141)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library:
/home/glassfish/glassfish/profiler-server-linux/lib/deployed/jdk15/linux-amd64/libprofilerinterface.so
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
        at java.lang.Runtime.load0(Runtime.java:769)
        at java.lang.System.load(System.java:968)
        at org.netbeans.lib.profiler.server.ProfilerServer.loadNativeLibrary(ProfilerServer.java:818)
        at org.netbeans.lib.profiler.server.ProfilerActivate15.activate(ProfilerActivate15.java:100)
        at org.netbeans.lib.profiler.server.ProfilerActivate15.premain(ProfilerActivate15.java:71)


The folder it's looking for is "deployed/jdk15/linux-amd64". The folder in the remote pack is "deployed/jdk15/linux".
Changing the folder name just results in another exception. Furthermore, I selected 1.6 as the target so I'm not sure
why it's looking at jdk15 instead of jdk16.
Comment 1 Tomas Hurka 2009-07-21 19:21:23 UTC
It looks to me that you are running calibration on 64bit JVM - therefore it is looking for 64bit binary, but you have generated 32bit remote pack. 
Comment 2 prestonfm 2009-07-21 19:57:31 UTC
That was it. Thanks!