List Info

Thread: Profiling with netbeans...




Profiling with netbeans...
user name
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
&nbsp; &nbsp;   ;  at net.java.sip.communicator.util.UtilActivator.<clinit>(UtilActivator.java:25)
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
&nbsp; &nbsp;   ;  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
&nbsp; &nbsp; &nbsp;   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 &nbsp; &nbsp;   ; 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.)
  ; &nbsp; &nbsp;  at java.lang.Class.newInstance0(Class.java:355)
 &nbsp; &nbsp; &nbsp;  at java.lang.Class.newInstance(Class.java:308)
 &nbsp; &nbsp; &nbsp;  at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3432)
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.felix.framework.Felix._startBundle(Felix.java:1531)
  ; &nbsp; &nbsp;  at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
&nbsp; &nbsp; &nbsp;   at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
&nbsp; &nbsp; &nbsp;   at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
&nbsp; &nbsp; &nbsp;   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:
&lt;target name=";profile&quot; description="Profile Project&quot;>
&nbsp; &nbsp; <fail unless=&quot;netbeans.home">Este destino só pode ser executado no NetBeans IDE.</fail>

&nbsp; &nbsp;   <nbprofiledirect&gt;
 &nbsp;   ; &nbsp; </nbprofiledirect&gt;

   ; &nbsp; &nbsp;  <!-- forking prevents from debugging -->
&nbsp; &nbsp; &nbsp;   <java classname="org.apache.felix.main.Main&quot;
 ; &nbsp; &nbsp; &nbsp; &nbsp;   fork=";true"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; failonerror="true"
&nbsp;   ; &nbsp; &nbsp; &nbsp;  classpathref="project.class.path"> &nbsp;   ; &nbsp; &nbsp; &nbsp;

 &nbsp; &nbsp;   ; &nbsp; &nbsp; <!-- Sets the charset for the messages -->
&nbsp; &nbsp; &nbsp;   ; &nbsp;  <!--sysproperty key="icq.custom.message.charset" value=&quot;windows-1252"/-->

&nbsp; &nbsp;   ; &nbsp; &nbsp;  <!-- Tell felix to run sip-communicator-->;
 &nbsp; &nbsp; &nbsp;   ; &nbsp; <sysproperty key="felix.config.properties"
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  value=&quot;file:${lib}/felix.client.run.properties&quot;/>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; <!-- Tell java.util.logging about our logging preferences -->
&nbsp; &nbsp; &nbsp;   ; &nbsp;  <sysproperty key="java.util.logging.config.file&quot;
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; value=&quot;$/logging.properties"/>

&nbsp; &nbsp;   ; &nbsp; &nbsp;  <sysproperty key="java.net.preferIPv6Addresses";
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; value=&quot;false&quot;/>

&nbsp; &nbsp;   ; &nbsp; &nbsp;  <!--sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; value=&quot;${user.home}"/-->
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; 
 &nbsp; &nbsp; &nbsp;   ; &nbsp; <!-- Setting properties necessary for dependencies on native libs.-->;
 &nbsp; &nbsp; &nbsp;   ; &nbsp; <sysproperty key="java.library.path";
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   path=";${ld.library.path}:${path}:${dyld.library.path}"/>

 ; &nbsp; &nbsp; &nbsp; &nbsp;   <!-- pass l10n properties from ant call for
   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; easy translation debugging -->
&nbsp; &nbsp; &nbsp;   ; &nbsp;  <sysproperty key="user.language" value=&quot;${user.language}&quot; />
&nbsp; &nbsp;   ; &nbsp; &nbsp;  <sysproperty key="user.country" value=&quot;${user.country}"; />
&nbsp; &nbsp; &nbsp; &nbsp;   ;  <sysproperty key="user.variant" value=&quot;${user.variant}"; />

&nbsp; &nbsp; &nbsp;   ; &nbsp;  <env key="LD_LIBRARY_PATH" path=";${ld.library.path}&quot;/>
  ; &nbsp; &nbsp; &nbsp; &nbsp;  <env key="PATH" path=";$&quot;/>
