Java.io.NotSerializableException: com.citibank.lms.logger.Logger
hi
i have added a logger file to my application in the package com.citibank.
after i run it..i get the following error.
<Dec 14, 2004 11:13:38 PM IST> <Error> <HTTP Session> <BEA-100028> <Could not deserialize session data.
java.io.NotSerializableException: com.citibank.lms.logger.Logger
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at weblogic.servlet.internal.AttributeWrapper.convertObjectToBytes(AttributeWrapper.java:136)
at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:112)
at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:69)
at weblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:431)
at jsp_servlet._resources._jsp.__commonheader._jspService(__commonheader.java:254)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:607)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:400)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:154)
at jsp_servlet._common.__error._jspService(__error.java:168)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:301)
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:523)
at weblogic.servlet.internal.WebAppServletContext.handleException(WebAppServletContext.java:3908)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3683)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
wat do i do?? please help!!!!!
rekram
It looks like you are attempting to save your Logger to the HttpSession and
you are using session persistence and/or session replication. This requires
that the Object that is being saved to the HttpSession implement the
java.io.Serializable interface.
Bill
"rekha Ramakrishnan" <[email protected]> wrote in message
news:23681277.1103090194200.JavaMail.root@jserv5...
hi
i have added a logger file to my application in the package com.citibank.
after i run it..i get the following error.
<Dec 14, 2004 11:13:38 PM IST> <Error> <HTTP Session> <BEA-100028> <Couldnot deserialize session data.
java.io.NotSerializableException: com.citibank.lms.logger.Logger
atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
atjava.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
atjava.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
atjava.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
atweblogic.servlet.internal.AttributeWrapper.convertObjectToBytes(AttributeWra
pper.java:136)
atweblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:1
12)
atweblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:6
9)
atweblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:
431)
atjsp_servlet._resources._jsp.__commonheader._jspService(__commonheader.java:2
54)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
atweblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:607)
atweblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:400)
atweblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:154)
at jsp_servlet._common.__error._jspService(__error.java:168)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:301)
atweblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.
java:523)
atweblogic.servlet.internal.WebAppServletContext.handleException(WebAppServlet
Context.java:3908)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3683)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
wat do i do?? please help!!!!!
rekram
Similar Messages
-
Hi,
I got this error when my servlet is trying to parse a xml document:
RuntimeRemoteException( java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.xml.tree.XmlDocument )
And my application runs ok when Tomcat is used as servlet container, but it runs into problem when iPlanet is used.
Any idea?
Thanks in advance!Thanks for your reply.
The EJBs in the application are all stateless beans. The error happens at the servlet side, not the EJB side. When the servlet tries to parse the returned XML document using xalan 1.0, the error happened. However, I can not reproduce the error when I use Tomcat as servlet container.
here is how I coded:
XSLTProcessor processor = XSLTProcessorFactory.getProcessor(new org.apache.xalan.xpath.xdom.XercesLiaison());
XSLTInputSource xmlSource = new XSLTInputSource(doc);
XSLTInputSource xslSheet = new XSLTInputSource("file:"+xslFile);
Writer out = new StringWriter();
XSLTResultTarget xmlResult= new XSLTResultTarget(out);
processor.process(xmlSource,xslSheet,xmlResult); -
Hi,
I am working on a small prototyep project trying to understand how coherence works.
I have a object that creates an instance of entry processor and invokes the cache. I get following error. Entry processor is serializable - the app can write an instance of EP into a file.
Using same setup if I merely call put() it works fine for me.
Any idea what coherence is doing here ?
Thanks
~s
===
(Wrapped) com.tangosol.util.internal.ConcurrentCounter) java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCounter
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.Hashtable.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.Hashtable.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)The problem is fixed.
In my EP, process() was returning "entry" instead of modified object. Comparing my code with some other samples helped me.
So it is all down to my mistake.
Thanks
~s -
Java.io.NotSerializableException error when starting 8.1 app server
I am running JES 054Q with uwc deployed on the app server 8.1 (along with am, portal, and da). I am getting a java.io.NotSerializableException for com.sun.uwc.common.util.UWCPreferences when the application server starts. Any access to get attributes from UWCPreferences results more java.io.NotSerializableException errors. How do I get the app server to not load com.sun.uwc.common.util.UWCPreferences as Serializable?
Following is what is showing up the log file with finest level:
# grep -n UWCPreferences *
server.log:2:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log:44:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-08-05:10373:[#|2006-08-28T03:07:59.991-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|loadClass(com.sun.uwc.common.util.UWCPreferences, false)|#]
server.log_2006-08-28T03-08-05:10383:[#|2006-08-28T03:07:59.994-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;| findClass(com.sun.uwc.common.util.UWCPreferences)|#]
server.log_2006-08-28T03-08-05:10385:[#|2006-08-28T03:07:59.995-0600|FINEST|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;| findClassInternal(com.sun.uwc.common.util.UWCPreferences)|#]
server.log_2006-08-28T03-08-05:10397:[#|2006-08-28T03:08:00.001-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;| Returning class class com.sun.uwc.common.util.UWCPreferences|#]
server.log_2006-08-28T03-08-05:10781:[#|2006-08-28T03:08:00.154-0600|SEVERE|sun-appserver-ee8.1_02|org.apache.catalina.session.ManagerBase|_ThreadID=10;|IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-08-05:10782:java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-08-05:10807:Caused by: java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-08-05:10849:java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-08-05:10874:Caused by: java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-08-05:11313:[#|2006-08-28T03:08:00.286-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|loadClass(com.sun.uwc.common.util.UWCPreferencesFactory, false)|#]
server.log_2006-08-28T03-08-05:11323:[#|2006-08-28T03:08:00.289-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;| findClass(com.sun.uwc.common.util.UWCPreferencesFactory)|#]
server.log_2006-08-28T03-08-05:11325:[#|2006-08-28T03:08:00.290-0600|FINEST|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;| findClassInternal(com.sun.uwc.common.util.UWCPreferencesFactory)|#]
server.log_2006-08-28T03-08-05:11327:[#|2006-08-28T03:08:00.292-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;| Returning class class com.sun.uwc.common.util.UWCPreferencesFactory|#]
server.log_2006-08-28T03-15-11:22429:[#|2006-08-28T03:09:45.991-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=23;|loadClass(com.sun.uwc.common.util.UWCPreferences, false)|#]
server.log_2006-08-28T03-15-11:29542:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-15-11:29584:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-15-11:29626:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
server.log_2006-08-28T03-15-11:29668:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
ThanksI think this might occur if you don't have the patch for SunAlert 46042 installed. There's more information on this critical Solaris security vulnerability, which was reported back in 2002, at http://sunsolve.central.sun.com/search/document.do?assetkey=1-26-46042-1
Can you run the following command to check if you have patch 109326-09 installed and let us know the result?showrev -p | grep 109326If you don't have 109326-09 or higher installed, you should install it as soon as possible. You can follow the link from the SunAlert. Better yet, install the latest Solaris 8 recommended patch cluster from http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access to make sure your system is fully patched and up to date. -
Hi,
I’m using coherence(V3.6.1) with POF serialization in ADF web application. I have setup local coherence server node and Jdev integrated webcenter server in my local system(windows 7 OS), the application works perfectly when I run in local Jdeveloper integrated server. But when I deploy the application on dev environment ( standalone webcenter spaces server v11G on Unix OS) we are getting exception “(Wrapped) java.io.NotSerializableException: com.enbridge.co.ux.coherence.pojos.CommodityPojo”
It seems that POF is not configured properly on the standalone webcenter (spaces) server, please help finding out the solution for this issue. On standalone webcenter spaces server is there any extra configurations we have to do?
The error logs and configuration filess I have used:
1. Exception logs:
<14-Jun-2013 3:43:04 o'clock AM MDT> <Error> <HTTP> <BEA-101216> <Servlet: "MMFBootStrapServlet" failed to preload on startup in Web application: "MMFUIPortal-Portal-context-root".
(Wrapped) java.io.NotSerializableException: com.enbridge.co.ux.coherence.pojos.CommodityPojo
at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:215)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ConverterValueToBinary.convert(PartitionedCache.CDB:3)
at com.tangosol.util.ConverterCollections$ConverterMap.put(ConverterCollections.java:1578)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.put(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
Truncated. see log file for complete stacktrace
Caused By: java.io.NotSerializableException: com.enbridge.co.ux.coherence.pojos.CommodityPojo
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.GeneratedMethodAccessor983.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Truncated. see log file for complete stacktrace
2. 2. tangosol-coherence-override.xml:
<?xml version='1.0'?>
<coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/ coherence-operational-config coherence-operational-config.xsd">
<cluster-config>
<member-identity>
<cluster-name>mmf_Coh_Cluster</cluster-name>
</member-identity>
<multicast-listener>
<address>224.3.6.0</address>
<port>60001</port>
<time-to-live>0</time-to-live>
</multicast-listener>
<serializers>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value system-property="pof.config">mmfui-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
</serializers>
</cluster-config>
<configurable-cache-fact0ry-config>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value system-property="tangosol.coherence.cacheconfig">mmfui-cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-fact0ry-config>
</coherence>
3. mmfui-cache-config.xml
<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<defaults>
<serializer>pof</serializer>
</defaults>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>mmfcache</cache-name>
<scheme-name>ExamplesPartitionedPofScheme</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>ExamplesPartitionedPofScheme</scheme-name>
<service-name>PartitionedPofCache</service-name>
<serializer>
<instance>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value system-property="pof.config">mmfui-pof-config.xml</param-value>
</init-param>
</init-params>
</instance>
</serializer>
<backing-map-scheme>
<local-scheme>
<!-- each node will be limited to 250MB -->
<high-units>250M</high-units>
<unit-calculator>binary</unit-calculator>
</local-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
</caching-schemes>
</cache-config>
4. mmfui-pof-config.xml
<?xml version="1.0"?>
<!DOCTYPE pof-config SYSTEM "pof-config.dtd">
<pof-config>
<user-type-list>
<!-- coherence POF user types -->
<include>coherence-pof-config.xml</include>
<!-- com.tangosol.examples package -->
<user-type>
<type-id>1001</type-id>
<class-name>com.enbridge.co.ux.coherence.pojos.CommodityPojo</class-name>
</user-type>
</user-type-list>
</pof-config>
5. ~-cache-server.sh file on coherence distribution
COHERENCE_HOME=/u01/app/oracle/product/fmw11g/coherence_3.6
JAVA_HOME=/usr/java/jdk1.6.0_24
PATH=$PATH:$JAVA_HOME/bin
CONFIG_HOME=/u01/app/oracle/product/fmw11g/coherence_3.6/mmfconfig
# specify the JVM heap size
MEMORY=512m
if [ ! -f ${COHERENCE_HOME}/bin/cache-server.sh ]; then
echo "coherence.sh: must be run from the Coherence installation directory."
exit
fi
if [ -f $JAVA_HOME/bin/java ]; then
JAVAEXEC=$JAVA_HOME/bin/java
else
JAVAEXEC=java
Fi
COH_OPTS=$COH_OPTS -Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.cluster=mmf_Coh_Cluster -Dtangosol.coherence.clusterport=60001 -Dtangosol.coherence.clusteraddress=224.3.6.0 -Dtangosol.coherence.cacheconfig=~/mmfui-cache-config.xml
JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY -Dtangosol.pof.enabled=true -Dtangosol.pof.config=~/mmfui-pof-config.xml"
$JAVAEXEC $COH_OPTS -server -showversion $JAVA_OPTS -cp "$COHERENCE_VAR:$CONFIG_HOME:$COHERENCE_HOME/lib/coherence.jar:$COHERENCE_HOME/lib/coherence-common-1.5.0.jar:pojoClasses.jar" com.tangosol.net.DefaultCacheServer $1
6.COHERENCE_PROPERTIES variable added in setDomainEnv.sh file:
COHERENCE_PROPERTIES=-Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.clusteraddress=224.3.6.0 -Dtangosol.coherence.clusterport=60001 -Dtangosol.coherence.cluster=mmf_Coh_Cluster -Dtangosol.coherence.override=~/tangosol-coherence-override.xml -Dtangosol.coherence.cacheconfig=~/mmfui-cache-config.xml -Dpof.config=~/ mmfui-pof-config.xml
JAVA_PROPERTIES=-Dplatform.home=${WL_HOME} -Dwls.home=${WLS_HOME} -Dweblogic.home=${WLS_HOME} ${COHERENCE_PROPERTIES}does the below class implement java.io.Serializable
com.enbridge.co.ux.coherence.pojos.CommodityPojo
if not implement serializable -
Java.io.NotSerializableException exception in session beans
Hey experts,
I have written the following code to call a session bean method from a portal application.
Object obj1 = context.lookup("applications/knet");
UserInfoHome userInfoHome =
(UserInfoHome) javax.rmi.PortableRemoteObject.narrow(
obj1,
UserInfoHome.class);
UserInfo userInfo = userInfoHome.create();
Collection col =
userInfo.getAllrooms();
out.println("The size is " + col.size() + "<br>");
The following is the implementation of the getAllrooms() method in the session bean
public Collection getAllrooms() {
Collection col = null;
try {
InitialContext ctx = new InitialContext();
roomsHome = (RoomsLocalHome) ctx.lookup("java:comp/env/ejb/RoomsBean");
col = roomsHome.findAllRooms();
} catch (NamingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (FinderException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return col;
In the entity bean the following EJB QL has been used
<EJB QL>
select object(r) from Rooms r
</<EJB QL>>
I get the following error
com.sap.engine.services.rmi_p4.exception.P4BaseRuntimeException: I/O operation failed : java.io.NotSerializableException: com.sap.engine.services.ejb.entity.finder.EJBLocalCollection :
at com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl.getException(P4ObjectBrokerServerImpl.java:926)
at com.sap.engine.services.rmi_p4.reflect.LocalInvocationHandler.replicateReturnValue(LocalInvocationHandler.java:115)
at com.sap.engine.services.rmi_p4.reflect.LocalInvocationHandler.invokeInternal(LocalInvocationHandler.java:90)
at com.sap.engine.services.rmi_p4.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:50)
at $Proxy180.getAllrooms(Unknown Source)
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.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
at $Proxy181.getAllrooms(Unknown Source)
at com.watercorp.BMS.test.EJBTest.doContent(EJBTest.java:120)
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)
... 29 more
Caused by: java.io.NotSerializableException: com.sap.engine.services.ejb.entity.finder.EJBLocalCollection
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at com.sap.engine.services.rmi_p4.reflect.LocalInvocationHandler.replicateReturnValue(LocalInvocationHandler.java:110)
... 42 more
Please helpHi Sabbir,
You are trying to expose a Collection of Entity local interfaces (RoomsLocal) that is the result of RoomsLocalHome.findAllRooms(), through the Session bean's remote interface method getAllrooms(). This is forbidden by the EJB specification and of course cannot work. You have to use remote interfaces of Entity beans when you want to expose them to remote clients - although this is not a good practice either since Entity beans are fine-grained components. Data transfer objects (<a href="http://en.wikipedia.org/wiki/Data_Transfer_Object">DTO</a>) with Session facades should be used for this purpose (you already have a Session facade - the UserInfo bean).
Hope this clarifies it!
-Vladimir
Message was edited by:
Vladimir Pavlov -
Hi Guys,
I am getting java.io.NotSerializableException when running a query and
passing in PersistenceCapable object via executeWithMap or
executeWithArray. When I run the same query and pass the object in
directly into execute()(as a single parameter), it works just fine... ???
I am using Kodo version 2.4.2. To pass the parameters in I have tried
HashMap as well as normal array (ArrayList.toArray()) and always got the
problem.
The code and full stack is bellow. Please note the test for
PersistenceCapable. Part of the code is commented out, but it still throws
the exception as it is.
Any help would be greatly appretiated!!!
Petr
Code:
String ql = "folderItems.contains(vfolderItem) && vfolderItem.parentFolder
== parFolder";
String params = "Folder parFolder";
String variables = "FolderItem vfolderItem;";
HashMap parValues = new HashMap();
System.out.println("Folder PC" + (folder instanceof PersistenceCapable));
parValues.put("parFolder", folder);
if (createdStart != null) {
ql = ql + " && createdDate >= padStartDate";
params = params + ", java.util.Date padStartDate";
parValues.put("padStartDate", createdStart);
if (createdStop != null) {
ql = ql + " && createdDate <= padStopDate";
params = params + ", java.util.Date padStopDate";
parValues.put("padStopDate", createdStop);
if (receivedBy != null ) {
ql = ql + " && recipients.contains(vRecipient) &&
vRecipient.recipientType == parRecipient";
params = params + ", CodeValue parRecipient";
variables = variables + "; Recipient vRecipient;";
parValues.put("parRecipient", receivedBy);
if (sentBy != null) {
ql = ql + " && recipients.contains(vSender) && vSender.recipientType ==
parSender";
params = params + ", CodeValue parSender";
variables = variables + "; Recipient vSender;";
parValues.put("parSender", sentBy);
Collection col;
Query q = ctx.getPersist().newQuery(ext, ql);
q.declareVariables(variables);
q.declareParameters(params);
q.declareImports("import com.mallesons.servicenet.aa.folder.*;");
q.setOrdering("createdDate ascending");
q.compile();
col = (Collection) q.executeWithMap(parValues);
//col = (Collection) q.execute(folder);
Stack:
javax.jdo.JDOFatalUserException:
com.mallesons.servicenet.aa.folder.Folder: java.util.HashMap
NestedThrowables:
java.io.NotSerializableException: com.mallesons.servicenet.aa.folder.Folder
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.serialize(AbstractDictionary.java:684)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.blobToSQL(AbstractDictionary.java:384)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.blobToPreparedParameter(AbstractDictionary.java:1067)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.SQLServerDictionary.blobToPreparedParameter(SQLServerDictionary.java:139)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.toPreparedParameter(AbstractDictionary.java:808)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLValue.applyParameter(SQLValue.java:129)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:239)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:222)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.prepareStatementInternal(SQLExecutionManagerImpl.java:824)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:761)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:691)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:372)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:356)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1221)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:707)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:93)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
at
com.mallesons.servicenet.ta.shared.BOQuery.executeWithMap(BOQuery.java:159)
at
com.mallesons.servicenet.aa.folder.SearchEmailItemService.searchDirect(SearchEmailItemService.java:105)
at
com.mallesons.servicenet.aa.folder.SearchEmailItemService.searchIn(SearchEmailItemService.java:45)
at
com.mallesons.servicenet.aa.folder.test.SearchItemServiceTest.testCascadeFaxNoTime(SearchItemServiceTest.java:217)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:166)
at junit.framework.TestCase.runBare(TestCase.java:140)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:131)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)
NestedThrowablesStackTrace:
java.io.NotSerializableException: com.mallesons.servicenet.aa.folder.Folder
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1205)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:383)
at java.util.HashMap.writeObject(HashMap.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at
java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1925)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1267)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:383)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.serialize(AbstractDictionary.java:680)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.blobToSQL(AbstractDictionary.java:384)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.blobToPreparedParameter(AbstractDictionary.java:1067)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.SQLServerDictionary.blobToPreparedParameter(SQLServerDictionary.java:139)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.toPreparedParameter(AbstractDictionary.java:808)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLValue.applyParameter(SQLValue.java:129)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:239)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:222)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.prepareStatementInternal(SQLExecutionManagerImpl.java:824)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:761)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:691)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:372)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:356)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1221)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:707)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:93)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
at
com.mallesons.servicenet.ta.shared.BOQuery.executeWithMap(BOQuery.java:159)
at
com.mallesons.servicenet.aa.folder.SearchEmailItemService.searchDirect(SearchEmailItemService.java:105)
at
com.mallesons.servicenet.aa.folder.SearchEmailItemService.searchIn(SearchEmailItemService.java:45)
at
com.mallesons.servicenet.aa.folder.test.SearchItemServiceTest.testCascadeFaxNoTime(SearchItemServiceTest.java:217)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:166)
at junit.framework.TestCase.runBare(TestCase.java:140)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:131)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)OK, mystery solved. I was using a our internal wrapper around Query and
who ever wrote it, mapped executeWithArray and executeWithMap to simple
Query.execute.
Damn! :-(
Petr
Petr Bulanek wrote:
Hi Guys,
I am getting java.io.NotSerializableException when running a query and
passing in PersistenceCapable object via executeWithMap or
executeWithArray. When I run the same query and pass the object in
directly into execute()(as a single parameter), it works just fine... ???
I am using Kodo version 2.4.2. To pass the parameters in I have tried
HashMap as well as normal array (ArrayList.toArray()) and always got the
problem.
The code and full stack is bellow. Please note the test for
PersistenceCapable. Part of the code is commented out, but it still throws
the exception as it is.
Any help would be greatly appretiated!!!
Petr
Code:
String ql = "folderItems.contains(vfolderItem) && vfolderItem.parentFolder
== parFolder";
String params = "Folder parFolder";
String variables = "FolderItem vfolderItem;";
HashMap parValues = new HashMap();
System.out.println("Folder PC" + (folder instanceof PersistenceCapable));
parValues.put("parFolder", folder);
if (createdStart != null) {
ql = ql + " && createdDate >= padStartDate";
params = params + ", java.util.Date padStartDate";
parValues.put("padStartDate", createdStart);
if (createdStop != null) {
ql = ql + " && createdDate <= padStopDate";
params = params + ", java.util.Date padStopDate";
parValues.put("padStopDate", createdStop);
if (receivedBy != null ) {
ql = ql + " && recipients.contains(vRecipient) &&
vRecipient.recipientType == parRecipient";
params = params + ", CodeValue parRecipient";
variables = variables + "; Recipient vRecipient;";
parValues.put("parRecipient", receivedBy);
if (sentBy != null) {
ql = ql + " && recipients.contains(vSender) && vSender.recipientType ==
parSender";
params = params + ", CodeValue parSender";
variables = variables + "; Recipient vSender;";
parValues.put("parSender", sentBy);
Collection col;
Query q = ctx.getPersist().newQuery(ext, ql);
q.declareVariables(variables);
q.declareParameters(params);
q.declareImports("import com.mallesons.servicenet.aa.folder.*;");
q.setOrdering("createdDate ascending");
q.compile();
col = (Collection) q.executeWithMap(parValues);
//col = (Collection) q.execute(folder);
Stack:
javax.jdo.JDOFatalUserException:
com.mallesons.servicenet.aa.folder.Folder: java.util.HashMap
NestedThrowables:
java.io.NotSerializableException: com.mallesons.servicenet.aa.folder.Folder
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.serialize(AbstractDictionary.java:684)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.blobToSQL(AbstractDictionary.java:384)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.blobToPreparedParameter(AbstractDictionary.java:1067)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.SQLServerDictionary.blobToPreparedParameter(SQLServerDictionary.java:139)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.toPreparedParameter(AbstractDictionary.java:808)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLValue.applyParameter(SQLValue.java:129)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:239)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:222)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.prepareStatementInternal(SQLExecutionManagerImpl.java:824)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:761)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:691)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:372)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:356)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1221)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:707)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:93)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
at
com.mallesons.servicenet.ta.shared.BOQuery.executeWithMap(BOQuery.java:159)
at
com.mallesons.servicenet.aa.folder.SearchEmailItemService.searchDirect(SearchEmailItemService.java:105)
at
com.mallesons.servicenet.aa.folder.SearchEmailItemService.searchIn(SearchEmailItemService.java:45)
at
com.mallesons.servicenet.aa.folder.test.SearchItemServiceTest.testCascadeFaxNoTime(SearchItemServiceTest.java:217)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:166)
at junit.framework.TestCase.runBare(TestCase.java:140)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:131)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)
NestedThrowablesStackTrace:
java.io.NotSerializableException: com.mallesons.servicenet.aa.folder.Folder
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1205)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:383)
at java.util.HashMap.writeObject(HashMap.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at
java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1925)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1267)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:383)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.serialize(AbstractDictionary.java:680)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.blobToSQL(AbstractDictionary.java:384)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.blobToPreparedParameter(AbstractDictionary.java:1067)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.SQLServerDictionary.blobToPreparedParameter(SQLServerDictionary.java:139)
at
com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary.toPreparedParameter(AbstractDictionary.java:808)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLValue.applyParameter(SQLValue.java:129)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:239)
at
com.solarmetric.kodo.impl.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:222)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.prepareStatementInternal(SQLExecutionManagerImpl.java:824)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:761)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:691)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:372)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:356)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1221)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:707)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:93)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
at
com.mallesons.servicenet.ta.shared.BOQuery.executeWithMap(BOQuery.java:159)
at
com.mallesons.servicenet.aa.folder.SearchEmailItemService.searchDirect(SearchEmailItemService.java:105)
at
com.mallesons.servicenet.aa.folder.SearchEmailItemService.searchIn(SearchEmailItemService.java:45)
at
com.mallesons.servicenet.aa.folder.test.SearchItemServiceTest.testCascadeFaxNoTime(SearchItemServiceTest.java:217)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:166)
at junit.framework.TestCase.runBare(TestCase.java:140)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:131)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151) -
Getting java.io.NotSerializableException exception
Hi All,
I am getting the java.io.NotSerializableException when using FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("DATA_LIST",dataList); in the bean. Can any one tell me the solution.
WARNING: Cannot serialize session attribute DATA_LIST for session B4270E3F0D63D10FF5E83D057AF4EE88
java.io.NotSerializableException: com.ColorBO
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at java.util.ArrayList.writeObject(ArrayList.java:529)
at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
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.writeObject(ObjectOutputStream.java:278)
at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1445)
at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:920)
at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)
at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:664)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4255)
at org.apache.catalina.manager.ManagerServlet.undeploy(ManagerServlet.java:1283)
at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:372)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:168)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)
Oct 25, 2006 11:28:38 PM org.apache.catalina.session.StandardSession writeObject
WARNING: Cannot serialize session attribute DATA_LIST for session 46A81579BFE42E28F2AE5BBA7D091710
java.io.NotSerializableException: com.ColorBO
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at java.util.ArrayList.writeObject(ArrayList.java:529)
at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
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.writeObject(ObjectOutputStream.java:278)
at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1445)
at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:920)
at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)
at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:664)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4255)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1143)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1115)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1053)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1065)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
at org.apache.catalina.startup.Catalina.start(Catalina.java:561)
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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)The object in the list should implement serializable
-
Hi,
I am getting the the NotSerializableException when I use the place holder in portlet used over WSRP.
Any workaround for this?
Thanks
####<Aug 30, 2010 3:39:37 PM EDT> <Error> <HTTP Session> <WSWKS5TSQHK1> <AdminServer> <[ACTIVE] ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'> <userName> <BEA1-061A46085948E33D3815> <> <1283197177285> <BEA-100028> <Could not deserialize session data.
java.io.NotSerializableException: com.bea.wsrp.bind.markup.UserProfileImpl
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:331)
at weblogic.common.internal.PassivationUtils.toByteArray(PassivationUtils.java:33)
at weblogic.common.internal.PassivationUtils.toByteArray(PassivationUtils.java:24)
at weblogic.common.internal.PassivationUtils.copy(PassivationUtils.java:64)
at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:89)
at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:39)
at weblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:805)
at com.bea.portlet.container.PortletSessionImpl.getAttribute(PortletSessionImpl.java:118)
at com.bea.portlet.container.PortletRequestDispatcherWrapper$SessionDispatchWrapper.getAttribute(PortletRequestDispatcherWrapper.java:1141)
at com.bea.p13n.http.Session.getAttribute(Session.java:402)
at com.bea.p13n.usermgmt.SessionHelper.getProfile(SessionHelper.java:76)
at com.bea.p13n.usermgmt.SessionHelper.getProfile(SessionHelper.java:58)
at com.bea.p13n.usermgmt.SessionHelper.getProfile(SessionHelper.java:43)
at com.bea.p13n.ad.internal.AdBucketServiceBean.getContent(AdBucketServiceBean.java:446)
at com.bea.p13n.ad.internal.AdBucketService_2bd1ao_EOImpl.getContent(AdBucketService_2bd1ao_EOImpl.java:648)
at com.bea.p13n.placeholder.internal.PlaceholderServiceImpl.getContent(PlaceholderServiceImpl.java:247)
at com.bea.p13n.placeholder.internal.PlaceholderService_snavek_EOImpl.getContent(PlaceholderService_snavek_EOImpl.java:217)
at com.bea.p13n.placeholder.servlets.jsp.taglib.PlaceholderTag.getDisplayContent(PlaceholderTag.java:266)
at com.bea.p13n.placeholder.servlets.jsp.taglib.PlaceholderTag.doStartTag(PlaceholderTag.java:189)
Edited by: sara.somu on Jul 8, 2011 6:48 AMHello Santosh,
If the offerRemote="false" attribute is set on the producer, you'll get this error. If you want to be able to consume it over WSRP, change offerRemote="true".
Kevin -
After the DB access,value is getting displayed in backing bean, but the page is not rendered and it throws the following exception.
executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@8fd2bb) threw exception javax.faces.FacesException: com.sun.gjc.spi.jdbc40.ConnectionHolder40
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:135)
Caused by: java.io.NotSerializableException: com.sun.gjc.spi.jdbc40.ConnectionHolder40Thinking a bit more about this, it look like that you're getting hold of a DB connection as bean property. Is this true? If so, then this is a very bad practice. Expensive external resources such as connections, statements, resultsets are to be acquired and closed in the very same method block. You should never get hold of them as class/instance variables. Also, the DB logic should rather be done in a DAO class, not in a bean class. Carefully go through this article to get the idea and new insights: [http://balusc.blogspot.com/2008/07/dao-tutorial-data-layer.html].
-
Java.io.NotSerializableException in Query
All,
I am encountering a strange java.io.NotSerializable error on certain
queries. I am using Kodo Std 2.2.6 (trial version) on RH7.1 with Postgres
7.1 (inside a Struts 1.1 servlet running inside Tomcat 4.1).
The error is the following: I am attempting to find "Resources" that have
associated "File"s, where those files have "FileRole" == a particular
FileRole object.
The objects (simplified) are:
public class Resource {
File file;
String driver;
String driverId;
public class File {
FileRole fileRole;
public class FileRole {
String name;
The query is:
public List findByDriver(String driver, String driverId, FileRole fileRole)
List li = null;
try {
String filter = "driver == driverString && driverId ==
driverIdString && file.fileRole == theFileRole";
Extent beanExtent =
JDOManager.getInstance().getPersistenceManager().getExtent(Resource.class,
false);
Query q =
JDOManager.getInstance().getPersistenceManager().newQuery(Resource.class,
beanExtent, filter);
q.declareImports("import lepton.core.file.File;" + "import
lepton.core.file.FileRole");
q.declareParameters("String driverString, String driverIdString,
FileRole theFileRole);
ArrayList queryArray = new ArrayList();
queryArray.add(driver);
queryArray.add(driverId);
queryArray.add(fileRole);
Collection results = (Collection) q.execute(queryArray);
li = new ArrayList(results);
} catch (Exception e) {
throw new LeptonException(e);
return li;
The error is:
javax.jdo.JDOException: lepton.core.file.FileRole
NestedThrowables:
java.io.NotSerializableException: lepton.core.file.FileRole
at
com.solarmetric.kodo.impl.jdbc.schema.dict.GenericDictionary.toSQL(GenericDi
ctionary.java:169)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory$Constant.(JDBCE
xpressionFactory.java:465)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory.getConstant(JDB
CExpressionFactory.java:229)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory.getParameter(JD
BCExpressionFactory.java:249)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:563)
at com.solarmetric.kodo.query.FilterParser.getValue(FilterParser.java:669)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:582)
at
com.solarmetric.kodo.query.FilterParser.getExpression(FilterParser.java:678)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:653)
at
com.solarmetric.kodo.query.FilterParser.getExpression(FilterParser.java:678)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:653)
at
com.solarmetric.kodo.query.FilterParser.getExpression(FilterParser.java:678)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:653)
at
com.solarmetric.kodo.query.FilterParser.getExpression(FilterParser.java:678)
at com.solarmetric.kodo.query.FilterParser.evaluate(FilterParser.java:530)
at com.solarmetric.kodo.query.QueryImpl.getExpression(QueryImpl.java:502)
at com.solarmetric.kodo.query.QueryImpl.getExpression(QueryImpl.java:468)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQuery.jav
a:190)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:342)
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:529)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:314)
at lepton.knowledgebase.ResourceHome.findByDriver(ResourceHome.java:91)
My jdo mappings (simplified) are:
Resource:
<jdo>
<package name="lepton.knowledgebase">
<class name="Resource" >
<field name="driver">
</field>
<field name="driverId">
</field>
<field name="file">
</field>
</class>
</package>
</jdo>
File:
<jdo>
<package name="lepton.core.file">
<class name="File" >
<field name="fileRole">
</field>
</class>
</package>
</jdo>
FileRole:
<jdo>
<package name="lepton.core.file">
<class name="FileRole" >
<field name="name">
<extension vendor-name="kodo"
key="column-index"
value="true" />
</field>
</class>
</package>
</jdo>
Any help/suggestions would be greatly appreciated. I am seeing this error
in one other query, with a similar (but slightly more involved) syntax.
(The point of commonality is querying a somewhat distant--but
related--portion of the object graph, in the form xx.xx.xx == yy).
Thanks,
David
David Sachs
Redpoint Ventures
[email protected]Abe,
Thanks again for your help. I discovered (much to my embarassment) that
this was a case of a massively silly error on my part, and a somewhat
misleading error message.
The cause of the problem was my query--Kodo is working great.
I had:
public List findByDriver(String driver, String driverId, FileRole fileRole)
q.declareParameters("String driverString, String driverIdString,
FileRole theFileRole);
ArrayList queryArray = new ArrayList();
queryArray.add(driver);
queryArray.add(driverId);
queryArray.add(fileRole);
Collection results = (Collection) q.execute(queryArray);
This should be:
q.declareParameters("String driverString, String driverIdString,
FileRole theFileRole);
Map queryMap = new HashMap();
queryMap.add(driver);
queryMap.add(driverId);
queryMap.add(fileRole);
Collection results = (Collection) q.executeWithMap(queryMap);
It works perfectly, as does the other case in which I saw a
java.io.NotSerializable error.
Anyway, sorry to have wasted your time on this, but maybe there is some way
to make the reported error slightly more specific. As an aside, I did try
to track down whether a superfluous jdo/kodo.jar was lurking anywhere in
Kodo's classpath, but I didn't find anything. Clearly (since this now
works), the properly enhanced FileRole class is present, but the error
message was didn't indicate that I was wildly misusing the q.executeXXX
facility.
Anyway, thanks very much for your assistance, and sorry to have led you
astray chasing down a user error.
David
"Abe White" <[email protected]> wrote in message
news:[email protected]...
I wasn't able to find a class called"javax.jdo.spi.PersistenceCapable"--did
you mean just "javax.jdo.PersistenceCapable?"Yeah, sorry. In JDO 1.0 they moved PersistenceCapable to the 'spi'subpackage;
Kodo 2.2.6 (unlike 2.3, which is out now), uses an older version of the spec.
>
Assuming that you meant javax.jdo.PersistenceCapable, my class reportsthat
it IS persistence capable.Well I've checked our code (the version that you're using), and itcouldn't
really be more clear. It's basically:
if (obj instanceof PersistenceCapable)
... 1 ...
else
... 2 ...
And your stack trace ends up in position 2. That means that to Kodo, that
object is not persistence capable. This has to be a class loader issue.
I assume your install script is run outside of the servlet? Or in a
different web app? Tomcat does some funky things with class loaders; ifyou
have multiple JDO jars floating around there might also technically be
multiple PersistenceCapable classes, and the one Kodo sees is differentthan
the one your application sees. Make sure both the kodo jars and the jdojars
are only in a single location.
This makes sense, since I have been able to create and make persistent
instances of the FileRole class. (I can successfully create a bunch of
FileRoles and persist them to my database as part of my install script,
which would alos fail were FileRole not enhanced).
Any ideas?
Thanks very much,
David
"Abe White" <[email protected]> wrote in message
news:[email protected]...
David --
Before you execute the query, can you please check to see that
(fileRole instanceof javax.jdo.spi.PersistenceCapable) ?
If a parameter isn't persistence-capable, we try to convert it to SQL;
for complex types, this means serializing it. I have a feeling there
is
a class loader issue or something where an unenhanced version of your
class is sneaking in. Let us know what you find out. -
Java.io.NotSerializableException when using POF over Extend
I changed a class to use POF and it seems to work fine among TCMP cluster members but when apps connect with Extend I get an exception indicating that maybe either the extend proxy or client app is not correctly configured to use POF.
(Wrapped) java.io.NotSerializableException: dj_quotes.DJ_Quote
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:22)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23)
at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25)
at com.tangosol.coherence.component.net.extend.Channel.send(Channel.CDB:6)
at com.tangosol.coherence.component.net.extend.Channel.receive(Channel.CDB:55)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer$DaemonPool$WrapperTask.run(Peer.CDB:9)
at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.NotSerializableException: dj_quotes.DJ_Quote
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:2252)
at com.tangosol.util.ExternalizableHelper.writeObjectInternal(ExternalizableHelper.java:2696)
at com.tangosol.util.ExternalizableHelper.serializeInternal(ExternalizableHelper.java:2600)
at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:210)
at com.tangosol.coherence.component.net.extend.proxy.serviceProxy.CacheServiceProxy$ConverterToBinary.convert(CacheServiceProxy.CDB:3)
at com.tangosol.util.ConverterCollections$AbstractConverterEntry.getValue(ConverterCollections.java:3547)
at com.tangosol.io.pof.PofBufferWriter.writeMap(PofBufferWriter.java:1977)
at com.tangosol.coherence.component.net.extend.message.Response.writeExternal(Response.CDB:23)
at com.tangosol.coherence.component.net.extend.message.response.PartialResponse.writeExternal(PartialResponse.CDB:1)
at com.tangosol.coherence.component.net.extend.Codec.encode(Codec.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.encodeMessage(Peer.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor.encodeMessage(TcpAcceptor.CDB:8)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:16)
... 9 moreLooks like it failed while attempting default serialization, right?
My extend proxy servers start with
-Dtangosol.coherence.cacheconfig=cache-config-extend-proxy.xml
here:
<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<!-- *********** SCHEME MAPPINGS *********** -->
<caching-scheme-mapping>
<cache-mapping>
<cache-name>quotes.*</cache-name>
<scheme-name>quotes-scheme</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<!-- ******************************** -->
<caching-schemes>
<proxy-scheme>
<service-name>ExtendTcpProxyService</service-name>
<thread-count>8</thread-count>
<acceptor-config>
<tcp-acceptor>
<local-address>
<address system-property="tangosol.coherence.proxy.address">localhost</address>
<port system-property="tangosol.coherence.proxy.port">9090</port>
</local-address>
</tcp-acceptor>
</acceptor-config>
<proxy-config>
<cache-service-proxy>
<lock-enabled>true</lock-enabled>
</cache-service-proxy>
</proxy-config>
<autostart>true</autostart>
</proxy-scheme>
<distributed-scheme>
<scheme-name>quotes-scheme</scheme-name>
<service-name>DistributedQuotesCacheService</service-name>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>string</param-type>
<param-value system-property="pof.config">z:/coherence/pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<backing-map-scheme>
<local-scheme/>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
</caching-schemes>
</cache-config>extend client apps start with
-Dtangosol.coherence.cacheconfig=z:/coherence/cache-config-extend-client.xml
here:
<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<!-- *********** SCHEME MAPPINGS *********** -->
<caching-scheme-mapping>
<cache-mapping>
<cache-name>quotes.*</cache-name>
<scheme-name>extend-scheme</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<!-- ******************************** -->
<caching-schemes>
<remote-cache-scheme>
<scheme-name>extend-scheme</scheme-name>
<service-name>ExtendTcpCacheService</service-name>
<initiator-config>
<tcp-initiator>
<remote-addresses>
<socket-address>
<address>192.168.3.6</address>
<port>9090</port>
</socket-address>
</remote-addresses>
<connect-timeout>12s</connect-timeout>
</tcp-initiator>
<outgoing-message-handler>
<request-timeout>6s</request-timeout>
</outgoing-message-handler>
</initiator-config>
</remote-cache-scheme>
<!-- ALSO TRIED THIS IN PLACE OF extend-scheme -->
<remote-cache-scheme>
<scheme-name>extend-scheme-pof</scheme-name>
<service-name>ExtendPofTcpCacheService</service-name>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>string</param-type>
<param-value system-property="pof.config">z:/coherence/pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<initiator-config>
<tcp-initiator>
<remote-addresses>
<!-- mothra -->
<socket-address>
<address>192.168.3.6</address>
<port>9090</port>
</socket-address>
</remote-addresses>
<connect-timeout>12s</connect-timeout>
</tcp-initiator>
<outgoing-message-handler>
<request-timeout>6s</request-timeout>
</outgoing-message-handler>
</initiator-config>
</remote-cache-scheme>
</caching-schemes>
</cache-config>pof-config.xml should be fine...
<!DOCTYPE pof-config SYSTEM "pof-config.dtd">
<pof-config>
<user-type-list>
<include>coherence-pof-config.xml</include>
<user-type>
<type-id>10001</type-id>
<class-name>dj_quotes.DJ_Quote</class-name>
</user-type>
</user-type-list>
</pof-config>Any ideas what I missed?
Thanks,
AndrewLooks like I spoke too soon. Moving the <serializer> to the correct location in the Extend client XML config did fix the problem I was seeing but it created a new problem. It appears the Extend client wants to use POF for everything including non-POF services like the one handling the Serializable (non-POF) object oms.Order. That's what I gather from this exception
Exception in thread "AWT-EventQueue-0" (Wrapped) java.io.IOException: unknown user type: oms.Order
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:22)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23)
at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25)
at com.tangosol.coherence.component.net.extend.Channel.request(Channel.CDB:18)
at com.tangosol.coherence.component.net.extend.Channel.request(Channel.CDB:1)
at com.tangosol.coherence.component.net.extend.RemoteNamedCache$BinaryCache.putAll(RemoteNamedCache.CDB:10)
at com.tangosol.util.ConverterCollections$ConverterMap.putAll(ConverterCollections.java:1702)
at com.tangosol.coherence.component.net.extend.RemoteNamedCache.putAll(RemoteNamedCache.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.putAll(SafeNamedCache.CDB:1)
at oms.Order.sendMultiple(Order.java:357)
at order_entry_window.OrderEntryPanel$SubmitListener.sendOrder(OrderEntryPanel.java:1307)
at order_entry_window.OrderEntryPanel$SubmitListener.actionPerformed(OrderEntryPanel.java:1321)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6504)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6269)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4860)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.io.IOException: unknown user type: oms.Order
at com.tangosol.io.pof.ConfigurablePofContext.serialize(ConfigurablePofContext.java:341)
at com.tangosol.util.ExternalizableHelper.serializeInternal(ExternalizableHelper.java:2596)
at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:210)
at com.tangosol.coherence.component.net.extend.RemoteNamedCache$ConverterToBinary.convert(RemoteNamedCache.CDB:4)
at com.tangosol.util.ConverterCollections$AbstractConverterEntry.getValue(ConverterCollections.java:3547)
at com.tangosol.io.pof.PofBufferWriter.writeMap(PofBufferWriter.java:1977)
at com.tangosol.coherence.component.net.extend.messageFactory.NamedCacheFactory$PutAllRequest.writeExternal(NamedCacheFactory.CDB:3)
at com.tangosol.coherence.component.net.extend.Codec.encode(Codec.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.encodeMessage(Peer.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:16)
... 47 more
Caused by: java.lang.IllegalArgumentException: unknown user type: oms.Order
at com.tangosol.io.pof.ConfigurablePofContext.getUserTypeIdentifier(ConfigurablePofContext.java:420)
at com.tangosol.io.pof.ConfigurablePofContext.getUserTypeIdentifier(ConfigurablePofContext.java:409)
at com.tangosol.io.pof.PofBufferWriter.writeUserType(PofBufferWriter.java:1660)
at com.tangosol.io.pof.PofBufferWriter.writeObject(PofBufferWriter.java:1622)
at com.tangosol.io.pof.ConfigurablePofContext.serialize(ConfigurablePofContext.java:335)
... 56 moreSo I posted a follow-up question here:
Can an extend client use both POF and java.io.Serializable?
Thanks,
Andrew -
Drag and Drop and java.io.NotSerializableException
I have been implementing some code to essentially allow me to drag and drop from one JTree to another. The requirement was to be able to drag multiple nodes at one time and drop them on the other JTree in the order selected.
I was getting a java.io.NotSerializableException when I was in the drop code in the destination jTree and could not figure out what was going on. Basically, I was wrapping all the objects that i wanted to transfer in a custom ArrayList subclass that implemented transferable. The NotSerializableException was was indicating that the object in the JList was not serializable.
If you are getting a NotSerializableException and you have defined a custom DataFlavor like so:
public static DataFlavor DATATYPE_TRANSFER =
new DataFlavor(
TransferableImplementor.class, // make sure that this is the class that implements transferable
"Datatype Information");make sure that the .class is indeed the class that implements the transferable interface (and not some other random .class). You can be led down a wild goose chase on trying to make sure every object in your Transferable implementor class is serializable, when the problem lays in the DataFlavor instantiation.
NikIf you haven't already read these, here are a couple of good sources for DND tree implementation details.
http://www.javaworld.com/javaworld/javatips/jw-javatip97.html
http://www.javaworld.com/javaworld/javatips/jw-javatip114.html -
Need help in solving java.io.NotSerializableException
Hi,
Weblogic 9.2
I need help in solving the java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
I dont know why ApplicationNamingNode has to be serialized.
Full stack trace will be provided if needed.
thank youHere is the stack trace
Remote service [com.gfs.corp.component.price.customerbid.PCBMaint] threw exception
weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:211)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
at com.gfs.corp.component.price.maint.customerbid.ejb.PCBMaint_q9igfc_EOImpl_922_WLStub.createBid(Unknown Source)
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:585)
at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:107)
at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:75)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy47.createBid(Unknown Source)
at com.gfs.corp.bid.price.controller.DefaultBidPriceUpdater.awardBid(DefaultBidPriceUpdater.java:83)
at com.gfs.corp.bid.price.ejb.AwardQueueMessageHandler.onMessage(AwardQueueMessageHandler.java:98)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3962)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:441)
at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.transaction.internal.PropagationContext.readRollbackReason(PropagationContext.java:804)
at weblogic.transaction.internal.PropagationContext.readExternal(PropagationContext.java:376)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.rmi.provider.BasicServiceContext.readExternal(BasicServiceContext.java:56)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
at weblogic.rjvm.MsgAbbrevInputStream.readExtendedContexts(MsgAbbrevInputStream.java:224)
at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:188)
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:435)
... 7 more
Caused by: java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.jndi.internal.WLContextImpl.writeExternal(WLContextImpl.java:453)
at weblogic.jndi.internal.WLEventContextImpl.writeExternal(WLEventContextImpl.java:422)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.transaction.internal.PropagationContext.convertRollbackReasonToBytes(PropagationContext.java:735)
at weblogic.transaction.internal.PropagationContext.writeRollbackReason(PropagationContext.java:819)
at weblogic.transaction.internal.PropagationContext.writeExternal(PropagationContext.java:183)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rmi.provider.BasicServiceContext.writeExternal(BasicServiceContext.java:48)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614)
at weblogic.rjvm.MsgAbbrevOutputStream.marshalCustomCallData(MsgAbbrevOutputStream.java:319)
at weblogic.rjvm.MsgAbbrevOutputStream.transferThreadLocalContext(MsgAbbrevOutputStream.java:149)
at weblogic.rmi.internal.BasicServerRef.postInvoke(BasicServerRef.java:606)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:455)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:58)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:975)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
2007-10-18 08:38:04,931 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean - Could not invoke 'remove' on remote EJB proxy
weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:211)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
at com.gfs.corp.component.price.maint.customerbid.ejb.PCBMaint_q9igfc_EOImpl_922_WLStub.remove(Unknown Source)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.removeSessionBeanInstance(AbstractRemoteSlsbInvokerInterceptor.java:227)
at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.releaseSessionBeanInstance(SimpleRemoteSlsbInvokerInterceptor.java:118)
at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:95)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy47.createBid(Unknown Source)
at com.gfs.corp.bid.price.controller.DefaultBidPriceUpdater.awardBid(DefaultBidPriceUpdater.java:83)
at com.gfs.corp.bid.price.ejb.AwardQueueMessageHandler.onMessage(AwardQueueMessageHandler.java:98)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3962)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:441)
at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.transaction.internal.PropagationContext.readRollbackReason(PropagationContext.java:804)
at weblogic.transaction.internal.PropagationContext.readExternal(PropagationContext.java:376)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.rmi.provider.BasicServiceContext.readExternal(BasicServiceContext.java:56)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
at weblogic.rjvm.MsgAbbrevInputStream.readExtendedContexts(MsgAbbrevInputStream.java:224)
at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:188)
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:435)
... 7 more
Caused by: java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.jndi.internal.WLContextImpl.writeExternal(WLContextImpl.java:453)
at weblogic.jndi.internal.WLEventContextImpl.writeExternal(WLEventContextImpl.java:422)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.transaction.internal.PropagationContext.convertRollbackReasonToBytes(PropagationContext.java:735)
at weblogic.transaction.internal.PropagationContext.writeRollbackReason(PropagationContext.java:819)
at weblogic.transaction.internal.PropagationContext.writeExternal(PropagationContext.java:183)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rmi.provider.BasicServiceContext.writeExternal(BasicServiceContext.java:48)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614)
at weblogic.rjvm.MsgAbbrevOutputStream.marshalCustomCallData(MsgAbbrevOutputStream.java:319)
at weblogic.rjvm.MsgAbbrevOutputStream.transferThreadLocalContext(MsgAbbrevOutputStream.java:149)
at weblogic.rmi.internal.ReplyOnError.run(ReplyOnError.java:54)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
2007-10-18 08:38:05,244 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean - Could not connect to remote EJB [com.gfs.corp.component.price.customerbid.PCBMaint] - retrying
org.springframework.remoting.RemoteConnectFailureException: Could not connect to remote service [com.gfs.corp.component.price.customerbid.PCBMaint]; nested exception is weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
thank you -
Hi,
While trying to get JVM Memory pool information of a remote computer ,am getting java.io.NotSerializableException. I used following method
ManagementFactory.getMemoryPollMXBean().
Please help me to solve these exception.
java.io.NotSerializableException: sun.management.MemoryPoolImpl
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
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:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at com.path.systemmanager.tunnelGate.TunnelServlet.doPost(TunnelServlet.java:38)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Thanks,
SreejithI agree, it looks frustrating. Obviously the serialization process has found the non-serializable object during the traversal of the object graph, but its difficult to know where this is.
Your class looks a bit "serialization-heavy", if you don't mind me saying. I avoid serializing anything to do with swing components and stick to collections and my own classes. Do you need to serialize these? If not, mark them transient. You can do this for all of them and then reintroduce into the serialized form one at a time to see which one causes the problem (just for curiosity).
When the object is deserialized you will have to make the necessary arrangements to set up any members that you marked transient, as these will be null. You can do this is readObject, but on this subject, why are you writing out the points member explicitly? It will be written out anyway since there is nothing special about it.
I don't know how familiar you are with the serialization package but its a sharp instrument that needs respect. I would advise reading the specification, if you haven't already done so.
Maybe you are looking for
-
Error while calling secured OSB proxy from BPEL
Hi, I have a OSB Proxy service to which I have applied OWSM Policy: oracle/wss_username_token_service_policy In the Setting: Process WS-Security Header is set to Yes While calling this Proxy from BPEL I tried to append binding properties, I tried the
-
I need to copy adobe acrobat from an old laptop...
to a new one but I can't locate my disc. Can I copy the files using a flash drive or download the app and enter my license? Any suggestions? Thanks!
-
Hi, I am registering the following error in a SOAP Sender Communication Channel, it's very strange because of in the Development Environment everything worked fine. com.sap.aii.af.sdk.xi.util.URI$MalformedURIException: no scheme The Scenario is the f
-
Regarding WLI Domain and Integration Studio Login
Dear All This is bala, please help me this is the details I have installed installed WIntegration Server and using quickstart click the Take to Platform tour I started all the servers Note-- I have not installed separate weblogic server 7.0 and not s
-
Anyone help me understand why I'm getting the errors below when I use wscompile? build.xml <wscompile base="${proj.temp}/classes" classpath="${home.jwsdp}/jaxrpc-api.jar:${home.jwsdp}/jaxrpc-impl.jar:${home.jwsdp}/jaxr