This discussion is archived
11 Replies Latest reply: Aug 22, 2012 4:23 PM by 780326 RSS

Unable to restart weblogic - NullPointerException  AttachUtils

780326 Newbie
Currently Being Moderated
Running Weblogic server 12c from eclipse indigo fast swap enabled.

I get this error intermittently. Sometimes I am able to run, change code etc. with no problem. Other times I run into this condition. Sometimes I am able to fix it simply by restarting. Other times I do various combinations of republishing manually, undeploying project (remove then add), diasbling fast swap, shutting down eclipse. Needless to say, this is quite time consuming.

<Aug 16, 2012 8:44:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.>
<Aug 16, 2012 8:44:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Aug 16, 2012 8:44:56 AM PDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application "_auto_generated_ear_" due to error java.lang.NullPointerException
java.lang.NullPointerException
at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
Truncated. see log file for complete stacktrace
>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log00003. Log messages will continue to be logged in C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>
<Aug 16, 2012 8:44:56 AM PDT> <Warning> <Server> <BEA-002611> <The hostname "N9148879.nif.llnl.gov", maps to multiple IP addresses: 128.15.93.21, 0:0:0:0:0:0:0:1.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 128.15.93.21:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in development mode.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
<Aug 16, 2012 8:44:56 AM PDT> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
<Aug 16, 2012 8:45:15 AM PDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1345131915639" for task "1". Error is: "java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory"
java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
Truncated. see log file for complete stacktrace
>
<Aug 16, 2012 8:45:15 AM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application "_auto_generated_ear_".>
<Aug 16, 2012 8:45:15 AM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
Truncated. see log file for complete stacktrace
>
  • 1. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated
    Hi Bruce,

    It seems there is some sort of the issue with auto_generated Ear.

    Please delete from weblogic console and try to redeploy the app again.

    Regards,
    Kal
  • 2. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    780326 Newbie
    Currently Being Moderated
    I haven't seen this behavior after deleting and recreating the auto generated ear. Thanks.
  • 3. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    780326 Newbie
    Currently Being Moderated
    I spoke too soon. It came back but I did seem to get it back to working, at least for now. It seems to have recurred after I refactored some classes and moved them to different packages. When I go into the console I don't see the auto generated ear. I try to do a Remove, then Clean, then Add and get.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory". I've tried various permutations of this including Publish. I closed eclipse and restarted. Now I see the auto generated ear. I'd say there's definitely a problem possibly connected with fast swap and/or refactoring or modifying classes. Here's the stack trace:

    <Aug 21, 2012 3:34:46 PM PDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1345588486488" for task "5". Error is: "java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory"
    java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
         at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
         at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
         at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
         at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
         Truncated. see log file for complete stacktrace
    >
    <Aug 21, 2012 3:34:46 PM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application "_auto_generated_ear_".>
    <Aug 21, 2012 3:34:46 PM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
         at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
         at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
         at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
         at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
         Truncated. see log file for complete stacktrace
    >

    Edited by: Bruce on Aug 21, 2012 3:44 PM
  • 4. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated
    Hi Bruce,

    looking @ Caused By: java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory


    I remember similar issue happen but we fix such issue with upgrade the JDK version.

    Can try to try to upgrade your JDK version on Eclipse and test it again and let me know the status.

    Regards,
    Kal
  • 5. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    780326 Newbie
    Currently Being Moderated
    So I tried switching my jdk to one I saw listed for jrockit. Now eclipse won't start. Here is what I see in .log. Unable to paste full contents. Have not been able to find file to manually edit jdk. Seems like all I can do is reinstall eclipse. grrr


    !ENTRY org.eclipse.osgi 2 0 2012-08-22 12:05:38.276
    !MESSAGE While loading class "org.eclipse.debug.core.ILaunchManager", thread "Thread[org.eclipse.jdt.internal.ui.text.JavaReconciler,1,main]" timed out waiting (5000ms) for thread "Thread[main,6,main]" to finish starting bundle "org.eclipse.debug.core_3.7.1.v20111129-2031 [310]". To avoid deadlock, thread "Thread[org.eclipse.jdt.internal.ui.text.JavaReconciler,1,main]" is proceeding but "org.eclipse.debug.core.ILaunchManager" may not be fully initialized.
    !STACK 0
    org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/org.eclipse.debug.core_3.7.1.v20111129-2031.jar" by thread "main".
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1087)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:297)
         at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
         at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
         at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
         at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
         at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at org.eclipse.m2e.jdt.MavenJdtPlugin.start(MavenJdtPlugin.java:123)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
         at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
         at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
         at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
         at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
         at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
         at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
         at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
         at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
         at org.eclipse.jdt.core.JavaCore.getClasspathVariableInitializer(JavaCore.java:3060)
         at org.eclipse.jdt.core.JavaCore.getClasspathVariable(JavaCore.java:2923)
         at org.eclipse.jdt.internal.core.JavaModelManager.getResolvedVariablePath(JavaModelManager.java:2527)
         at org.eclipse.jdt.internal.core.JavaModelManager.resolveVariableEntry(JavaModelManager.java:2447)
         at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2660)
         at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2853)
         at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1958)
         at org.eclipse.jdt.internal.core.JavaProject.buildStructure(JavaProject.java:461)
         at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:258)
         at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:518)
         at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255)
         at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
         at org.eclipse.jdt.internal.core.JavaProject.getJavaProjectElementInfo(JavaProject.java:1638)
         at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2325)
         at org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(SearchableEnvironment.java:59)
         at org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(SearchableEnvironment.java:66)
         at org.eclipse.jdt.internal.core.CancelableNameEnvironment.<init>(CancelableNameEnvironment.java:26)
         at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:176)
         at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:269)
         at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
         at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:89)
         at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
         at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:788)
         at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1244)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:126)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:89)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.initialReconcile(JavaReconcilingStrategy.java:178)
         at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.initialReconcile(CompositeReconcilingStrategy.java:114)
         at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.initialReconcile(JavaCompositeReconcilingStrategy.java:136)
         at org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:105)
         at org.eclipse.jdt.internal.ui.text.JavaReconciler.initialProcess(JavaReconciler.java:406)
         at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:173)
    Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
         ... 74 more
    Root exception:
    org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1087)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:297)
         at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
         at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
         at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
         at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
         at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at org.eclipse.m2e.jdt.MavenJdtPlugin.start(MavenJdtPlugin.java:123)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
         at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
         at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
         at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
         at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
         at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
         at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
         at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
         at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
         at org.eclipse.jdt.core.JavaCore.getClasspathVariableInitializer(JavaCore.java:3060)
         at org.eclipse.jdt.core.JavaCore.getClasspathVariable(JavaCore.java:2923)
         at org.eclipse.jdt.internal.core.JavaModelManager.getResolvedVariablePath(JavaModelManager.java:2527)
         at org.eclipse.jdt.internal.core.JavaModelManager.resolveVariableEntry(JavaModelManager.java:2447)
         at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2660)
         at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2853)
         at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1958)
         at org.eclipse.jdt.internal.core.JavaProject.buildStructure(JavaProject.java:461)
         at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:258)
         at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:518)
         at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255)
         at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
         at org.eclipse.jdt.internal.core.JavaProject.getJavaProjectElementInfo(JavaProject.java:1638)
         at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2325)
         at org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(SearchableEnvironment.java:59)
         at org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(SearchableEnvironment.java:66)
         at org.eclipse.jdt.internal.core.CancelableNameEnvironment.<init>(CancelableNameEnvironment.java:26)
         at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:176)
         at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:269)
         at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
         at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:89)
         at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
         at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:788)
         at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1244)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:126)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:89)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87)
         at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.initialReconcile(JavaReconcilingStrategy.java:178)
         at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.initialReconcile(CompositeReconcilingStrategy.java:114)
         at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.initialReconcile(JavaCompositeReconcilingStrategy.java:136)
         at org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:105)
         at org.eclipse.jdt.internal.ui.text.JavaReconciler.initialProcess(JavaReconciler.java:406)
         at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:173)
  • 6. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    780326 Newbie
    Currently Being Moderated
    I was able to get around the hang by reinstalling eclipse. I am now pointing to jdk1.6.0_33 with the name Oracle Weblogic Server 12c (12.1.1) JRE. Still unable to deploy. Chances are if I try 6 or 7 random things I can get it to deploy but could use a real answer. Will post steps that enabled me to redeploy if and when I get there.

    <Aug 22, 2012 12:52:34 PM PDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1345665153649" for task "0". Error is: "java.lang.NullPointerException"
    java.lang.NullPointerException
         at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
         at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
         at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
         at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
         at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
         at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
         at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         Truncated. see log file for complete stacktrace
    >
    <Aug 22, 2012 12:52:34 PM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application "_auto_generated_ear_".>
    <Aug 22, 2012 12:52:34 PM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.NullPointerException
         at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
         at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
         at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
         at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
         at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
         at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
         at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         Truncated. see log file for complete stacktrace
  • 7. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated
    Hi Bruce,

    Can you try with following option in jdk option -Xverify:none and run the server again.

    Regards,
    Kal
  • 8. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    780326 Newbie
    Currently Being Moderated
    Kal,
    Would this option go in the eclipse startup or somewhere in the weblogic startup command files?

    Thanks for your follow-up on this.
  • 9. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated
    Hi Buce,

    This is java option so we can place this option any where either in eclipse in .ini file or weblogic .sh file it should work.

    Please let me know once you test it.

    Regards,
    Kal
  • 10. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    780326 Newbie
    Currently Being Moderated
    Same thing. Pasting entire listing so you can see -xverify was used..

    Starting WLS with line:
    C:\PROGRA~1\Java\JDK16~3.0_3\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.policy -Xverify:none -Djava.endorsed.dirs=C:\PROGRA~1\Java\JDK16~3.0_3/jre/lib/endorsed;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1/endorsed -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\apps\Oracle\MIDDLE~1\WLSERV~1.1 -Dwls.home=C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server -Dweblogic.home=C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\apps\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sysext_manifest_classpath;C:\apps\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_manifest_classpath weblogic.Server.

    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m
    .
    WLS Start Mode=Development
    .
    CLASSPATH=C:\apps\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\apps\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK16~3.0_3\lib\tools.jar;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic_sp.jar;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.jar;C:\apps\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_12.1.1.0.jar;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\webservices.jar;C:\apps\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\apps\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Users\conrad4\.m2\repository\com\oracle\jdeveloper\jars\rdbms_jlib\xdb\10.1.3.5.0\xdb-10.1.3.5.0.jar;C:\Users\conrad4\.m2\repository\com\oracle\jdeveloper\jars\modules_oracle_xdk_11_1_1\xmlparserv2\11.1.1.0.2\xmlparserv2-11.1.1.0.2.jar;;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\common\derby\lib\derbyclient.jar;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\xqrl.jar;.;
    .
    PATH=C:\apps\Oracle\MIDDLE~1\patch_wls1211\profiles\default\native;C:\apps\Oracle\MIDDLE~1\patch_ocp371\profiles\default\native;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\bin;C:\apps\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK16~3.0_3\jre\bin;C:\PROGRA~1\Java\JDK16~3.0_3\bin;C:/Program Files/Java/jdk1.6.0_26/bin/../jre/bin/server;C:/Program Files/Java/jdk1.6.0_26/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_26/bin/../jre/lib/amd64;C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files (x86)\Perl\bin\;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files (x86)\ANT\apache-ant-1.8.2/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\LLNL\SLAMv2;C:\Program Files (x86)\AccuRev\bin;N:\tools\x86-windows\accurev\bin;C:\Program Files (x86)\QuickTime\QTSystem\;c:\apps\maven\bin;C:\apps\eclipse;;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32\oci920_8
    .
    ***************************************************
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    ***************************************************
    starting weblogic with Java version:
    Listening for transport dt_socket at address: 8453
    java version "1.6.0_33"
    Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
    Starting WLS with line:
    C:\PROGRA~1\Java\JDK16~3.0_3\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.policy -Xverify:none -Djava.endorsed.dirs=C:\PROGRA~1\Java\JDK16~3.0_3/jre/lib/endorsed;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1/endorsed -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\apps\Oracle\MIDDLE~1\WLSERV~1.1 -Dwls.home=C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server -Dweblogic.home=C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\apps\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sysext_manifest_classpath;C:\apps\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_manifest_classpath weblogic.Server
    Listening for transport dt_socket at address: 8453
    <Aug 22, 2012 4:10:38 PM PDT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <Aug 22, 2012 4:10:38 PM PDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <Aug 22, 2012 4:10:39 PM PDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.8-b03 from Sun Microsystems Inc..>
    <Aug 22, 2012 4:10:39 PM PDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 13340309 Thu Feb 16 18:30:21 IST 2012
    WebLogic Server Temporary Patch for 13019800 Mon Jan 16 16:53:54 IST 2012
    WebLogic Server Temporary Patch for BUG13391585 Thu Feb 02 10:18:36 IST 2012
    WebLogic Server Temporary Patch for 13516712 Mon Jan 30 15:09:33 IST 2012
    WebLogic Server Temporary Patch for BUG13641115 Tue Jan 31 11:19:13 IST 2012
    WebLogic Server Temporary Patch for BUG13603813 Wed Feb 15 19:34:13 IST 2012
    WebLogic Server Temporary Patch for 13424251 Mon Jan 30 14:32:34 IST 2012
    WebLogic Server Temporary Patch for 13361720 Mon Jan 30 15:24:05 IST 2012
    WebLogic Server Temporary Patch for BUG13421471 Wed Feb 01 11:24:18 IST 2012
    WebLogic Server Temporary Patch for BUG13657792 Thu Feb 23 12:57:33 IST 2012
    WebLogic Server 12.1.1.0 Wed Dec 7 08:40:57 PST 2011 1445491 >
    <Aug 22, 2012 4:10:40 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
    <Aug 22, 2012 4:10:40 PM PDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
    <Aug 22, 2012 4:10:41 PM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
    <Aug 22, 2012 4:10:41 PM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log00061. Log messages will continue to be logged in C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log.>
    <Aug 22, 2012 4:10:41 PM PDT> <Notice> <Log Management> <BEA-170019> <The server log file C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <Aug 22, 2012 4:10:41 PM PDT> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'C:\PROGRA~1\Java\JDK16~3.0_3\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\apps\Oracle\MIDDLE~1\patch_wls1211\profiles\default\native;C:\apps\Oracle\MIDDLE~1\patch_ocp371\profiles\default\native;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\bin;C:\apps\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK16~3.0_3\jre\bin;C:\PROGRA~1\Java\JDK16~3.0_3\bin;C:/Program Files/Java/jdk1.6.0_26/bin/../jre/bin/server;C:/Program Files/Java/jdk1.6.0_26/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_26/bin/../jre/lib/amd64;C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files (x86)\Perl\bin\;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files (x86)\ANT\apache-ant-1.8.2/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\LLNL\SLAMv2;C:\Program Files (x86)\AccuRev\bin;N:\tools\x86-windows\accurev\bin;C:\Program Files (x86)\QuickTime\QTSystem\;c:\apps\maven\bin;C:\apps\eclipse;;C:\apps\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32\oci920_8;.'
    >
    <Aug 22, 2012 4:10:42 PM PDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Aug 22, 2012 4:10:43 PM PDT> <Warning> <Store> <BEA-280109> <Unable to load the native wlfileio library for the persistent file store "_WLS_AdminServer". The store will use buffered I/O. The store is still operating in a transactionally safe synchronous mode. See store open log messages for the requested and final write policies.>
    <Aug 22, 2012 4:10:43 PM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
    <Aug 22, 2012 4:10:43 PM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\access.log00085. Log messages will continue to be logged in C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\access.log.>
    <Aug 22, 2012 4:10:44 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.>
    <Aug 22, 2012 4:10:44 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log00059. Log messages will continue to be logged in C:\apps\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>
    <Aug 22, 2012 4:10:46 PM PDT> <Warning> <Server> <BEA-002611> <The hostname "N9148879.nif.llnl.gov", maps to multiple IP addresses: 128.15.93.21, 0:0:0:0:0:0:0:1.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 128.15.93.21:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in development mode.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
    <Aug 22, 2012 4:10:46 PM PDT> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
    <Aug 22, 2012 4:11:12 PM PDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1345677072260" for task "0". Error is: "java.lang.NullPointerException"
    java.lang.NullPointerException
         at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
         at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
         at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
         at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
         at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
         at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
         at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         Truncated. see log file for complete stacktrace
    >
    <Aug 22, 2012 4:11:12 PM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application "_auto_generated_ear_".>
    <Aug 22, 2012 4:11:12 PM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.NullPointerException
         at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
         at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
         at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
         at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at com.bea.wls.redef.AttachUtils.attachToCurrentVM(AttachUtils.java:83)
         at com.bea.wls.redef.AttachUtils.attachAndLoadAgent(AttachUtils.java:182)
         at com.bea.wls.redef.ClassRedefinerFactory.loadAgent(ClassRedefinerFactory.java:36)
         at com.bea.wls.redef.ClassRedefinerFactory.<clinit>(ClassRedefinerFactory.java:30)
         at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
         Truncated. see log file for complete stacktrace
    >
  • 11. Re: Unable to restart weblogic - NullPointerException  AttachUtils
    780326 Newbie
    Currently Being Moderated
    Kal,
    Changed fast-swap to false and app deployed. Now to see what happens after I change it back. At least I can get some work done (btw. we are a regular customer, LLNL, not some guy who downloaded free software).

    <wls:fast-swap>
              <wls:enabled>false</wls:enabled>
         </wls:fast-swap>

    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
         xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
         <wls:weblogic-version>12.1.1</wls:weblogic-version>
         <wls:context-root>appman-jsf</wls:context-root>
         <wls:session-descriptor>
              <wls:cookie-name>appman-jsf</wls:cookie-name>
         </wls:session-descriptor>
         <wls:fast-swap>
              <wls:enabled>false</wls:enabled>
         </wls:fast-swap>
         <wls:library-ref>
              <wls:library-name>jsf</wls:library-name>
              <wls:specification-version>1.2</wls:specification-version>
              <wls:exact-match>true</wls:exact-match>
         </wls:library-ref>
    </wls:weblogic-web-app>

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points