1 Reply Latest reply on May 6, 2011 12:55 PM by René van Wijk

    my realm error while starting managed server on a remote machine

    729753
      Tried to start the managed server on the remote from admin console...got the below error message

      Node manager on the remote machine is up and running.Start request reaches the node manager but it fails to start the server because of below error.



      <May 6, 2011 2:12:46 AM PDT> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
      NestedThrowables:
      java.lang.reflect.InvocationTargetException.
      weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
      NestedThrowables:
      java.lang.reflect.InvocationTargetException
           at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:342)
           at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)
           at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)
           at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)
           at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)
           Truncated. see log file for complete stacktrace

      Caused By: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
      NestedThrowables:
      java.lang.reflect.InvocationTargetException
           at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)
           at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)
           at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)
           at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)
           at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:47)
           Truncated. see log file for complete stacktrace

      Caused By: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
      NestedThrowables:
      java.lang.reflect.InvocationTargetException
           at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:549)
           at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:149)
           at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:99)
           at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)
           at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)
           Truncated. see log file for complete stacktrace

      Caused By: java.lang.reflect.InvocationTargetException
           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 javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534)
           Truncated. see log file for complete stacktrace

      Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:891341 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "org.apache.openjpa.abstractstore.AbstractStoreBrokerFactory". See the nested exception for details.
           at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:95)
           at kodo.jdo.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(PersistenceManagerFactoryImpl.java:41)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           Truncated. see log file for complete stacktrace

      Caused By: java.lang.OutOfMemoryError: allocLargeObjectOrArray: [Ljava/lang/Object;, size 782611408
           at java.util.Arrays.copyOf(Arrays.java:2760)
           at java.util.Arrays.copyOf(Arrays.java:2734)
           at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
           at java.util.ArrayList.add(ArrayList.java:351)
           at org.apache.openjpa.conf.CacheMarshallerImpl.setInputUrlFromResourceLocation(CacheMarshallerImpl.java:226)
           Truncated. see log file for complete stacktrace
      >
      <May 6, 2011 2:12:46 AM PDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
      <May 6, 2011 2:12:46 AM PDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:

      There are 1 nested errors:

      weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable
           at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:916)
           at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)
           at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)
           at weblogic.security.SecurityService.start(SecurityService.java:141)
           at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)



      Any pointers would be very helpful.
        • 1. Re: my realm error while starting managed server on a remote machine
          René van Wijk
          I think your problem is here: Caused By: java.lang.OutOfMemoryError: allocLargeObjectOrArray: [Ljava/lang/Object;, size 782611408

          And is probably related to this: http://mail-archives.apache.org/mod_mbox/openjpa-dev/201006.mbox/%3C26423199.85161276545675046.JavaMail.jira@thor%3E
          the comment in here is saying: Make the CacheMarshallerImpl a bit more tolerant to different configurations.

          Could be the out of memory error you getting is related to your openjpa configuration, not sure here