cancel
Showing results for 
Search instead for 
Did you mean: 

J2EE Engine getting restarted

Former Member
0 Kudos

Hi J2ee engine is getting restarted again and again as soon as i tries to access visual administrator or UME.

Here are the text relevant to the error from the following log files -

dev_jcontrol --No errors found

dev_server0

dev_bootstrap

TEXT FROM DEV_bootstrap

**********************************************************************

JHVM_LoadJavaVM: VM Arguments of node [bootstrap]

-> stack : 1048576 Bytes

-> arg[ 0]: exit

-> arg[ 1]: abort

-> arg[ 2]: vfprintf

-> arg[ 3]: -Djco.jarm=1

-> arg[ 4]: -Dsys.global.dir=C:\usr\sap\CRM\SYS\global

-> arg[ 5]: -Dapplication.home=C:\usr\sap\CRM\DVEBMGS10\exe

-> arg[ 6]: -Djava.class.path=C:\usr\sap\CRM\DVEBMGS10\exe\jstartup.jar;C:\usr\sap\CRM\DVEBMGS10\exe\jvmx.jar;.\bootstrap\launcher.jar

-> arg[ 7]: -Djava.library.path=C:\j2sdk1.4.2_17-x64
jre\bin\server;C:\j2sdk1.4.2_17-x64
jre\bin;C:\j2sdk1.4.2_17-x64
bin;C:\usr\sap\CRM\DVEBMGS10\j2ee\os_libs;C:\j2sdk1.4.2_17-x64\bin;C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Support Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\j2sdk1.4.2_17-x64\bin;C:\usr\sap\BWD\SYS\exe\uc\NTAMD64;C:\usr\sap\CRM\SYS\exe\uc\NTAMD64

-> arg[ 8]: -Dmemory.manager=256M

-> arg[ 9]: -Xmx256M

-> arg[ 10]: -DLoadBalanceRestricted=no

-> arg[ 11]: -Djstartup.mode=BOOTSTRAP

-> arg[ 12]: -Djstartup.ownProcessId=5344

-> arg[ 13]: -Djstartup.ownHardwareId=F1628170588

-> arg[ 14]: -Djstartup.whoami=bootstrap

-> arg[ 15]: -Djstartup.debuggable=yes

-> arg[ 16]: -Xss2m

-> arg[ 17]: -DSAPINFO=CRM_10_bootstrap

-> arg[ 18]: -DSAPSTART=1

-> arg[ 19]: -DCONNECT_PORT=3292

-> arg[ 20]: -DSAPSYSTEM=10

-> arg[ 21]: -DSAPSYSTEMNAME=CRM

-> arg[ 22]: -DSAPMYNAME=187799-ap_CRM_10

-> arg[ 23]: -DSAPPROFILE=C:\usr\sap\CRM\SYS\profile\CRM_DVEBMGS10_187799-ap

-> arg[ 24]: -DFRFC_FALLBACK=ON

-> arg[ 25]: -DFRFC_FALLBACK_HOST=localhost

-> arg[ 26]: -DSAPSTARTUP=1

-> arg[ 27]: -DSAPSYSTEM=10

-> arg[ 28]: -DSAPSYSTEMNAME=CRM

-> arg[ 29]: -DSAPMYNAME=187799-ap_CRM_10

-> arg[ 30]: -DSAPDBHOST=187799-AP

-> arg[ 31]: -Dj2ee.dbhost=187799-AP

**********************************************************************

CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources

CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain

CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub

CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS

CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices

CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile

CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup

CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue

CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode

CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode

CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto

[Thr 5228] JHVM_LoadJavaVM: Java VM created OK.

**********************************************************************

JHVM_BuildArgumentList: main method arguments of node [bootstrap]

-> arg[ 0]: com.sap.engine.bootstrap.Bootstrap

-> arg[ 1]: ./bootstrap

-> arg[ 2]: ID1082122

**********************************************************************

[Thr 5228] Tue Jun 02 09:47:34 2009

[Thr 5228] JHVM_RegisterNatives: registering methods in com.sap.bc.krn.perf.PerfTimes

[Thr 6512] Tue Jun 02 09:47:48 2009

[Thr 6512] JLaunchIExitJava: exit hook is called (rc = 0)

[Thr 6512] JLaunchCloseProgram: good bye (exitcode = 0)

TEXT FROM DEVSERVER0_

"Thread-1" prio=5 tid=0x0000000001562ee0 nid=0xe24 in Object.wait() [0x000000000716f000..0x000000000716fb80]

at java.lang.Object.wait(Native Method)

- waiting on <0x000000001ab18590> (a com.sap.engine.core.Framework)

at java.lang.Object.wait(Object.java:429)

at com.sap.engine.core.Framework.start(Framework.java:207)

- locked <0x000000001ab18590> (a com.sap.engine.core.Framework)

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:324)

at com.sap.engine.boot.FrameThread.run(FrameThread.java:61)

at java.lang.Thread.run(Thread.java:534)

"Signal Dispatcher" daemon prio=10 tid=0x00000000015624a0 nid=0x1578 waiting on condition [0x0000000000000000..0x0000000000000000]

"Finalizer" daemon prio=9 tid=0x0000000001562210 nid=0x1ffc in Object.wait() [0x000000000632f000..0x000000000632fb80]

at java.lang.Object.wait(Native Method)

- waiting on <0x000000001ab18d50> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)

- locked <0x000000001ab18d50> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)

at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x0000000001561f80 nid=0x1968 in Object.wait() [0x000000000612f000..0x000000000612fb80]

at java.lang.Object.wait(Native Method)

- waiting on <0x000000001ab106b8> (a java.lang.ref.Reference$Lock)

at java.lang.Object.wait(Object.java:429)

at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)

- locked <0x000000001ab106b8> (a java.lang.ref.Reference$Lock)

"main" prio=5 tid=0x0000000001561cf0 nid=0x18ac in Object.wait() [0x00000000021ef000..0x00000000021efc68]

at java.lang.Object.wait(Native Method)

- waiting on <0x000000001ab18df8> (a com.sap.engine.boot.StartFrame)

at java.lang.Object.wait(Object.java:429)

at com.sap.engine.boot.StartFrame.work(StartFrame.java:121)

- locked <0x000000001ab18df8> (a com.sap.engine.boot.StartFrame)

at com.sap.engine.boot.Start.main(Start.java:34)

"VM Thread" prio=5 tid=0x0000000001249010 nid=0x1278 runnable

"VM Periodic Task Thread" prio=10 tid=0x0000000001249210 nid=0x1798 waiting on condition

"Suspend Checker Thread" prio=10 tid=0x0000000001249110 nid=0x1480 runnable

[Thr 4728] Tue Jun 02 17:31:16 2009

[Thr 4728] JLaunchIExitJava: exit hook is called (rc = 666)

[Thr 4728] **********************************************************************

      • ERROR => The Java VM terminated with a non-zero exit code.

      • Please see SAP Note 943602 , section 'J2EE Engine exit codes'

      • for additional information and trouble shooting.

**********************************************************************

[Thr 4728] JLaunchCloseProgram: good bye (exitcode = 666)

Edited by: karan321 on Jun 3, 2009 4:29 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

sunny_pahuja2
Active Contributor
0 Kudos

hi,

if you will look into logs then there are lot of below errors, in which sap is waiting for some locks

0x0000000001562210 nid=0x1ffc in Object.wait()

Could you please manually stop the system and clean all seamaphores and again restart the system.

Thanks

Sunny

Former Member
0 Kudos

Hi sunny ,

Before i observed that the J2ee engine is crashing i have performed the reset of the j2ee admin password and activated the sap emergency user , still i am not able to access the Virtual admin tool and also i am not able to access the UML through the portal .

I have increased the heap size of the server and dispacher as per 64-bit system.

While accessing the Visual admin through normal user ( having J2EE_ADMIN role) it giving me error with the log Visual_administration.0.log output which is below , apart from that the j2ee engine still crashed when accessed by "useradmin " through the UML portal. Any thoughts ?

#1.5 #C0000AF16DDE00030000000000CC7F9E00046B85101CD8D8#1244119151991#/System/Server/VisualAdministrationTool##com.sap.engine.services.adminadapter.gui.tasks.LoginTask#######Thread[Thread-35,6,main]##0#0#Error#1#/System/Server/VisualAdministrationTool#Plain###Error while trying to login to 187799-ap: Cannot authenticate the user.#

#1.5 #C0000AF16DDE00040000000000CC7F9E00046B851120C000#1244119169024#/System/Server/VisualAdministrationTool##com.sap.engine.services.adminadapter.gui.tasks.LoginTask#######Thread[Thread-46,6,main]##0#0#Error#1#/System/Server/VisualAdministrationTool#Plain###Error while trying to login to 187799-ap: Caller IDADMIN not authorized, only role administrators is allowed to access JMX#

Former Member
0 Kudos

Did you deactivate the SAP emergency user because you shall not be able to login if that is set to true.

If you have unlocked J2ee_admin are you able to login through URL.

Check the SAPJSF user for the Client with which UME is configured.

Thanks Rishi Abrol

sunny_pahuja2
Active Contributor
0 Kudos

Hi,

While accessing the Visual admin through normal user ( having J2EE_ADMIN role) it giving me error with the log Visual_administration.0.log output which is below , apart from that the j2ee engine still crashed when accessed by "useradmin " through the UML portal. Any thoughts ?

Which admin user are you using in secure storage ? If it is J2EE_ADMIN, then have you changed password there ?

apart from that the j2ee engine still crashed

could you please paste the logs when your server crashes bootstap logs and std_dispatcher and dev_* logs ?

Please go thorugh this SAP note 724452 - Central Note for SAP NetWeaver Java Server 04/2004s (central note for all Java related problems)..this might be uselful for you..

thanks

Sunny

Edited by: Sunny Pahuja on Jun 4, 2009 4:19 PM

Former Member
0 Kudos

check out attached link

[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e09e4a5e-8280-2a10-ca98-a59dd47d396d]

Former Member
0 Kudos

Now the j2ee engine is stable thanks as i have not configured the heap memory at the parameters values in dispatcher .

As initially i was not able to login into the virtual admin tool therefore i activated the emergency user , now when i tries to login into the UME through browser with it gives "password locked " for the sap* . How can i unlock the emergency user and why it is locked even after activating ?

Former Member
0 Kudos

Also i noticed when activating sap* user through config tool its showing 2 properties one is global and another one local for the sevices "com.service.core.ume.service" .

And the global properties is not showing even TRUE value even after the restart of j2ee engine whereas i am able to see the edited value in "local parameter" property

Edited by: karan321 on Jun 4, 2009 5:40 PM

Former Member
0 Kudos

Hi,

when ever you activate this Value to true use the global Setting as they shall be only effective Dont use the local Value.Ste the local to false.

Thanks Rishi Abrol

Former Member
0 Kudos

Hi,

Also make sure that you restart the JAVA engine. Than only emergency user will be activated.

With Regards,

Saurabh

Former Member
0 Kudos

Thanks after giving FALSE value for local profile the emergency user is activated now , Can i reset the j2ee_admin user from visual admin tool , or only way is to do that is using UME portal.

Also after accessing the visual admin tool in edit mode using sap* i am not able to unlock the j2ee_admin user , it throws "unable to unlock user" i am reaching through cluster -->services --> security provider . Even it gives "unable to change password " when i tries to change the password for the j2ee_admin user.

Edited by: karan321 on Jun 5, 2009 1:35 PM

Edited by: karan321 on Jun 5, 2009 1:38 PM

Former Member
0 Kudos

Hi ,

Just try through URL and unlock the J2ee_admin afetr you have unlocke the SAP*.

then you need to go back to configtool and set the value to False to deactivate SAP* and restart and then try J2ee_admin password

Thaks Rishi Abrol

Former Member
0 Kudos

Hi all , after activating the emergency user sap* i am not able to reset the password for j2ee_admin or create a new user in identity management.

while resetting the password i am getting the following error--

An error occurred in the persistence. The original message (possibly not translated) was: "Attribute "lockreason" on namespace "com.sap.security.core.usermanagement" of principal "UACC.R3_DATASOURCE.J2EE_ADMIN" is not modifiable.". Contact your system administrator

And while creating a new user i am getting the following error ---

Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated message was: "No active writeable datasource found for user creation, check your Persistence Configuration.".

Former Member
0 Kudos

Hi ,

Check your UME Data Source Configuration File and correct it so that users can be created in backend.

You should use the <homeFor> tag to include user principal into writable datasource:

http://help.sap.com/saphelp_nw70/helpdata/EN/8c/a3fc3f37c2e569e10000000a155106/frameset.htm

/thread/379790 [original link is broken]

Thanks

Rishi Abrol

Former Member
0 Kudos

Thanks Rishi , I am checking the links

Former Member
0 Kudos

Hi Rishi ,

I am not able to figure what steps i need to follow from the above links . Well through UME i am able to drag only ABAP system as data source when modified it asks for data source to be uploaded.

Former Member
0 Kudos

Well , i got it resolved by changing the password for j2ee_admin user at client 001 .

Thanks

Former Member
0 Kudos

Hi,

Can you please check the following link.

With Regards,

Saurabh

Former Member
0 Kudos

As per forum the size of heap memory was increased to 2 GB initially , When i am doing that i am getting a message

" you are about to disable the startup of server ID " "

Does this message comes normally

Former Member
0 Kudos

Hi,

Please make sure that you are changing the parameter using the configtool on the right place.

Please refer to below notes for help

"Note 710146 - How to change J2EE Engine JVM Settings"

"Note 723909 - Java VM settings for J2EE 6.40/7.0"

With Regards,

Saurabh