Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Deploy error

Hi all,

I'm deployng my J2EE Application (the example provided by SAP, a simple calculator). The application run correctly, but in the logwiever I have seen the follow errors:

What means? I think something is not good!

[RunTask] The source file/path doesn't exist: sap.com/CalculatorEar
----------------------
An error occured while copying configurations for application sap.com/CalculatorEar. Reason: com.sap.engine.frame.core.configuration.NameNotFoundException A configuration with the path "webservices/services/sap.com/CalculatorEar" does not exist.
----------------------
null 
[EXCEPTION]
 com.sap.engine.services.failover.exceptions.PersistentStorageException: Exception occurred during I/O operations.

	at com.sap.engine.services.failover.storage.DatabasePersistentStorage.serializeSession(DatabasePersistentStorage.java:123)

	at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadDestroyer.serializeSessions(ApplicationThreadDestroyer.java:104)

	at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadDestroyer.run(ApplicationThreadDestroyer.java:72)

	at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

	at java.security.AccessController.doPrivileged(Native Method)

	at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)

	at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)

Caused by: java.io.NotSerializableException: com.sap.examples.calculator.beans.CalcProxy

	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)

	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)

	at com.sap.engine.lib.util.HashMapObjectObject.writeObject(HashMapObjectObject.java:748)

	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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)

	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)

	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)

	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)

	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)

	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)

	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)

	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)

	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)

	at com.sap.engine.services.failover.serialization.ObjectSerializator.serializeObjectGraph(ObjectSerializator.java:47)

	at com.sap.engine.services.failover.storage.DatabasePersistentStorage.serializeSession(DatabasePersistentStorage.java:120)

	... 6 more

Thanks a lot,

Vito

replied

Hi Vito,

SAP Web AS (as many other J2EE servers) offers a way for an application to perform so called "failover" - whenever a server in a cluster crashes / is manually stopped - the activities will be redirected to another working server (if any).

In that way a high avaialbility will be maintained and business losses will be reduced to minimum.

However in order to benefit from such feature, the application must implement some basic rules (for example an almost standard requirement is that the objects stored in the HTTP session should be serializable). The calculator example does not meet those criterias (After all it is a simple demo application how to use EJB) and that's why you see the exceptions.

However, that is nothing to worry - it will run correctly and there is nothing wrong with your installation.

Please have a look at the following links for more info about failover, if you are interested :

http://help.sap.com/saphelp_nw04/helpdata/en/8f/d6e45953a494499ea1b79ab16321d2/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/d7/57a4f0cce55143be5de3a6e4911186/frameset.htm

HTH

Peter

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question