&nbsp; &nbsp;   ; &nbsp; &nbsp;  <env key="DYLD_LIBRARY_PATH"; path=";${dyld.library.path}&quot;/>
  ; &nbsp; &nbsp; &nbsp; &nbsp; 
 &nbsp; &nbsp;   ; &nbsp; &nbsp; <jvmarg value=&quot;${profiler.info.jvmargs.agent}&quot;/>
 &nbsp; &nbsp;   ; </java&gt; &nbsp; &nbsp;   ;
 &nbsp;  </target>

I really don't know what's going on. Any tips would be precious!
Thanks.

--
Thiago 'bolaum' Borges Abdnur
----------------------------------
"Trust no one...&quot;
- Deep Throat (The X-Files)
Re: Profiling with netbeans...
user name
2008-04-11 01:32:14
Hi,

the error you get is that OSGi didn't see the classes of the
profiler.
Its that the netbeans profiler replaces some classes to do
the profile 
thing,
so if you insert the package
org.netbeans.lib.profiler.server as
system package in lib/felix.client.run.properties in the
property 
org.osgi.framework.system.packages=....
and then in the manifest files (util.manifest.mf and 
fileaccess.manifest.mf) for the bundles util and fileaccess
service
also import this package the problem will disappear.
The problem is that you have to do for all bundles that are
started.
I don't know is there any workaround or hack for felix to
avoid changing 
all the manifest files, you
can search for an answer on the felix mailing list or post
your question 
regarding this importing of packages
on the list.

Cheers
damencho

