Skip to Content
0
Former Member
Aug 29, 2007 at 03:51 PM

preloaded SystemLibraries and Resart des Servers

18 Views

Hi all,

i use jco nativ (not JCA,) within an EJB to get Data from SAP System.

if i deploy my Application over NWDS, i become an exception , that means, that some libraries (sapjcorfc) has been already loaded in another ClassLoader. After that , i have to stop und start my appServer again, it takes a long time and impeded corporate work.

Has anybody an idea, how can i optimize it, so that, i do not need restart my server , after i deploey my ear-file ?

Best Regards

A. Büyükyilmaz

Hier ist Exception :

-

-


java.rmi.RemoteException:

com.sap.engine.services.ejb.exceptions.BaseRemoteException: Exception in

method getGesamtEngagementData. at de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorObjectImpl0_0.getGesamtEngagementData(KreditvorlageGeneratorObjectImpl0_0.java:281)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGenerator_Stub.getGesamtEngagementData(KreditvorlageGenerator_Stub.java:309)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)

at $Proxy162.getGesamtEngagementData(Unknown Source)

at

de.hshnordbank.connectivity.logonticket.DocumentFabric.getGeData(DocumentFabric.java:125)

at

de.hshnordbank.connectivity.logonticket.TestLogonTicketIView$TestLogonTicketDynPage.onKreditvorlageErstellen(TestLogonTicketIView.java:455)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)

at

com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)

at

com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)

at

com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

at

com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

at

com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)

at

com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)

at

com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)

at

com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:355)

at

com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:310)

at

com.sapportals.portal.navigation.workAreaiView.doContent(workAreaiView.java:228)

at

com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

at

com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

at

com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)

at

com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)

at

com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:375)

at

java.security.AccessController.doPrivileged(AccessController.java:242)

at

com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:388)

at

com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)

at

EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)

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

Caused by: java.lang.ExceptionInInitializerError:

JCO.classInitialize():

Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

.

java.library.path

at com.sap.mw.jco.JCO.(JCO.java:776)

at java.lang.J9VMInternals.initializeImpl(Native Method)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)

at

de.hshnordbank.kreditvorlage.kv.Tools.connectToSAP(Tools.java:206)

at

de.hshnordbank.kreditvorlage.ge.queries.Query00.initializeTable(Query00.java:66)

at

de.hshnordbank.kreditvorlage.ge.GesamtEngagementDataImpl.holeGesamtengagementDaten(GesamtEngagementDataImpl.java:134)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorBean.getGesamtEngagementData(KreditvorlageGeneratorBean.java:177)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorObjectImpl0_0.getGesamtEngagementData(KreditvorlageGeneratorObjectImpl0_0.java:261)

... 36 more

; nested exception is:

java.lang.ExceptionInInitializerError: JCO.classInitialize():

Could

not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

.

java.library.path

at

com.sap.engine.services.ejb.exceptions.BaseRemoteException.writeReplace(BaseRemoteException.java:276)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1061)

at

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1042)

at

java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:309)

at

com.sap.engine.services.rmi_p4.StubImpl.p4_initializeStreams(StubImpl.java:281)

at

com.sap.engine.services.rmi_p4.StubImpl.p4_replicate(StubImpl.java:274)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGenerator_Stub.getGesamtEngagementData(KreditvorlageGenerator_Stub.java:364)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)

at $Proxy162.getGesamtEngagementData(Unknown Source)

at

de.hshnordbank.connectivity.logonticket.DocumentFabric.getGeData(DocumentFabric.java:125)

at

de.hshnordbank.connectivity.logonticket.TestLogonTicketIView$TestLogonTicketDynPage.onKreditvorlageErstellen(TestLogonTicketIView.java:455)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)

at

com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)

at

com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)

at

com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

at

com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

at

com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)

at

com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)

at

com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)

at

com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:355)

at

com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:310)

at

com.sapportals.portal.navigation.workAreaiView.doContent(workAreaiView.java:228)

at

com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

at

com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

at

com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)

at

com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)

at

com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:375)

at

java.security.AccessController.doPrivileged(AccessController.java:242)

at

com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:388)

at

com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)

at

EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)

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

Caused by: java.lang.ExceptionInInitializerError:

JCO.classInitialize():

Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

.

java.library.path

at com.sap.mw.jco.JCO.(JCO.java:776)

at java.lang.J9VMInternals.initializeImpl(Native Method)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)

at

de.hshnordbank.kreditvorlage.kv.Tools.connectToSAP(Tools.java:206)

at

de.hshnordbank.kreditvorlage.ge.queries.Query00.initializeTable(Query00.java:66)

at

de.hshnordbank.kreditvorlage.ge.GesamtEngagementDataImpl.holeGesamtengagementDaten(GesamtEngagementDataImpl.java:134)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorBean.getGesamtEngagementData(KreditvorlageGeneratorBean.java:177)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorObjectImpl0_0.getGesamtEngagementData(KreditvorlageGeneratorObjectImpl0_0.java:261)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGenerator_Stub.getGesamtEngagementData(KreditvorlageGenerator_Stub.java:309)

... 35 more