cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundErrr in PI 7.31 PROD-System with UDF

0 Kudos

Hi Gurus,

I'm facing a weird problem:

This is my environment: PI 7.31;

  1. Landscape: Dev --> QA --> PROD

All UDFs are save in the central SWCV: CentralLibrary.

All mappings with UDFs in PROD do not work, but in DEV and QA are OK.

The Error Log in Mapping is here:

javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: de/xyzcustomer/CentralLibrary/CL_StringConvert

at java.lang.ClassLoader.loadClass(ClassLoader.java:308) ... 52 more Caused by: com.sap.aii.ib.core.mapping.execution.ResourceNotFoundException: Unable to find resource de/ xyzcustomer/CentralLibrary/CL_StringConvert in the following software component versions: 26dd6550-707e-11e2-a09d-deb10ad76533, f0c662d0-6f7b-11e2-b498-deb10ad76533 at com.sap.aii.ib.server.mapping.execution.MappingFinderImpl.readClass(MappingFinderImpl.java:81) at com.sap.aii.ibrep.server.mapping.rt.ArchiveClassLoader.findClass(ArchiveClassLoader.java:92)

I’ve tried the following approaches:

  • Reimport central Library and Message-Mapping from DEV into PROD
  • Full mapping runtime cache refresh in Administration – Mapping Runtime
  • Create a local library in the Mapping namespace. It works well in DEV and QA, but in PROD still gets same error.

Could anyone help me?!

Thanks a lot and regards

Christine

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christine,

Have you tried restarting the system on OS level?

Regards,

Jannus Botha

0 Kudos

Hi Jannus,

I asked the basis. They told me they have restarted the PROD.

What do you mean "OS" Level? is there different restart types?

Regards

Christine

former_member184720
Active Contributor
0 Kudos

restart -> you are just restarting the SAP instance..

I think Jannus suggesting you to reboot the system.. restart the machine on which PI is hosted..

Former Member
0 Kudos

Hi Christine,

Hareesh is correct. Try restarting the system on OS (Operating System) level. Can you please send us the NWA error logs for this issue?

Regards,

Jannus Botha

0 Kudos

Hi Jannus,

here is the part of NWA error-log, which is recorded at the same time when the mapping war executed:

........................................

Nachricht:   LOGIN.OK

User: SLDUSER

IP Address: 10.10.10.85

Authentication Stack: sap.com/com.sap.lcr*sld

Authentication Stack Properties:

        template = ticket

        policy_domain = /sld

        password_change_error_page = /ChangePasswordSLD

        auth_method = basic

        password_change_login_page = /ChangePasswordSLD

        realm_name = SLD

Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details

1. com.sap.security.core.server.jaas.EvaluateTicketLoginModule             SUFFICIENT  ok          false      false                

        #1 ume.configuration.active = true

2. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   REQUISITE   ok          true       true                 

3. com.sap.security.core.server.jaas.CreateTicketLoginModule               OPTIONAL    ok          true       true                 

Central Checks                                                                                                true                 

Logon policies are disabled

Ganze Nachricht ausblenden

Gewichtung:   Info

Datum:   2014-04-25

Uhrzeit:   13:25:55:625

Kategorie:   /System/Security/Authentication

Ort:   com.sap.engine.services.security.authentication.logincontext.table

Anwendung:   sap.com/com.sap.lcr

Thread:   Thread[HTTP Worker [@126430168],5,Dedicated_Application_Thread]

Datenquelle:   j2ee\cluster\server1\log\system\security_01.log

Argumente:   

ID der Passport-Benutzeraktivität:   5effa3a2bbd911e3a7a50000003ba1d2

Nachrichten-ID:   

Sitzung:   12049

Transaktion:   

Benutzer:   SLDUSER

Zeitzone:   +0200

Kundennachrichtenkomponente:   BC-JAS-SEC

Laufzeitkomponente:   security

Korrelations-ID:   1047251000000004

Passport-Sitzung:   5EFFA3A2BBD911E3A7A50000003BA1D2

Passport-Verbindung:   5DF796ECCC6C11E3B6880000003BA1D2

Passport-Verbindungszähler:   1

Protokoll-ID:   C0000A0A0A4E36200000000000001834

Host:   sapp03

System:   P03

Instanz:   DVEBMGS00

Knoten:   server1

..............

it seems nothing with mapping to do, doesn't it?

Regards

Chirstine

0 Kudos

Hi Jannus,

i tested this scenario once more and monitored it with xpi_inspector.

In the runtime there is no mapping error.

But in Enterprise Services Builder, I test the mapping in test module, i get this NoClassDelFounderror.

The whole error-log is as below:

javax.ejb.EJBException: nested exception is: java.lang.RuntimeException:

java.lang.NoClassDefFoundError: de/xyzcustomer/CentralLibrary/CL_StringConvert

java.lang.RuntimeException: java.lang.NoClassDefFoundError:

de/xyzcustomer/CentralLibrary/CL_StringConvert at

com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal

(RequestInvocationContext.java:99) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:166) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke

(Interceptors_StatesTransition.java:19) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke

(Interceptors_Resource.java:50) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute

(Interceptors_Transaction.java:37) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke

(Interceptors_Transaction.java:21) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke

(Interceptors_MethodRetry.java:46) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:191) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke

(Interceptors_StatelessInstanceGetter.java:23) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke

(Interceptors_SecurityCheck.java:25) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke

(Interceptors_ExceptionTracer.java:17) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain

(DefaultInvocationChainsManager.java:138) at

com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke

(DefaultEJBProxyInvocationHandler.java:164) at $Proxy787.execute(Unknown Source) at

sun.reflect.GeneratedMethodAccessor1723.invoke(Unknown Source) at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at

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

com.sap.engine.services.rmi_p4.P4DynamicSkeleton.dispatch(P4DynamicSkeleton.java:240) at

com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:466) at

com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:69) at

com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:72) at

com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:43) at

com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest

(FCAConnectorImpl.java:999) at com.sap.engine.services.rmi_p4.P4Message.process

(P4Message.java:59) at com.sap.engine.services.cross.fca.MessageReader.run

(MessageReader.java:55) at com.sap.engine.core.thread.execution.Executable.run

(Executable.java:122) at com.sap.engine.core.thread.execution.Executable.run

(Executable.java:101) at com.sap.engine.core.thread.execution.CentralExecutor

$SingleThread.run(CentralExecutor.java:328) Caused by: java.lang.NoClassDefFoundError:

de/xyzcustomer/CentralLibrary/CL_StringConvert at

com.sap.xi.tf._MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_$MT$InnerLibsList.<init>

(_MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_.java:88) at

com.sap.xi.tf._MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_$MT$InnerLibsList.<init>

(_MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_.java:87) at

com.sap.xi.tf._MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_.<init>

(_MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_.java:19) at

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at

sun.reflect.NativeConstructorAccessorImpl.newInstance

(NativeConstructorAccessorImpl.java:39) at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance

(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance

(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at

java.lang.Class.newInstance(Class.java:308) at

com.sap.aii.ibrep.server.mapping.exec.ExecuteXiMappingCommand.transformInternal

(ExecuteXiMappingCommand.java:180) at

com.sap.aii.ibrep.server.mapping.exec.ExecuteXiMappingCommand.execute

(ExecuteXiMappingCommand.java:95) at

com.sap.aii.ib.server.mapping.exec.CommandManager.execute(CommandManager.java:43) at

com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:40) at

com.sap.aii.ibrep.server.mapping.MapServiceBean.execute(MapServiceBean.java:40) at

sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source) at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at

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

com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal

(RequestInvocationContext.java:47) ... 34 more Caused by: java.lang.ClassNotFoundException:

Class de.xyzcustomer.CentralLibrary.CL_StringConvert not found at

com.sap.aii.ibrep.server.mapping.rt.ArchiveClassLoader.findClass

(ArchiveClassLoader.java:110) at java.lang.ClassLoader.loadClass(ClassLoader.java:367) at

java.lang.ClassLoader.loadClass(ClassLoader.java:308) ... 52 more Caused by:

com.sap.aii.ib.core.mapping.execution.ResourceNotFoundException: Unable to find resource

de/xyzcustomer/CentralLibrary/CL_StringConvert.class in the following software component

versions: 26dd6550-707e-11e2-a09d-deb10ad76533, f0c662d0-6f7b-11e2-b498-deb10ad76533 at

com.sap.aii.ib.server.mapping.execution.MappingFinderImpl.readClass

(MappingFinderImpl.java:81) at

com.sap.aii.ibrep.server.mapping.rt.ArchiveClassLoader.findClass

(ArchiveClassLoader.java:92) ... 54 more javax.ejb.EJBException: nested exception is:

java.lang.RuntimeException: java.lang.NoClassDefFoundError:

de/xyzcustomer/CentralLibrary/CL_StringConvert at

com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal

(RequestInvocationContext.java:99) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:166) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke

(Interceptors_StatesTransition.java:19) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke

(Interceptors_Resource.java:50) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute

(Interceptors_Transaction.java:37) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke

(Interceptors_Transaction.java:21) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke

(Interceptors_MethodRetry.java:46) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:191) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke

(Interceptors_StatelessInstanceGetter.java:23) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke

(Interceptors_SecurityCheck.java:25) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke

(Interceptors_ExceptionTracer.java:17) at

com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed

(AbstractInvocationContext.java:179) at

com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain

(DefaultInvocationChainsManager.java:138) at

com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke

(DefaultEJBProxyInvocationHandler.java:164) at $Proxy787.execute(Unknown Source) at

sun.reflect.GeneratedMethodAccessor1723.invoke(Unknown Source) at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at

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

com.sap.engine.services.rmi_p4.P4DynamicSkeleton.dispatch(P4DynamicSkeleton.java:240) at

com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:466) at

com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:69) at

com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:72) at

com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:43) at

com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest

(FCAConnectorImpl.java:999) at com.sap.engine.services.rmi_p4.P4Message.process

(P4Message.java:59) at com.sap.engine.services.cross.fca.MessageReader.run

(MessageReader.java:55) at com.sap.engine.core.thread.execution.Executable.run

(Executable.java:122) at com.sap.engine.core.thread.execution.Executable.run

(Executable.java:101) at com.sap.engine.core.thread.execution.CentralExecutor

$SingleThread.run(CentralExecutor.java:328) Caused by: java.lang.RuntimeException:

java.lang.NoClassDefFoundError: de/xyzcustomer/CentralLibrary/CL_StringConvert ... 35 more

Caused by: java.lang.NoClassDefFoundError: de/xyzcustomer/CentralLibrary/CL_StringConvert

at com.sap.xi.tf._MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_$MT

$InnerLibsList.<init>(_MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_.java:88) at

com.sap.xi.tf._MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_$MT$InnerLibsList.<init>

(_MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_.java:87) at

com.sap.xi.tf._MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_.<init>

(_MM_MT_RequirementPhotoCopy_to_MT_InvoicePhotoCopy_.java:19) at

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at

sun.reflect.NativeConstructorAccessorImpl.newInstance

(NativeConstructorAccessorImpl.java:39) at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance

(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance

(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at

java.lang.Class.newInstance(Class.java:308) at

com.sap.aii.ibrep.server.mapping.exec.ExecuteXiMappingCommand.transformInternal

(ExecuteXiMappingCommand.java:180) at

com.sap.aii.ibrep.server.mapping.exec.ExecuteXiMappingCommand.execute

(ExecuteXiMappingCommand.java:95) at

com.sap.aii.ib.server.mapping.exec.CommandManager.execute(CommandManager.java:43) at

com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:40) at

com.sap.aii.ibrep.server.mapping.MapServiceBean.execute(MapServiceBean.java:40) at

sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source) at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at

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

com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal

(RequestInvocationContext.java:47) ... 34 more Caused by: java.lang.ClassNotFoundException:

Class de.xyzcustomer.CentralLibrary.CL_StringConvert not found at

com.sap.aii.ibrep.server.mapping.rt.ArchiveClassLoader.findClass

(ArchiveClassLoader.java:110) at java.lang.ClassLoader.loadClass(ClassLoader.java:367) at

java.lang.ClassLoader.loadClass(ClassLoader.java:308) ... 52 more Caused by:

com.sap.aii.ib.core.mapping.execution.ResourceNotFoundException: Unable to find resource

de/xyzcustomer/CentralLibrary/CL_StringConvert.class in the following software component

versions: 26dd6550-707e-11e2-a09d-deb10ad76533, f0c662d0-6f7b-11e2-b498-deb10ad76533 at

com.sap.aii.ib.server.mapping.execution.MappingFinderImpl.readClass

(MappingFinderImpl.java:81) at

com.sap.aii.ibrep.server.mapping.rt.ArchiveClassLoader.findClass

(ArchiveClassLoader.java:92) ... 54 more  See error logs for details

0 Kudos

Hi Jannus,

have u seen the above error-log?

Regards

Christine

Former Member
0 Kudos

HI Christine,

it seems you are passing a value that cannot be converted.

1. take the payload from montor.

2. paste the XML in your mapping.

3. Test it again.

also can you please tell me if your data types fields are all string? If not please change them to string for a test and activate.

let me know.

REgards

Former Member
0 Kudos

Hi Christine

One more point that can be checked if not checked already -

Can you please check if you have any entries in problems tab of Cache overview page in ID.

If yes , then those entries need to be corrected manually . You can make the SWCV editable by selecting objects are modifiable and then save and activate the objects. Alternately as suggested above swcv need to be reactivate that will update the objects under it .

We had similar issue where xslt and java class objects were in error and we activated objects manually and did a resend of failed messages .

Regards

Srinivas

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Christine,

Try using File system for transport, might have something to do with CTS not properly configured.

Regards,

Mark

0 Kudos

Hallo Herr Jannus,

after restart at OS-Level it works again.

thank u very much!

Regards

Christine

Former Member
0 Kudos

Hi Christine,

That is great news

Just drop us a messages if you need any additional help.

Regards,

Jannus Botha

Answers (3)

Answers (3)

former_member181985
Active Contributor
0 Kudos

Hi Christine,

Since, From PI7.31 system onwards changes to SWCV doesn't require an activation and hence you can perform the following activity in your production system.

Open the SWCV, and then within SWCV window menu Tools --> Update SLD information and then save. No activation required

And then restart all failed messages in PROD system which are failing due to ResourceNotFound exception

Regards,

Praveen Gujjeti

0 Kudos

Hi Praveen,

I've refreshed cache of SLD.

But the mappings do not work as before.

What could i do now?

Regardes

Christine

Harish
Active Contributor
0 Kudos

Hi Christine,

Please check if you are maintaining the SWCV dependency in DEV and QA, and this are present in Prod.

SWCV dependency can be at SLD or ESR level.

regards,

Harish

0 Kudos

Hi Harish,

I've check the configuration of SLD.

The dependency of central library to the different SWCV are created.

Regards

Christine

former_member184720
Active Contributor
0 Kudos

Hi Christine - Is your Software component version ID is same across Dev,QA and Prod?

Open SWCV and check for the ID..

if it is same, then just do a dummy change by changing the description in prod system and see if that works..

0 Kudos

Hi Hareesh,

the SWCV-ID are same.

I'm not sure, whether I can modify design objects in PROD System.

Is it OK?

former_member184720
Active Contributor
0 Kudos

Yes. It's not a problem as you are not changing any functionality as such.. It's just a dummy change.