Thiago Bolaum wrote:
> 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(Nativ
e Method)
>         at 
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native
ConstructorAccessorImpl.java:39)
>         at 
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De
legatingConstructorAccessorImpl.java:27)
>         at
java.lang.reflect.Constructor.newInstance(Constructor.java:5
13)
> 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:153
1)
>         at
org.apache.felix.framework.Felix.startBundle(Felix.java:1470
)
>         at 
>
org.apache.felix.framework.Felix.setFrameworkStartLevel(Feli
x.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"/-->
>
>             <!-- Tell felix to run
sip-communicator-->
>             <sysproperty
key="felix.config.properties"
>                
value="file:$/felix.client.run.properties"/&g
t;
>
>             <!-- Tell java.util.logging about our
logging preferences -->
>             <sysproperty
key="java.util.logging.config.file"
>                
value="$/logging.properties"/>
>
>             <sysproperty
key="java.net.preferIPv6Addresses"
>                 value="false"/>
>
>             <!--sysproperty 
>
key="net.java.sip.communicator.SC_HOME_DIR_LOCATION&quo
t;
>                    
value="${user.home}"/-->
>                
>             <!-- Setting properties necessary for
dependencies on 
> native libs.-->
>             <sysproperty
key="java.library.path"
>                
path="${ld.library.path}:$:${dyld.library.path}&q
uot;/>
>
>             <!-- pass l10n properties from ant call
for
>                  easy translation debugging -->
>             <sysproperty
key="user.language"
value="${user.language}" />
>             <sysproperty
key="user.country"
value="${user.country}" />
>             <sysproperty
key="user.variant"
value="${user.variant}" />
>
>             <env key="LD_LIBRARY_PATH"
path="${ld.library.path}"/>
>             <env key="PATH"
path="$"/>
>             <env key="DYLD_LIBRARY_PATH"
path="${dyld.library.path}"/>
>            
>  *           <jvmarg
value="${profiler.info.jvmargs.agent}"/>*
>         </java>       
>     </target>
>
> I really don't know what's going on. Any tips would be
precious!
> Thanks.
>
> -- 
> Thiago 'bolaum' Borges Abdnur
> ----------------------------------
> "Trust no one..."
> - Deep Throat (The X-Files) 


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Re: Profiling with netbeans...
user name
2008-04-11 03:54:03
When I click the VM Telemetry, a minus blinking icon appears in bottom-left corner of Netbeans. When I click it, this is the hole stack trace it gives:

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel$1
 &nbsp;  at org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel.&lt;init>(MemoryGraphPanel.java:149)
 ; &nbsp; at org.netbeans.modules.profiler.TelemetryWindow.<init>(TelemetryWindow.java:331)
&nbsp; &nbsp; at org.netbeans.modules.profiler.TelemetryWindow.getDefault(TelemetryWindow.java:378)
&nbsp; &nbsp; at org.netbeans.modules.profiler.actions.ShowTelemetryViewAction.actionPerformed(ShowTelemetryViewAction.java:79)
 &nbsp;  at org.netbeans.modules.profiler.ProfilerControlPanel2$ViewPanel.actionPerformed(ProfilerControlPanel2.java:1606)
 &nbsp;  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
&nbsp; &nbsp; at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
 &nbsp;  at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
 ; &nbsp; at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
 ; &nbsp; at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
  ;  at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
&nbsp;   at java.awt.Component.processMouseEvent(Component.java:6041)
 &nbsp;  at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
&nbsp; &nbsp; at java.awt.Component.processEvent(Component.java:5806)
&nbsp;   at java.awt.Container.processEvent(Container.java:2058)
 &nbsp;  at java.awt.Component.dispatchEventImpl(Component.java:4413)
 &nbsp;  at java.awt.Container.dispatchEventImpl(Container.java:2116)
 &nbsp;  at java.awt.Component.dispatchEvent(Component.java:4243)
  ;  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
&nbsp; &nbsp; at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
   ; at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
 &nbsp;  at java.awt.Container.dispatchEventImpl(Container.java:2102)
 ; &nbsp; at java.awt.Window.dispatchEventImpl(Window.java:2440)
&nbsp; &nbsp; at java.awt.Component.dispatchEvent(Component.java:4243)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
 &nbsp;  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
&nbsp; &nbsp; at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
 &nbsp;  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
 ; &nbsp; at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
&nbsp; &nbsp; at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
   ; at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

I was able to start the profiler limiting the profiling to net.java.sip.communicator.* classes.

Thanks again

On Fri, Apr 11, 2008 at 5:47 AM, Damian Minkov < damenchodamencho.com">damenchodamencho.com> wrote:
Hi again,

is this the whole stack trace ?


Cheers
damencho

Thiago Bolaum wrote:
Nice... But it is a bit hard to change all manifest files. I'll look for another way.

now I'm getting this annoying error in Netbeans GUI. I can't see telemetry, live results, nothing... it always shows an error like this:

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel$1
   at org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel.&lt;init>(MemoryGraphPanel.java:149)
   at org.netbeans.modules.profiler.TelemetryWindow.<init>(TelemetryWindow.java:331)

thanks!

On Fri, Apr 11, 2008 at 3:32 AM, Damian Minkov < damenchodamencho.com" target="_blank">damenchodamencho.com <mailto: damenchodamencho.com" target="_blank">damenchodamencho.com>> wrote:

   Hi,

   the error you get is that OSGi didn't see the classes of the profiler.
   Its that the netbeans profiler replaces some classes to do the
   profile thing,
   so if you insert the package org.netbeans.lib.profiler.server as
   system package in lib/felix.client.run.properties in the property
   org.osgi.framework.system.packages=....
   and then in the manifest files (util.manifest.mf and
   fileaccess.manifest.mf) for the bundles util and fileaccess service
   also import this package the problem will disappear.
   The problem is that you have to do for all bundles that are started.
   I don't know is there any workaround or hack for felix to avoid
   changing all the manifest files, you
   can search for an answer on the felix mailing list or post your
   question regarding this importing of packages
   on the list.

   Cheers
   damencho


   Thiago Bolaum wrote:

       I9;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&quot; description="Profile Project&quot;>
          <fail unless=&quot;netbeans.home">Este destino só pode ser
       executado no NetBeans IDE.</fail>

              *<nbprofiledirect&gt;
              </nbprofiledirect&gt;*
               <!-- forking prevents from debugging -->
              <java classname="org.apache.felix.main.Main&quot;
                  fork=";true"
                  failonerror="true"
                  classpathref="project.class.path">                             <!-- Sets the charset for the messages -->
                  <!--sysproperty key="icq.custom.message.charset"
       value="windows-1252&quot;/-->

                  <!-- Tell felix to run sip-communicator-->;
                  <sysproperty key="felix.config.properties"
                      value=&quot;file:${lib}/felix.client.run.properties&quot;/>

                  <!-- Tell java.util.logging about our logging
       preferences -->
                  <sysproperty key="java.util.logging.config.file&quot;
                      value=&quot;$/logging.properties"/>

                  <sysproperty key="java.net.preferIPv6Addresses";
                      value=&quot;false&quot;/>

                  <!--sysproperty
       key="net.java.sip.communicator.SC_HOME_DIR_LOCATION&quot;
                          value=&quot;${user.home}"/-->
                                <!-- Setting properties necessary for
       dependencies on native libs.-->;
                  <sysproperty key="java.library.path";
                            path=";${ld.library.path}:${path}:${dyld.library.path}"/>

                  <!-- pass l10n properties from ant call for
                       easy translation debugging -->
                  <sysproperty key="user.language"
       value="${user.language}" />
                  <sysproperty key="user.country"
       value="${user.country}" />
                  <sysproperty key="user.variant"
       value="${user.variant}" />

                  <env key="LD_LIBRARY_PATH" path=";${ld.library.path}&quot;/>
                  <env key="PATH" path=";$&quot;/>
                  <env key="DYLD_LIBRARY_PATH";
       path="${dyld.library.path}"/>
                  *           <jvmarg
       value="${profiler.info.jvmargs.agent}"/>*
              </java&gt;          </target>

       I really don't know what's going on. Any tips would be precious!
       Thanks.

       --        Thiago 'bolaum' Borges Abdnur
       ----------------------------------
       &quot;Trust no one...&quot;
       - Deep Throat (The X-Files)



   ---------------------------------------------------------------------
   To unsubscribe, e-mail:
    dev-unsubscribesip-communicator.dev.java.net" target="_blank">dev-unsubscribesip-communicator.dev.java.net
   <mailto: dev-unsubscribesip-communicator.dev.java.net" target="_blank">dev-unsubscribesip-communicator.dev.java.net&gt;

   For additional commands, e-mail:
    dev-helpsip-communicator.dev.java.net" target="_blank">dev-helpsip-communicator.dev.java.net
   <mailto: dev-helpsip-communicator.dev.java.net" target="_blank">dev-helpsip-communicator.dev.java.net&gt;





--
Thiago 'bolaum' Borges Abdnur
----------------------------------
"Trust no one...&quot;
- Deep Throat (The X-Files)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net" target="_blank">dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net" target="_blank">dev-helpsip-communicator.dev.java.net




--
Thiago 'bolaum' Borges Abdnur
----------------------------------
&quot;Trust no one...&quot;
- Deep Throat (The X-Files)
Re: Profiling with netbeans...
user name
2008-04-11 05:08:44
Hi,

hum try adding and this package
org.netbeans.lib.profiler.ui.graphs to 
system packages and to bundles

damencho

Thiago Bolaum wrote:
> When I click the VM Telemetry, a minus blinking icon
appears in 
> bottom-left corner of Netbeans. When I click it, this
is the hole 
> stack trace it gives:
>
> java.lang.NoClassDefFoundError: Could not initialize
class 
> org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel$1
>     at 
>
org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel.<ini
t>(MemoryGraphPanel.java:149)
>     at 
>
org.netbeans.modules.profiler.TelemetryWindow.<init>(T
elemetryWindow.java:331)
>     at 
>
org.netbeans.modules.profiler.TelemetryWindow.getDefault(Tel
emetryWindow.java:378)
>     at 
>
org.netbeans.modules.profiler.actions.ShowTelemetryViewActio
n.actionPerformed(ShowTelemetryViewAction.java:79)
>     at 
>
org.netbeans.modules.profiler.ProfilerControlPanel2$ViewPane
l.actionPerformed(ProfilerControlPanel2.java:1606)
>     at 
>
javax.swing.AbstractButton.fireActionPerformed(AbstractButto
n.java:1995)
>     at 
>
javax.swing.AbstractButton$Handler.actionPerformed(AbstractB
utton.java:2318)
>     at 
>
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultBu
ttonModel.java:387)
>     at 
>
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel
.java:242)
>     at 
>
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Bas
icButtonListener.java:236)
>     at 
>
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticast
er.java:272)
>     at
java.awt.Component.processMouseEvent(Component.java:6041)
>     at
javax.swing.JComponent.processMouseEvent(JComponent.java:326
5)
>     at
java.awt.Component.processEvent(Component.java:5806)
>     at
java.awt.Container.processEvent(Container.java:2058)
>     at
java.awt.Component.dispatchEventImpl(Component.java:4413)
>     at
java.awt.Container.dispatchEventImpl(Container.java:2116)
>     at
java.awt.Component.dispatchEvent(Component.java:4243)
>     at 
>
java.awt.LightweightDispatcher.retargetMouseEvent(Container.
java:4322)
>     at 
>
java.awt.LightweightDispatcher.processMouseEvent(Container.j
ava:3986)
>     at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:
3916)
>     at
java.awt.Container.dispatchEventImpl(Container.java:2102)
>     at
java.awt.Window.dispatchEventImpl(Window.java:2440)
>     at
java.awt.Component.dispatchEvent(Component.java:4243)
> [catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
>     at 
>
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
patchThread.java:273)
>     at 
>
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
chThread.java:183)
>     at 
>
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
patchThread.java:173)
>     at 
>
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.
java:168)
>     at 
>
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.
java:160)
>     at
java.awt.EventDispatchThread.run(EventDispatchThread.java:12
1)
>
> I was able to start the profiler limiting the profiling
to 
> net.java.sip.communicator.* classes.
>
> Thanks again
>
> On Fri, Apr 11, 2008 at 5:47 AM, Damian Minkov
<damenchodamencho.com 
> <mailto:damenchodamencho.com>>
wrote:
>
>     Hi again,
>
>     is this the whole stack trace ?
>
>
>     Cheers
>     damencho
>
>     Thiago Bolaum wrote:
>
>         Nice... But it is a bit hard to change all
manifest files.
>         I'll look for another way.
>
>         now I'm getting this annoying error in Netbeans
GUI. I can't
>         see telemetry, live results, nothing... it
always shows an
>         error like this:
>
>         java.lang.NoClassDefFoundError: Could not
initialize class
>        
org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel$1
>            at
>        
org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel.<ini
t>(MemoryGraphPanel.java:149)
>            at
>        
org.netbeans.modules.profiler.TelemetryWindow.<init>(T
elemetryWindow.java:331)
>
>         thanks!
>
>         On Fri, Apr 11, 2008 at 3:32 AM, Damian Minkov
>         <damenchodamencho.com
<mailto:damenchodamencho.com>
>         <mailto:damenchodamencho.com
<mailto:damenchodamencho.com>>>
>         wrote:
>
>            Hi,
>
>            the error you get is that OSGi didn't see
the classes of
>         the profiler.
>            Its that the netbeans profiler replaces some
classes to do the
>            profile thing,
>            so if you insert the package
>         org.netbeans.lib.profiler.server as
>            system package in
lib/felix.client.run.properties in the
>         property
>            org.osgi.framework.system.packages=....
>            and then in the manifest files
(util.manifest.mf and
>            fileaccess.manifest.mf) for the bundles util
and fileaccess
>         service
>            also import this package the problem will
disappear.
>            The problem is that you have to do for all
bundles that are
>         started.
>            I don't know is there any workaround or hack
for felix to avoid
>            changing all the manifest files, you
>            can search for an answer on the felix
mailing list or post your
>            question regarding this importing of
packages
>            on the list.
>
>            Cheers
>            damencho
>
>
>            Thiago Bolaum wrote:
>
>                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(Nativ
e
>                Method)
>                       at
>              
>         
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native
ConstructorAccessorImpl.java:39)
>                       at
>              
>         
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De
legatingConstructorAccessorImpl.java:27)
>                       at
>              
>         
java.lang.reflect.Constructor.newInstance(Constructor.java:5
13)
>                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:153
1)
>                       at
>              
>         
org.apache.felix.framework.Felix.startBundle(Felix.java:1470
)
>                       at
>              
>         
org.apache.felix.framework.Felix.setFrameworkStartLevel(Feli
x.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"/-->
>
>                           <!-- Tell felix to run
sip-communicator-->
>                           <sysproperty
key="felix.config.properties"
>                              
>        
value="file:$/felix.client.run.properties"/&g
t;
>
>                           <!-- Tell
java.util.logging about our logging
>                preferences -->
>                           <sysproperty
key="java.util.logging.config.file"
>                              
value="$/logging.properties"/>
>
>                           <sysproperty
key="java.net.preferIPv6Addresses"
>                              
value="false"/>
>
>                           <!--sysproperty
>               
key="net.java.sip.communicator.SC_HOME_DIR_LOCATION&quo
t;
>                                  
value="${user.home}"/-->
>                                         <!-- Setting
properties
>         necessary for
>                dependencies on native libs.-->
>                           <sysproperty
key="java.library.path"
>                                    
>        
path="${ld.library.path}:$:${dyld.library.path}&q
uot;/>
>
>                           <!-- pass l10n properties
from ant call for
>                                easy translation
debugging -->
>                           <sysproperty
key="user.language"
>                value="${user.language}"
/>
>                           <sysproperty
key="user.country"
>                value="${user.country}" />
>                           <sysproperty
key="user.variant"
>                value="${user.variant}" />
>
>                           <env
key="LD_LIBRARY_PATH"
>         path="${ld.library.path}"/>
>                           <env key="PATH"
path="$"/>
>                           <env
key="DYLD_LIBRARY_PATH"
>               
path="${dyld.library.path}"/>
>                           *           <jvmarg
>               
value="${profiler.info.jvmargs.agent}"/>*
>                       </java>         
</target>
>
>                I really don't know what's going on. Any
tips would be
>         precious!
>                Thanks.
>
>                --        Thiago 'bolaum' Borges Abdnur
>                ----------------------------------
>                "Trust no one..."
>                - Deep Throat (The X-Files)
>
>
>
>          
>         
------------------------------------------------------------
---------
>            To unsubscribe, e-mail:
>            dev-unsubscribesip-communicator.dev.java.net
>         <mailto:dev-unsubscribesip-communicator.dev.java.net>
>            <mailto:dev-unsubscribesip-communicator.dev.java.net
>         <mailto:dev-unsubscribesip-communicator.dev.java.net>>
>
>            For additional commands, e-mail:
>            dev-helpsip-communicator.dev.java.net
>         <mailto:dev-helpsip-communicator.dev.java.net>
>            <mailto:dev-helpsip-communicator.dev.java.net
>         <mailto:dev-helpsip-communicator.dev.java.net>>
>
>
>
>
>
>         -- 
>         Thiago 'bolaum' Borges Abdnur
>         ----------------------------------
>         "Trust no one..."
>         - Deep Throat (The X-Files)
>
>
>
>    
------------------------------------------------------------
---------
>     To unsubscribe, e-mail:
>     dev-unsubscribesip-communicator.dev.java.net
>     <mailto:dev-unsubscribesip-communicator.dev.java.net>
>     For additional commands, e-mail:
>     dev-helpsip-communicator.dev.java.net
>     <mailto:dev-helpsip-communicator.dev.java.net>
>
>
>
>
> -- 
> Thiago 'bolaum' Borges Abdnur
> ----------------------------------
> "Trust no one..."
> - Deep Throat (The X-Files) 


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Re: Profiling with netbeans...
user name
2008-04-11 03:47:06
Hi again,

is this the whole stack trace ?

Cheers
damencho

Thiago Bolaum wrote:
> Nice... But it is a bit hard to change all manifest
files. I'll look 
> for another way.
>
> now I'm getting this annoying error in Netbeans GUI. I
can't see 
> telemetry, live results, nothing... it always shows an
error like this:
>
> java.lang.NoClassDefFoundError: Could not initialize
class 
> org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel$1
>     at 
>
org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel.<ini
t>(MemoryGraphPanel.java:149)
>     at 
>
org.netbeans.modules.profiler.TelemetryWindow.<init>(T
elemetryWindow.java:331)
>
> thanks!
>
> On Fri, Apr 11, 2008 at 3:32 AM, Damian Minkov
<damenchodamencho.com 
> <mailto:damenchodamencho.com>>
wrote:
>
>     Hi,
>
>     the error you get is that OSGi didn't see the
classes of the profiler.
>     Its that the netbeans profiler replaces some
classes to do the
>     profile thing,
>     so if you insert the package
org.netbeans.lib.profiler.server as
>     system package in lib/felix.client.run.properties
in the property
>     org.osgi.framework.system.packages=....
>     and then in the manifest files (util.manifest.mf
and
>     fileaccess.manifest.mf) for the bundles util and
fileaccess service
>     also import this package the problem will
disappear.
>     The problem is that you have to do for all bundles
that are started.
>     I don't know is there any workaround or hack for
felix to avoid
>     changing all the manifest files, you
>     can search for an answer on the felix mailing list
or post your
>     question regarding this importing of packages
>     on the list.
>
>     Cheers
>     damencho
>
>
>     Thiago Bolaum wrote:
>
>         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(Nativ
e
>         Method)
>                at
>        
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native
ConstructorAccessorImpl.java:39)
>                at
>        
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De
legatingConstructorAccessorImpl.java:27)
>                at
>        
java.lang.reflect.Constructor.newInstance(Constructor.java:5
13)
>         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:153
1)
>                at
>        
org.apache.felix.framework.Felix.startBundle(Felix.java:1470
)
>                at
>        
org.apache.felix.framework.Felix.setFrameworkStartLevel(Feli
x.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"/-->
>
>                    <!-- Tell felix to run
sip-communicator-->
>                    <sysproperty
key="felix.config.properties"
>                       
value="file:$/felix.client.run.properties"/&g
t;
>
>                    <!-- Tell java.util.logging about
our logging
>         preferences -->
>                    <sysproperty
key="java.util.logging.config.file"
>                       
value="$/logging.properties"/>
>
>                    <sysproperty
key="java.net.preferIPv6Addresses"
>                        value="false"/>
>
>                    <!--sysproperty
>        
key="net.java.sip.communicator.SC_HOME_DIR_LOCATION&quo
t;
>                           
value="${user.home}"/-->
>                                  <!-- Setting
properties necessary for
>         dependencies on native libs.-->
>                    <sysproperty
key="java.library.path"
>                      
>         
path="${ld.library.path}:$:${dyld.library.path}&q
uot;/>
>
>                    <!-- pass l10n properties from
ant call for
>                         easy translation debugging
-->
>                    <sysproperty
key="user.language"
>         value="${user.language}" />
>                    <sysproperty
key="user.country"
>         value="${user.country}" />
>                    <sysproperty
key="user.variant"
>         value="${user.variant}" />
>
>                    <env
key="LD_LIBRARY_PATH"
path="${ld.library.path}"/>
>                    <env key="PATH"
path="$"/>
>                    <env
key="DYLD_LIBRARY_PATH"
>         path="${dyld.library.path}"/>
>                    *           <jvmarg
>        
value="${profiler.info.jvmargs.agent}"/>*
>                </java>          </target>
>
>         I really don't know what's going on. Any tips
would be precious!
>         Thanks.
>
>         -- 
>         Thiago 'bolaum' Borges Abdnur
>         ----------------------------------
>         "Trust no one..."
>         - Deep Throat (The X-Files)
>
>
>
>    
------------------------------------------------------------
---------
>     To unsubscribe, e-mail:
>     dev-unsubscribesip-communicator.dev.java.net
>     <mailto:dev-unsubscribesip-communicator.dev.java.net>
>     For additional commands, e-mail:
>     dev-helpsip-communicator.dev.java.net
>     <mailto:dev-helpsip-communicator.dev.java.net>
>
>
>
>
> -- 
> Thiago 'bolaum' Borges Abdnur
> ----------------------------------
> "Trust no one..."
> - Deep Throat (The X-Files) 


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Re: Profiling with netbeans...
user name
2008-04-11 03:26:50
Nice... But it is a bit hard to change all manifest files. I'll look for another way.

now I'm getting this annoying error in Netbeans GUI. I can't see telemetry, live results, nothing... it always shows an error like this:

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel$1
 &nbsp;  at org.netbeans.lib.profiler.ui.graphs.MemoryGraphPanel.&lt;init>(MemoryGraphPanel.java:149)
&nbsp; &nbsp; at org.netbeans.modules.profiler.TelemetryWindow.<init>(TelemetryWindow.java:331)

thanks!

On Fri, Apr 11, 2008 at 3:32 AM, Damian Minkov < damenchodamencho.com">damenchodamencho.com> wrote:
Hi,

the error you get is that OSGi didn't see the classes of the profiler.
Its that the netbeans profiler replaces some classes to do the profile thing,
so if you insert the package org.netbeans.lib.profiler.server as
system package in lib/felix.client.run.properties in the property org.osgi.framework.system.packages=....
and then in the manifest files (util.manifest.mf and fileaccess.manifest.mf) for the bundles util and fileaccess service
also import this package the problem will disappear.
The problem is that you have to do for all bundles that are started.
I don't know is there any workaround or hack for felix to avoid changing all the manifest files, you
can search for an answer on the felix mailing list or post your question regarding this importing of packages
on the list.

Cheers
damencho


Thiago Bolaum wrote:
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:
&lt;target name=";profile&quot; description="Profile Project&quot;>
   <fail unless=&quot;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&quot;
           fork="true"
           failonerror=&quot;true&quot;
           classpathref=&quot;project.class.path">          
           <!-- Sets the charset for the messages -->
           <!--sysproperty key="icq.custom.message.charset" value=&quot;windows-1252"/-->

           <!-- Tell felix to run sip-communicator-->;
           <sysproperty key="felix.config.properties"
               value="file:$/felix.client.run.properties"/&gt;

           <!-- Tell java.util.logging about our logging preferences -->
           <sysproperty key="java.util.logging.config.file&quot;
               value="${lib}/logging.properties"/>

           <sysproperty key="java.net.preferIPv6Addresses";
               value="false"/&gt;

           <!--sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
                   value="${user.home}&quot;/-->
                         <!-- Setting properties necessary for dependencies on native libs.-->;
           <sysproperty key="java.library.path";
               path="${ld.library.path}:$:${dyld.library.path}&quot;/>

           <!-- pass l10n properties from ant call for
                easy translation debugging -->
           <sysproperty key="user.language" value=&quot;${user.language}&quot; />
           <sysproperty key="user.country" value=&quot;${user.country}"; />
           <sysproperty key="user.variant" value=&quot;${user.variant}"; />

           <env key="LD_LIBRARY_PATH" path=";${ld.library.path}&quot;/>
           <env key="PATH" path=";$&quot;/>
           <env key="DYLD_LIBRARY_PATH"; path=";${dyld.library.path}&quot;/>
           *           <jvmarg value=&quot;${profiler.info.jvmargs.agent}&quot;/>*
       </java>          </target>

I really don't know what's going on. Any tips would be precious!
Thanks.

--
Thiago 'bolaum' Borges Abdnur
----------------------------------
"Trust no one...&quot;
- Deep Throat (The X-Files)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net" target="_blank">dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net" target="_blank">dev-helpsip-communicator.dev.java.net




--
Thiago 'bolaum' Borges Abdnur
----------------------------------
&quot;Trust no one...&quot;
- Deep Throat (The X-Files)
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )