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.
Profiler.attachToApp: profiling settings -------------------------------- name: CPU Profile RsmManagerServiceImpl profilingType =16 overrideGlobalSettings =false workingDir = jvmArgs: javaPlatform =<project> threadsMonitoringEnabled =true excludeWaitTime =false cpuProfilingType =0 instrScheme =1 threadCPUTimerOn =false instrumentGetterSetterMethods =false instrumentEmptyMethods =false instrumentMethodInvoke =true instrumentSpawnedThreads =true nProfiledThreadsLimit =32 sortResultsByThreadCPUTime =false samplingInterval =10 instrumentationRootMethods =[Source Code defined via methods: 1 methods: class: <my classname removed from this snippet> method: handleOutput ] codeFragmentSelection =null codeRegionCPUResBufSize =1000 runGCOnGetResultsInMemoryProfiling =true allocTrackEvery =10 allocStackTraceLimit =0 selectedInstrFilter =Profile All Classes Profiler.attachToApp: attach settings ---------------------------------- target type =Application server type = remote =false direct =true ctrlBreak =true pid =-1 workingDir = host = host os =Windows transient port =-1 Profiler.attachToApp: *************************************************** Instrumentation filter: Filter type: None Filter value: IDEAppStatusHandler - error: Redefinition failed with error 60 Check JVMTI documentation for this error code.
Jon, is this problem reproducible?
It has only happened once so far. What would at least help for next time it happens is if this IDEAppStatusHandler message to the log contained the date and time, so I could later go check to see if a hserr.pid file was created on the profiled JVM side.... I later thought about this and maybe this was just the symptoms on the client side of a JVM crash.
Closing as works-for-me. Please reopen if you will see it again. Thanks.
(In reply to comment #3) > Closing as works-for-me. Please reopen if you will see it again. Thanks. I have this error, related, maybe it is solvable when supplied with the following information: init: profile-init: deps-jar: Compiling 1 source file to D:\MyProjects\Java\MyProject\build\classes compile: profile: Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 10) Profiler Agent: Established connection with the tool Profiler Agent: Local accelerated session *** Profiler engine warning: class sun.reflect.GeneratedConstructorAccessor1 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@a0b1cd0, its class = class sun.reflect.DelegatingClassLoader, index = 4, hashcode = 168500432 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedConstructorAccessor1 *** probably it has been unloaded recently Profiler Agent Error: Redefinition failed for classes: mypackage.mysub.myClass2 Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: mypackage.mysub.myClass2, into file: mypackage.mysub.myClass2.class ---------------------end output netbeans-------------- My setup is a library SE, used in a Java SE project. The class mypackage.myClass only contains a 'public static final String myObject[][]' array. I have nine of these classes in that package and only for classes 2 to 7, that is not the first listed class and the last two listed classes for which this error is reported. These classes contain very large string arrays for the purpose, that java was not able to handle all these strings in just one class file else I would have had just two classes. Which means that the error might be related to the size of the string arrays in these classes.
Which version of JDK are you using? Can you prepare a test-case for me? Thanks.
(In reply to comment #5) > Which version of JDK are you using? Can you prepare a test-case for me? Thanks. Sorry I was not on the cc-list but added myself. JDK version is 6. Has version 7 already been tested for this situation?
Well, I've got this too, so I'm voting for it, this is the log from the server; Profiler Agent: Waiting for connection on port 5140 (Protocol version: 11) Profiler Agent: Established connection with the tool Failed to load MBeanServerBuilder class com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder: java.lang.ClassNotFoundException: com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder Profiler Agent: Local accelerated session Profiler Agent Error: Redefinition failed for classes: com.sun.enterprise.module.bootstrap.ArgumentManager Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.enterprise.module.bootstrap.ArgumentManager, into file: com.sun.enterprise.module.bootstrap.ArgumentManager.class Launching GlassFish on Felix platform Profiler Agent Error: Redefinition failed for classes: com.sun.enterprise.glassfish.bootstrap.StartupContextUtil Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.enterprise.glassfish.bootstrap.StartupContextUtil, into file: com.sun.enterprise.glassfish.bootstrap.StartupContextUtil.class Profiler Agent Error: Redefinition failed for classes: com.sun.enterprise.glassfish.bootstrap.ClassPathBuilder Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.enterprise.glassfish.bootstrap.ClassPathBuilder, into file: com.sun.enterprise.glassfish.bootstrap.ClassPathBuilder.class Profiler Agent Error: Redefinition failed for classes: org.glassfish.embeddable.GlassFishRuntime Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.glassfish.embeddable.GlassFishRuntime, into file: org.glassfish.embeddable.GlassFishRuntime.class Profiler Agent Error: Redefinition failed for classes: com.sun.enterprise.glassfish.bootstrap.OSGiFrameworkLauncher Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.enterprise.glassfish.bootstrap.OSGiFrameworkLauncher, into file: com.sun.enterprise.glassfish.bootstrap.OSGiFrameworkLauncher.class *** Profiler engine warning: class sun.reflect.GeneratedConstructorAccessor1 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@485b78cf, its class = class sun.reflect.DelegatingClassLoader, index = 6, hashcode = 1213954255 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedConstructorAccessor1 *** probably it has been unloaded recently Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.osgimain.Main Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.osgimain.Main, into file: org.jvnet.hk2.osgimain.Main.class Profiler Agent Error: Redefinition failed for classes: org.glassfish.hk2.osgiresourcelocator.ServiceLoaderImpl Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.glassfish.hk2.osgiresourcelocator.ServiceLoaderImpl, into file: org.glassfish.hk2.osgiresourcelocator.ServiceLoaderImpl.class Profiler Agent Error: Redefinition failed for classes: org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl, into file: org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl.class Profiler Agent Error: Redefinition failed for classes: com.sun.enterprise.module.bootstrap.Main Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.enterprise.module.bootstrap.Main, into file: com.sun.enterprise.module.bootstrap.Main.class Profiler Agent Error: Redefinition failed for classes: com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl, into file: com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.class Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl, into file: org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl.class *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor1 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@117c50b9, its class = class sun.reflect.DelegatingClassLoader, index = 15, hashcode = 293359801 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor1 *** probably it has been unloaded recently *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor2 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@1f8a6890, its class = class sun.reflect.DelegatingClassLoader, index = 16, hashcode = 529164432 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor2 *** probably it has been unloaded recently Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.osgiadapter.OSGiModuleDefinition Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.osgiadapter.OSGiModuleDefinition, into file: org.jvnet.hk2.osgiadapter.OSGiModuleDefinition.class *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor3 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@6088b858, its class = class sun.reflect.DelegatingClassLoader, index = 17, hashcode = 1619572824 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor3 *** probably it has been unloaded recently Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.osgiadapter.OSGiModuleDefinition$SerializableManifest$ManifestData Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.osgiadapter.OSGiModuleDefinition$SerializableManifest$ManifestData, into file: org.jvnet.hk2.osgiadapter.OSGiModuleDefinition$SerializableManifest$ManifestData.class *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor4 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@2abbaa16, its class = class sun.reflect.DelegatingClassLoader, index = 18, hashcode = 716941846 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor4 *** probably it has been unloaded recently *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor5 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@5106def2, its class = class sun.reflect.DelegatingClassLoader, index = 19, hashcode = 1359404786 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor5 *** probably it has been unloaded recently Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.component.MultiMap Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.component.MultiMap, into file: org.jvnet.hk2.component.MultiMap.class *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor6 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@6aa218a5, its class = class sun.reflect.DelegatingClassLoader, index = 20, hashcode = 1789008037 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor6 *** probably it has been unloaded recently Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.component.Habitat Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.component.Habitat, into file: org.jvnet.hk2.component.Habitat.class *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor7 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@41aef798, its class = class sun.reflect.DelegatingClassLoader, index = 21, hashcode = 1101985688 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor7 *** probably it has been unloaded recently *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor8 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@16e7eec9, its class = class sun.reflect.DelegatingClassLoader, index = 22, hashcode = 384298697 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor8 *** probably it has been unloaded recently *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor9 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@9dd1752, its class = class sun.reflect.DelegatingClassLoader, index = 23, hashcode = 165484370 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor9 *** probably it has been unloaded recently *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor10 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@43ad4a, its class = class sun.reflect.DelegatingClassLoader, index = 24, hashcode = 4435274 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor10 *** probably it has been unloaded recently *** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor11 that should be instrumented is not loaded by target VM *** Requested classloader: sun.reflect.DelegatingClassLoader@61ae717f, its class = class sun.reflect.DelegatingClassLoader, index = 25, hashcode = 1638822271 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor11 *** probably it has been unloaded recently Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.osgiadapter.OSGiModuleImpl Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.osgiadapter.OSGiModuleImpl, into file: org.jvnet.hk2.osgiadapter.OSGiModuleImpl.class Profiler Agent Error: Redefinition failed for classes: com.sun.enterprise.module.common_impl.TracingUtilities Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.enterprise.module.common_impl.TracingUtilities, into file: com.sun.enterprise.module.common_impl.TracingUtilities.class Profiler Agent Error: Redefinition failed for classes: com.sun.hk2.component.AbstractInhabitantImpl Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.hk2.component.AbstractInhabitantImpl, into file: com.sun.hk2.component.AbstractInhabitantImpl.class Profiler Agent Error: Redefinition failed for classes: com.sun.hk2.component.ExistingSingletonInhabitant Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.hk2.component.ExistingSingletonInhabitant, into file: com.sun.hk2.component.ExistingSingletonInhabitant.class OSGiGlassFishRuntime: Initialized org.apache.felix.framework [0] Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.component.Habitat$SelfListener Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.component.Habitat$SelfListener, into file: org.jvnet.hk2.component.Habitat$SelfListener.class Profiler Agent Error: Redefinition failed for classes: com.sun.hk2.component.LeadInjectionResolver Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.hk2.component.LeadInjectionResolver, into file: com.sun.hk2.component.LeadInjectionResolver.class Profiler Agent Error: Redefinition failed for classes: com.sun.hk2.component.CompanionSeed$Registerer Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: com.sun.hk2.component.CompanionSeed$Registerer, into file: com.sun.hk2.component.CompanionSeed$Registerer.class Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.component.CageBuilder$Registerer Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.component.CageBuilder$Registerer, into file: org.jvnet.hk2.component.CageBuilder$Registerer.class Profiler Agent Error: Redefinition failed for classes: org.jvnet.hk2.component.internal.runlevel.DefaultRunLevelService Profiler Agent Error: with message: Redefinition failed with error 60 Check JVMTI documentation for this error code. Debug: writing class file: org.jvnet.hk2.component.internal.runlevel.DefaultRunLevelService, into file: org.jvnet.hk2.component.internal.runlevel.DefaultRunLevelService.class
Created attachment 104647 [details] Stackdump from netbeans Stackdump of netbeans taken when the dialog about the error is still showing
Created attachment 104648 [details] Stackdump from glassfish Stackdump of glassfish when the dialog about this error is showing on the desktop
(In reply to comment #7) > Well, I've got this too, Which version of JDK are you using? Which version of NetBeans are you using? Please provide steps how to reproduce it. Thanks.
Currently running on 1.6 and running NB build #6318 on 101224. Create an EJB module and try to profile it seems to be the simplest way to reproduce this. If you need more just holler...
(In reply to comment #11) > Currently running on 1.6 and running NB build #6318 on 101224. Can you please attach NetBeans messages.log? I am not aware of such build. How did you get it?
First question; here: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/dist/ Second attatched...
Created attachment 104665 [details] messages.log
(In reply to comment #11) > Currently running on 1.6 and running NB build #6318 on 101224. > Create an EJB module and try to profile it seems to be the simplest way to > reproduce this. > If you need more just holler... I am able to reproduce it. It is a recent regression so I filled separate issue #194076 for it, since it is definitely something different that this one.