|
List Info
Thread: Profiling with netbeans...
|
|
| Profiling with netbeans... |

|
2008-04-10 20:00:13 |
|
I'm getting an error similar to the one in Eclipse:
profile: Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 8) Profiler Agent: Established local connection with the tool
Welcome to Felix. =================
ERROR: Error starting reference:file:sc-bundles/util.jar (org.osgi.framework.BundleException: Activator start error.) java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
at net.java.sip.communicator.util.UtilActivator.<clinit>(UtilActivator.java:25) 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) ERROR: Error starting reference:file:sc-bundles/fileaccess.jar (org.osgi.framework.BundleException: Activator start error.)
at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3432) at org.apache.felix.framework.Felix._startBundle(Felix.java:1531)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1470) at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
at java.lang.Thread.run(Thread.java:619) java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
I have created a new target called 'profile', taht is exactly like run, except for a few tags:
<target name="profile" description="Profile Project"> <fail unless="netbeans.home">Este destino só pode ser executado no NetBeans IDE.</fail>
<nbprofiledirect>
</nbprofiledirect> <!-- forking prevents from debugging --> <java classname="org.apache.felix.main.Main" fork="true" failonerror="true"
classpathref="project.class.path">
<!-- Sets the charset for the messages --> <!--sysproperty key="icq.custom.message.charset" value="windows-1252"/-->
&nbs | |