sailfin
  1. sailfin
  2. SAILFIN-384

unable to attach netbeans 6.0 profiler to sailfin

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: milestone 1
    • Component/s: Tools
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: All

    • Issuezilla Id:
      384

      Description

      Profiler Agent: Initializing...
      Profiler Agent: Options: >/baseline/remote-profiler/linux/lib,5140<
      Profiler Agent: Initialized succesfully
      Profiler Agent: Waiting for connection on port 5140 (Protocol version: 8)
      Profiler Agent: Established remote connection with the tool
      Could not load Logmanager "com.sun.enterprise.server.logging.ServerLogManager"
      java.lang.ClassNotFoundException: com.sun.enterprise.server.logging.ServerLogManager
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.util.logging.LogManager$1.run(LogManager.java:166)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.util.logging.LogManager.<clinit>(LogManager.java:156)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at com.sun.jmx.trace.Trace.initDestination(Trace.java:46)
      at com.sun.jmx.trace.Trace.<clinit>(Trace.java:25)
      at javax.management.MBeanServerFactory.debug(MBeanServerFactory.java:524)
      at
      javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:483)
      at
      javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:511)
      at
      javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298)
      at
      javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
      at
      javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)
      at
      sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
      at
      java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
      at
      org.netbeans.lib.profiler.server.system.HeapDump.initialize16(HeapDump.java:102)
      at
      org.netbeans.lib.profiler.server.system.HeapDump.initialize(HeapDump.java:78)
      at
      org.netbeans.lib.profiler.server.ProfilerInterface.initProfilerInterface(ProfilerInterface.java:464)
      at
      org.netbeans.lib.profiler.server.ProfilerServer.initSupportingFunctionality(ProfilerServer.java:973)
      at
      org.netbeans.lib.profiler.server.ProfilerServer.doActivate(ProfilerServer.java:904)
      at
      org.netbeans.lib.profiler.server.ProfilerServer.activate(ProfilerServer.java:512)
      Failed to load MBeanServerBuilder class
      com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder:
      java.lang.ClassNotFoundException:
      com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
      Jan 14, 2008 2:37:07 PM com.sun.enterprise.server.PEMain main
      INFO: Starting Sun Java System Application Server 9.1.1 (build b16-beta) ...
      Profiler Agent: 250 classes cached.
      Jan 14, 2008 2:37:30 PM com.sun.enterprise.server.PEMain$LoadMBeanServer doRun
      INFO: MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
      Profiler Agent: 250 classes cached.
      Profiler Agent: 250 classes cached.
      Jan 14, 2008 2:38:06 PM com.sun.enterprise.server.ApplicationServer printStartupInfo
      INFO: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0_04] from [Sun
      Microsystems Inc.]
      Jan 14, 2008 2:38:08 PM com.sun.enterprise.jms.JmsProviderLifecycle <clinit>
      INFO: Using MQ RA for Broker lifecycle control
      Jan 14, 2008 2:38:09 PM com.sun.enterprise.security.SecurityLifecycle <init>
      INFO: SEC1002: Security Manager is OFF.
      Profiler Agent: 250 classes cached.
      Profiler Agent: 250 classes cached.
      Jan 14, 2008 2:38:22 PM com.sun.enterprise.admin.meta.MBeanRegistryFactory
      getAdminMBeanRegistry
      WARNING: Admin MBean Registry is not found
      java.lang.ExceptionInInitializerError
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at
      com.sun.enterprise.admin.meta.MBeanRegistryEntry.<init>(MBeanRegistryEntry.java:296)
      at
      com.sun.enterprise.admin.meta.MBeanRegistry.loadMBeanRegistry(MBeanRegistry.java:394)
      at
      com.sun.enterprise.admin.meta.MBeanRegistry.loadMBeanRegistry(MBeanRegistry.java:377)
      at
      com.sun.enterprise.admin.meta.MBeanRegistryFactory.getAdminMBeanRegistry(MBeanRegistryFactory.java:256)
      at
      com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:116)
      at
      com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:98)
      at
      com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:94)
      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 java.lang.Class.newInstance0(Class.java:355)
      at java.lang.Class.newInstance(Class.java:308)
      at
      com.sun.enterprise.admin.server.core.AdminContextImpl.registerValidator(AdminContextImpl.java:142)
      at
      com.sun.enterprise.admin.server.core.AdminContextImpl.setServerContext(AdminContextImpl.java:111)
      at
      com.sun.enterprise.admin.server.core.AdminService.createAdminService(AdminService.java:245)
      at
      com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onInitialization(AdminServiceLifeCycle.java:115)
      at
      com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
      at
      com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:103)
      at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
      at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
      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:597)
      at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
      Caused by: java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:334)
      at
      com.sun.enterprise.util.i18n.StringManagerBase.getStringManager(StringManagerBase.java:133)
      at
      com.sun.enterprise.ee.admin.lbadmin.mbeans.LoadBalancerAdminConfig.<clinit>(LoadBalancerAdminConfig.java:122)
      ... 28 more
      Jan 14, 2008 2:38:31 PM
      com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream
      flush
      INFO: /baseline/sailfin/v1-b16/domains/jsip_publish/config/.__com_sun_appserv_pid
      Jan 14, 2008 2:38:31 PM com.sun.enterprise.server.PEMain run
      SEVERE: CORE5071: An error occured during initialization
      java.lang.NullPointerException
      at
      org.netbeans.lib.profiler.server.ClassBytesLoader.getClassFileBytes(ClassBytesLoader.java:72)
      at
      org.netbeans.lib.profiler.server.ProfilerInterface.classLoadHook(ProfilerInterface.java:860)
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
      at java.lang.Class.getConstructor0(Class.java:2699)
      at java.lang.Class.getConstructor(Class.java:1657)
      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:587)
      at
      com.sun.enterprise.admin.util.proxy.ProxyFactory.createProxy(ProxyFactory.java:65)
      at
      com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.<init>(SunoneInterceptor.java:166)
      at
      com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.createInstance(SunoneInterceptor.java:185)
      at
      com.sun.enterprise.admin.server.core.AdminService.init(AdminService.java:322)
      at
      com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onInitialization(AdminServiceLifeCycle.java:116)
      at
      com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
      at
      com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:103)
      at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
      at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
      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:597)
      at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
      Jan 14, 2008 2:38:31 PM com.sun.enterprise.server.PEMain run
      SEVERE: Server Startup failed. Exiting...
      Jan 14, 2008 2:38:31 PM com.sun.enterprise.server.PEMain run
      INFO: Server shutdown in progress...
      Jan 14, 2008 2:38:33 PM com.sun.enterprise.server.ApplicationServer onShutdown
      WARNING: CORE5061: Exception :
      com.sun.appserv.server.ServerLifecycleException
      at
      com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:171)
      at
      com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:553)
      at
      com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:145)
      at com.sun.enterprise.server.PEMain.run(PEMain.java:429)
      at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
      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:597)
      at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
      Jan 14, 2008 2:38:33 PM com.sun.enterprise.admin.server.core.AdminService
      deleteTempDir
      WARNING: core.tmp_folder_deletion_failed
      Profiler Agent: 250 classes cached.
      Jan 14, 2008 2:38:48 PM com.sun.enterprise.server.PEMain run
      SEVERE: Server stopped due to Server startup failure.

        Activity

        Hide
        bharathm added a comment -

        This issue mainly occurring when i run netbeans on a remote machine. I don't see
        any issue if i run netbeans on a local sailfin instance machine. So i am
        downgrading the bug.

        Show
        bharathm added a comment - This issue mainly occurring when i run netbeans on a remote machine. I don't see any issue if i run netbeans on a local sailfin instance machine. So i am downgrading the bug.
        Hide
        vince kraemer added a comment -

        this looks like it is the same issue as
        http://www.netbeans.org/issues/show_bug.cgi?id=125645.

        This was an NB issue that has been resolved according to the NB profiler developers.

        Show
        vince kraemer added a comment - this looks like it is the same issue as http://www.netbeans.org/issues/show_bug.cgi?id=125645 . This was an NB issue that has been resolved according to the NB profiler developers.

          People

          • Assignee:
            prasads
            Reporter:
            bharathm
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: