cancel
Showing results for 
Search instead for 
Did you mean: 

J2ee stack doesn't start after system copy

Former Member
0 Kudos

Hello,

I ve done the system copy (homogen. form BWP -> BWD). All steps were completed. Both Export and import was end without errors. I used SAPInst and do the export both java and abap, and then import via SAPInst.

ABAP stack of target system is working good but java wont' start

in jvm_bootstrap i have:

-


Exception occurred:

com.sap.engine.bootstrap.SynchronizationException: Database initialization failed! Check database properties!

at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:476)

at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:146)

at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:971)

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.offline.OfflineToolStart.main(OfflineToolStart.java:81)

-


==[ Caused by: ]==----


com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.

at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:360)

at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:125)

at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.<init>(PersistenceHandler.java:38)

at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init>(ConfigurationCache.java:149)

at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:236)

at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)

at com.sap.engine.bootstrap.Synchronizer.<init>(Synchronizer.java:74)

at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:473)

at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:146)

at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:971)

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.offline.OfflineToolStart.main(OfflineToolStart.java:81)

Caused by: com.sap.sql.log.OpenSQLException: Could not load class com.microsoft.sqlserver.jdbc.SQLServerDriver.

at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)

at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:143)

at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(OpenSQLDataSourceImpl.java:608)

at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQLDataSourceImpl.java:285)

at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:302)

... 14 more

Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java:691)

at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:600)

at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:578)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:134)

I also can't connect to visual adm. or config tool at target system (bwd)

please help

Regards,

Michal

Edited by: Michal Sarna on Sep 21, 2010 2:27 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

Plese check the below link. it might helps you

/thread/48126 [original link is broken]

Regards,

Mahendra

Former Member
0 Kudos

Problem is similiar to this topic

unfortunately solution from that is not working in my case...

Former Member
0 Kudos

what is your j2ee engine version?

also check note:1428134

Regards,

Mahendra

Former Member
0 Kudos

After changing previunsly writed things (jar to mssql) i have error:

com.sap.engine.bootstrap.SynchronizationException: No such Dialog Instance (ID9726000) in the database!

franz_hiltscher
Participant
0 Kudos

Hi,

please describe how do you perform the source export and target system installation (SAPINST Input and syscopy method)

Kind Regards

Franz

Former Member
0 Kudos

I performed system copy export from sapinst for mssql java and abap and next I imported via sapinst for mssql java and abap.

All these steps without any errors.

I followed 757692 and 831812 notes and I don't have any errors is bootstrap.

There is an error in dev_jcontrol:

[Thr 5948] ***LOG Q0I=> NiPConnect2: connect (10061: WSAECONNREFUSED: Connection refused) [nixxi.cpp 2823]

[Thr 5948] *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 2 / sock 556

(SI_ECONN_REFUSE/10061; I4; ST; 10.151.1.141:3901) [nixxi.cpp 2823]

[Thr 5948] *** ERROR => MsIAttachEx: NiBufConnect to bwd/3901 failed (rc=NIECONN_REFUSED) [msxxi.c 652]

[Thr 5948] *** ERROR => Can't attach to message server (bwd/3901) [rc = -100]-> terminate [jcntrms.c 374]

[Thr 5948] JControlCloseProgram: started (exitcode = -100)

[Thr 5948] *** ERROR => MsIModState: not_attached [msxxi.c 3838]

[Thr 5948] *** ERROR => Can't modify message server state (state = 7, rc = -3) [jcntrms.c 841]

[Thr 5948] JControlCloseProgram: good bye... (exitcode = -100)

I see that I have no java process in mmc visible.

franz_hiltscher
Participant
0 Kudos

Is the SCS Instance up and running?

Do you deactivate the windows firewall?

Former Member
0 Kudos

This is the case that SCS instance won't up.

In smicm - http server I see:

HTTP Application Server Handler

ABAP Server operational = TRUE

J2EE Server configured = TRUE

J2EE HTTP port =

J2EE HTTPS port =

J2EE Server operational = FALSE

Default root access handler = ABAP

URL Prefix Table loaded = TRUE

I think that the ports should be 50000 and 50001 and def. root access should be J2EE. Where can I set this?

franz_hiltscher
Participant
0 Kudos

"This is the case that SCS instance won't up"

Before you can start your j2ee engine the scs (messages an enqueue) must be up and running.

if there a trouble with your SCS please post the logs from this instance

Former Member
0 Kudos

Hello,

When I start the whole system in mmc I jave java node green and abap yellow.

ABAP works perfect, java doesn't get up.

In task manager of windows server I see that java process assigns memory in page file usage history and next realeses it.

It repeats these steps until I stop green node of java in mmc.

In std_server0.out I have

-


node name : server0

pid : 7552

system name : BWD

system nr. : 00

started at : Wed Sep 22 12:32:41 2010

[Thr 2024] MtxInit: 10001 0 0

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

SAP J2EE Engine Version 7.00 PatchLevel 109886.44 is starting...

Loading: LogManager ... 657 ms.

Loading: PoolManager ... 0 ms.

Loading: ApplicationThreadManager ... 47 ms.

Loading: ThreadManager ... 16 ms.

Loading: IpVerificationManager ... 15 ms.

Loading: ClassLoaderManager ... 16 ms.

Loading: ClusterManager ... 125 ms.

Loading: LockingManager ... 47 ms.

Loading: ConfigurationManager ...

Loading: ConfigurationManager returned false!

Kernel not loaded. System halted.

SAP Kernel is the same as source system SAP Kernel.

franz_hiltscher
Participant
0 Kudos

Hi,

please check

../serverX/log/defaultTrace.trc.0

and

../serverX/log/system/database.log.0

Configuration Manager is a database problem.

Regards

Franz

Former Member
0 Kudos

in defaultrace:

#1.5 #001E0B611AD2005F000004700000177800049044869BC826#1284523897375#com.sap.portal.RFCLogger#sap.com/irj#com.sap.portal.RFCLogger#J2EE_GUEST#0##n/a##2a7d0460c07f11dfc1af001e0b611ad2#SAPEngine_Application_Thread[impl:3]_2##0#0#Info##Plain###[RFCEngineService]: registerToRFCDispatcher Ok#

#1.5 #001E0B611AD2005F000004710000177800049044869BC880#1284523897375#com.sap.portal.RFCLogger#sap.com/irj#com.sap.portal.RFCLogger#J2EE_GUEST#0##n/a##2a7d0460c07f11dfc1af001e0b611ad2#SAPEngine_Application_Thread[impl:3]_2##0#0#Info##Plain###[RFCEngineService] setFunctionCallListener: name function = GET_AWF_LOCALIZED_STRING; name application = com.sap.workflow.service.uwl.AdHocWorkflowConnector#

there is no database.log file in specified location.

Maybe Configuration Manager is connected with configtool params?

franz_hiltscher
Participant
0 Kudos

Hi,

if it possible for you please check the defaulttrace for ERROR messages.

Kind Regards

Franz

Former Member
0 Kudos

sorry wrong pasted.

/usr/sap/SID/DVEBMGSxx/j2ee/cluster/bootstrap/bootstrap.properties

/usr/sap/SID/DVEBMGSxx/j2ee/clusterinstance.properties

/usr/sap/SID/DVEBMGSxx/SDM/program/config/sdm_jstartup.properties

/usr/sap/SID/DVEBMGSxx/j2ee/cluster/dispatcher/cfg/kernel/<Name of the services>.properties

/usr/sap/SID/DVEBMGSxx/j2ee/cluster/serverX/cfg/kernel/<Name of the services>.properties

after proper change via configtool in this files.

SDM and dispatcher works!! are green!!

unfortunately server0 is down:

#1.5 #001E0B611AD200000000000C000002B8000490DCA27517FA#1285177199640#com.sap.engine.core.cluster.impl6.ClusterManagerImpl##com.sap.engine.core.cluster.impl6.ClusterManagerImpl.init(java.util.Properties)#######Thread[Thread-1,5,main]##0#0#Fatal##Plain###com.sap.engine.frame.cluster.ClusterException: Can't open port [3901] on host bwd / 10.151.1.141(Connection refused: connect).#

#1.5 #001E0B611AD200000000000D000002B8000490DCA2751875#1285177199640#com.sap.engine.core.cluster.impl6.ClusterManagerImpl##com.sap.engine.core.cluster.impl6.ClusterManagerImpl.init(java.util.Properties)#######Thread[Thread-1,5,main]##0#0#Fatal##Plain###com.sap.engine.frame.cluster.ClusterException: Can't open port [3901] on host bwd / 10.151.1.141 (Connection refused: connect).

at com.sap.engine.core.cluster.impl6.ms.MSRawConnection.open(MSRawConnection.java:368)

at com.sap.engine.core.cluster.impl6.ms.MSRawConnection.<init>(MSRawConnection.java:195)

at com.sap.engine.core.cluster.impl6.ms.MSConnectionImpl.<init>(MSConnectionImpl.java:50)

at com.sap.engine.core.cluster.impl6.ClusterManagerImpl.init(ClusterManagerImpl.java:1118)

at com.sap.engine.core.Framework.loadSingleManager(Framework.java:577)

at com.sap.engine.core.Framework.loadManagers(Framework.java:255)

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

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)

#

#1.5 #001E0B611AD200000000000F000002B8000490DCA2751A55#1285177199640#com.sap.engine.core.Framework##com.sap.engine.core.Framework#######Thread[Thread-1,5,main]##0#0#Error#1#/System/Server#Plain###Loading: ClusterManager returned false! #

#1.5 #001E0B611AD2000000000011000002B8000490DCA2751B44#1285177199640#com.sap.engine.core.Framework##com.sap.engine.core.Framework#######Thread[Thread-1,5,main]##0#0#Error#1#/System/Server#Plain###Kernel not loaded. System halted.#

#1.5 #001E0B611AD2000000000012000002B8000490DCA279BC34#1285177199937#com.sap.engine.core.thread.impl6.ThreadManagerImpl##com.sap.engine.core.thread.impl6.ThreadManagerImpl#######Thread[Thread-1,5,main]##0#0#Error##Plain###Unexpected thread activity after interrupt() is executed in shutdown of SAPEngine_System_Thread[impl:6]_ThreadManager:

Thread[SAP J2EE Engine|MS Socket Listener]

Task: com.sap.engine.core.thread.impl6.ActionObject - Processing Task [classname: com.sap.engine.core.cluster.impl6.ms.MSListener | toString: com.sap.engine.core.cluster.impl6.ms.MSListener@26b4e29b] with classloader [com.sap.engine.boot.CoreClassLoader@3e7ffe01]#

Edited by: Michal Sarna on Sep 22, 2010 8:04 PM

Former Member
0 Kudos

solved.

java works!