Topic
2 replies Latest Post - ‏2012-05-17T20:43:22Z by Dushyant
Dushyant
Dushyant
4 Posts
ACCEPTED ANSWER

Pinned topic 3.0.0.1 Startup errors

‏2012-05-17T03:57:45Z |
Hi guys, any thoughts on resolving this erro below. (Tried the usual set JAVA_OPTS=-Xms512m -Xmx1024m) in geronimo.bat.startup.bat and setenv.bat. Log attached, OS is WInXP-SP3.

Appreciate any help - Thanks!!

2012-05-16 23:48:01,890 ERROR FactoryRegistry PermGen space
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.apache.geronimo.hook.equinox.GeronimoClassLoader.defineClass(GeronimoClassLoader.java:213)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:458)
at org.apache.geronimo.hook.equinox.GeronimoClassLoader.findLocalClass(GeronimoClassLoader.java:237)
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:464)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.apache.geronimo.hook.equinox.GeronimoClassLoader.defineClass(GeronimoClassLoader.java:213)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:458)
at org.apache.geronimo.hook.equinox.GeronimoClassLoader.findLocalClass(GeronimoClassLoader.java:237)
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.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
2012-05-16 23:48:01,890 ERROR GBeanInstanceState Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/axis2/3.0-w20111014/car?ServiceModule=org.apache.geronimo.configs/axis2/3.0-w20111014/car,j2eeType=GBean,name=Axis2SystemInitializer"
java.lang.NullPointerException
at org.apache.geronimo.axis2.Axis2SystemInitializer.doStart(Axis2SystemInitializer.java:61)
at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:707)
at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:214)
at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:94)
at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:67)
at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)
2012-05-16 23:48:01,984 INFO KernelContextGBean unbound gbean

Attachments

Updated on 2012-05-17T20:43:22Z at 2012-05-17T20:43:22Z by Dushyant
  • Kevan
    Kevan
    121 Posts
    ACCEPTED ANSWER

    Re: 3.0.0.1 Startup errors

    ‏2012-05-17T13:39:07Z  in response to Dushyant
    You're using the Oracle/Sun (HotSpot) JVM which uses a separate setting to control the amount of PermGen memory (memory used to load Classes, as opposed to Heap Space memory used for object allocations).

    "java.lang.OutOfMemoryError: PermGen space" shows that you've run out of PermGen space. Adding "-XX:MaxPermSize=128m" (or larger) should fix. -Xmx will have no affect on PermGen setting.

    The IBM JVM does not use a separate space for the allocation of Classes. So, object and class allocations both come from the heap space.

    --kevan
    • Dushyant
      Dushyant
      4 Posts
      ACCEPTED ANSWER

      Re: 3.0.0.1 Startup errors

      ‏2012-05-17T20:43:22Z  in response to Kevan
      Thanks, Kevan..that helped. Worked out finally as -

      set JAVA_OPTS=-Xmx256m -XX:MaxPermSize=128m
      Added this in geronimo.bat

      set JAVA_OPTS=%JAVA_OPTS% -XX:MaxPermSize=512m
      Added this in setenv.bat
      Thanks,
      Dushyant.