TOPLink serialization exception
When switching from a single server deployment to a (single) server in a
cluster.
I suddenly get the exception as shown in the stacktrace below.
Is this a known bug? Or am I doing something wrong?
Thanks Toby
Fri Dec 03 14:10:48 GMT+02:00 1999:<E> <MulticastSocket>
java.io.NotSerializableException:
TOPLink.Public.ThreeTier.ExternalConnecti
onPool
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java,
Compiled Code)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java, Compiled
Code)
at java.util.Hashtable.writeObject(Hashtable.java, Compiled
Code)
at java.lang.reflect.Method.invoke(Native Method)
at
java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java,
Compiled Code)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java,
Compiled Code)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java, Compiled
Code)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java,
Compiled Code)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java,
Compiled Code)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java,
Compiled Code)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java, Compiled
Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeSpecial(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.cluster.BasicServiceOffer.writeObject(BasicServiceOffer.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writePublicSerializable(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectBody(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeArrayList(WLObjectOutputStreamBase.java,
Compiled Code)
at weblogic.cluster.Announcement.writeObject(Announcement.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writePublicSerializable(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectBody(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutputStreamBase.java,
Compiled Code)
at weblogic.cluster.TMSocket.send(TMSocket.java, Compiled Code)
at weblogic.cluster.TMSocket.start(TMSocket.java, Compiled Code)
at weblogic.cluster.ClusterManager.start(ClusterManager.java,
Compiled Code)
at weblogic.cluster.ClusterMain.start(ClusterMain.java, Compiled
Code)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java, Compiled
Code)
at weblogic.Server.main(Server.java, Compiled Code)
Hi folks,
Are there any outstanding problems with this that have not been dealt with
through TOPLink for WebLogic support? Just looking at the exception
stack trace it looks like the TOPLink session is trying to be serialized.
This will occur if it has been put in JNDI, since clusters will replicate
the JNDI namespace across the cluster. If this isn't what you are seeing
then please let us know at [email protected]
Note that the first GA release of TOPLink for WebLogic did put the
session in JNDI, but this was changed in every release after that one.
Regards,
Mike Keith
TOPLink for Weblogic
Steve Cramer <[email protected]> wrote in message
news:[email protected]...
> Any news on this (from either BEA or TOPLink)? We're seeing this
identical
> behavior in the WLS 5.1 GA release, using TOPLink for Java v 2.5.1
> (pre-release 1). Please respond if you've had any updates.
>
> Thanks,
> cramer
>
> Tobias Christen <[email protected]> wrote in message
> news:[email protected]...
> > Sorry,
> >
> > I mixed up two open issues with TopLink.
> > The bug this thread is concerned about is not cured with
> > SP3 and never was intended. TopLink never made a statement
> > on fixing this bug. Please excuse my misinformation. The bug
> > was reported to TopLink this morning. If it is resolved
> > I´ll mail the solution to this thread.
> >
> > Toby
> >
> > Christopher Lynch wrote:
> >
> > > Hi,
> > > We are experiencing pretty much if not the same exception when we
try
> to cluster
> > > our weblogic servers.
> > >
> > > Please let me know if you have any more insight on this problem.
> > >
> > > Thank You,
> > >
> > > Chris Lynch
> > > TravelNow.com
> > >
> > > Tobias Christen wrote:
> > >
> > > > Thanks,
> > > >
> > > > I certainly checked with them as well, they said they are working
> > > > with you on this ;-) and let us know when it is fixed.
> > > >
> > > > Happy Day
> > > >
> > > > Michael Girdley wrote:
> > > >
> > > > > Tobias,
> > > > >
> > > > > Have you checked with TOPLink support to know if this is a known
> problem? I
> > > > > have not heard of it before. In any case, the Object People are
> your best
> > > > > resource for these kind of questions about TOPLink.
> > > > >
> > > > > Thanks!
> > > > >
> > > > > --
> > > > > Michael Girdley
> > > > > BEA Product Manager
> > > > >
> > > > > Tobias Christen <[email protected]> wrote in message
> > > > > news:[email protected]...
> > > > > > When switching from a single server deployment to a (single)
> server in a
> > > > > > cluster.
> > > > > > I suddenly get the exception as shown in the stacktrace below.
> > > > > >
> > > > > > Is this a known bug? Or am I doing something wrong?
> > > > > >
> > > > > > Thanks Toby
> > > > > >
> > > > > >
> > > > > > Fri Dec 03 14:10:48 GMT+02:00 1999:<E> <MulticastSocket>
> > > > > > java.io.NotSerializableException:
> > > > > > TOPLink.Public.ThreeTier.ExternalConnecti
> > > > > > onPool
> > > > > > at
> > > > > > java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java,
> Compiled
> > > > > > Code)
> > > > > > at java.util.Hashtable.writeObject(Hashtable.java,
> Compiled
> > > > > > Code)
> > > > > > at java.lang.reflect.Method.invoke(Native Method)
> > > > > > at
> > > > > >
> java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > > java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java,
> Compiled
> > > > > > Code)
> > > > > > at
> > > > > >
> java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > > java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java,
> Compiled
> > > > > > Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
> > > > > StreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeSpecial(WLObjectOutpu
> > > > > tStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
> > > > > StreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
> > > > > utStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> weblogic.cluster.BasicServiceOffer.writeObject(BasicServiceOffer.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writePublicSerializable(WL
> > > > > ObjectOutputStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectBody(WLObjectOu
> > > > > tputStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
> > > > > StreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
> > > > > utStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeArrayList(WLObjectOut
> > > > > putStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> weblogic.cluster.Announcement.writeObject(Announcement.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writePublicSerializable(WL
> > > > > ObjectOutputStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectBody(WLObjectOu
> > > > > tputStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
> > > > > StreamBase.java,
> > > > > > Compiled Code)
> > > > > > at
> > > > > >
> > > > >
>
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
> > > > > utStreamBase.java,
> > > > > > Compiled Code)
> > > > > > at weblogic.cluster.TMSocket.send(TMSocket.java,
Compiled
> Code)
> > > > > > at weblogic.cluster.TMSocket.start(TMSocket.java,
Compiled
> Code)
> > > > > >
> > > > > > at
> weblogic.cluster.ClusterManager.start(ClusterManager.java,
> > > > > > Compiled Code)
> > > > > > at weblogic.cluster.ClusterMain.start(ClusterMain.java,
> Compiled
> > > > > > Code)
> > > > > > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled
> Code)
> > > > > > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java, Compiled
> Code)
> > > > > > at java.lang.reflect.Method.invoke(Native Method)
> > > > > > at weblogic.Server.startServerDynamically(Server.java,
> Compiled
> > > > > > Code)
> > > > > > at weblogic.Server.main(Server.java, Compiled Code)
> > > > > >
> >
>
>
Similar Messages
-
hi guys,
I really need ur help with this.
I have a remote session bean that retrieves a list of books from the database using entity class and I call the session bean from a web service. The problem is that when i display the books in a jsp directly from the session bean everything works ok but the problem comes when I call the session bean via the web service than it throws this:
Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.
at oracle.toplink.essentials.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:887)
at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:233)
at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:105)
at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:208)
at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:330)
at oracle.toplink.essentials.indirection.IndirectList$1.<init>(IndirectList.java:425)
at oracle.toplink.essentials.indirection.IndirectList.iterator(IndirectList.java:424)
at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:278)
at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:265)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:129)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:277)
at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:315)
at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:176)
... 29 more
This happens when I test the web service using netbeans 6.5.
here's my code:
session bean:
ArrayList bookList = null;
public ArrayList retrieveBooks()
try
List list = em.createNamedQuery("Book.findAll").getResultList();
bookList = new ArrayList(list);
catch (Exception e)
e.getCause();
return bookList;
web service:
@WebMethod(operationName = "retrieveBooks")
public Book[] retrieveBooks()
ArrayList list = ejbUB.retrieveBooks();
int size = list.size();
Book[] bookList = new Book[size];
Iterator it = list.iterator();
int i = 0;
while (it.hasNext())
Book book = (Book) it.next();
bookList[i] = book;
i++;
return bookList;
Please help guys, it's very urgentYes i have a relationship but i didnt want it to be directly. Maybe this is a design problem but in my case I dont expect any criminals to be involved in lawsuit. My tables are like that:
CREATE TABLE IF NOT EXISTS Criminal(
criminal_id INTEGER NOT NULL AUTO_INCREMENT,
gender varchar(1),
name varchar(25) NOT NULL,
last_address varchar(100),
birth_date date,
hair_color varchar(10),
eye_color varchar(10),
weight INTEGER,
height INTEGER,
PRIMARY KEY (criminal_id)
ENGINE=INNODB;
CREATE TABLE IF NOT EXISTS Lawsuit(
lawsuit_id INTEGER NOT NULL AUTO_INCREMENT,
courtName varchar(25),
PRIMARY KEY (lawsuit_id),
FOREIGN KEY (courtName) REFERENCES Court_of_Law(courtName) ON DELETE NO ACTION
ENGINE=INNODB;
CREATE TABLE IF NOT EXISTS Rstands_trial(
criminal_id INTEGER,
lawsuit_id INTEGER,
PRIMARY KEY (criminal_id, lawsuit_id),
FOREIGN KEY (criminal_id) REFERENCES Criminal(criminal_id) ON DELETE NO ACTION,
FOREIGN KEY (lawsuit_id) REFERENCES Lawsuit(lawsuit_id) ON DELETE CASCADE
ENGINE=INNODB;So I couldnt get it. -
Oracle.toplink.essentials.exceptions.ValidationException
Hi,
In my EJB 3 application we added a Schema entity to our already existing Student entity.
I added the followning code in the student entity:
@OneToOne(cascade = CascadeType.ALL)
@JoinColumn(
nullable = true,
name = "SCHEMA_ID"
private Schema schema;
After adding the Schema enity I tried to compile and run the tests. I got the following toplink error message (roughly):
nternal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class se.myapp.subsytem.alpha.Student] uses a non-entity [class se.myapp.subsytem.domain.Schema] as target entity in the relationship attribute [private e.myapp.subsytem.domain.Schema].
I found out that I had to change the persistence.xml but not why?
I would be very happy if someone could shed some light in this matter since I have no clue why I must put it in the persistence.xml
cheers,
//mikeYou must either annotate every Entity with the @Entity annotation, or map it through the ORM.xml. All Entities must also define an @Id annotation.
-- James : http://www.eclipselink.org -
Serialization Exception for : CachedRowSet
Hi ..
I have populated my CachedRowSet with as follows
// lRst is a SCROLLABLE ResultSet
javax.sql.rowset.CachedRowSet lCachedRowSet = new com.sun.rowset.CachedRowSetImpl();
lCachedRowSet.setPageSize(mPageSize);
lCachedRowSet.populate(lRst,10);While i try to serialize CachedRowSet , I get a Serialization Exception.
for 'weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_ScrollableResultSet'
However if i try to populate the same as follows It works fine:
javax.sql.rowset.CachedRowSet lCachedRowSet = new com.sun.rowset.CachedRowSetImpl();
lCachedRowSet.setPageSize(mPageSize);
lCachedRowSet.populate(lRst);I am using Oracle 8i and Weblogic 8.1.
I have to take the first approach. Please let me know if there is any solution for the first approach.Hi ..
I have populated my CachedRowSet with as follows
// lRst is a SCROLLABLE ResultSet
javax.sql.rowset.CachedRowSet lCachedRowSet = new com.sun.rowset.CachedRowSetImpl();
lCachedRowSet.setPageSize(mPageSize);
lCachedRowSet.populate(lRst,10);While i try to serialize CachedRowSet , I get a Serialization Exception.
for 'weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_ScrollableResultSet'
However if i try to populate the same as follows It works fine:
javax.sql.rowset.CachedRowSet lCachedRowSet = new com.sun.rowset.CachedRowSetImpl();
lCachedRowSet.setPageSize(mPageSize);
lCachedRowSet.populate(lRst);I am using Oracle 8i and Weblogic 8.1.
I have to take the first approach. Please let me know if there is any solution for the first approach. -
TOPLINK-69 exception during commit.
I am receiving the following exception during commit, idcprice.tenor happens to
be an aggregate object defined in extending class, this does not always happen,
can provide more info.
This is extremely urgent!!! thanks
Exception:
2008-04-03 17:05:05,390 ERROR http-0.0.0.0-8080-3 [[email protected]] FXTRADER_WORKFLOWHEL
PER_FACADE :: acceptRFPQuote() : Exception thrown Database exception: Exception [TOPLINK-69] (Oracle
TopLink - 10g Release 3 (10.1.3.3.0) (Build 070620)): oracle.toplink.exceptions.DescriptorException
Exception Description: A NullPointerException was thrown while extracting a value from the instance
variable [tenor] in the object [null].
Internal Exception: java.lang.NullPointerException
Mapping: oracle.toplink.mappings.DirectToFieldMapping[tenor-->IdcPrice.tenor]
Descriptor: Descriptor(com.integral.finance.trade.Tenor --> [DatabaseTable(IdcPrice)]).The bug is that you're getting an NPE instead of a validation exception. When the bug is fixed you'll still get an exception--just one that communicates the problem in your code better.
It boils down to the fact that you can't share a single aggregate instance between two "owners". This has nothing to do with the aggregate being defined in the base class. The owner and aggregate form a composite--they have the same life cycle. For example if you delete the owner you delete the aggregate. I think you have a situation in which the same instance of an aggregate is being assigned to two owner objects and you're getting this exception.
In other words somewhere in your code you're either doing something like:
MyAggregate ag = new MyAggregate();
object1.setAggregate(ag);
object2.setAggregate(ag);or
object1.setAggregate(object2.getAggregate());You need to clone an aggregate if you want to duplicate it's value and assign it to a second owner. Something like:
MyAggregate ag = new MyAggregate();
object1.setAggregate(ag);
object2.setAggregate(ag.clone());or
object1.setAggregate(object2.getAggregate().clone());--Shaun -
Toplink Workbench Exceptions â¦â¦.
When I tried to open a Toplink project (project.mwp) generated by Toplink 9.0.3 in the newer version 9.0.4, I got the following errors during the conversion process. What should I do to correct this issue? Many thanks for the help.
Throwable Class Name:
oracle.toplink.exceptions.DescriptorException
Message:
Exception Description: The method [isStub] on the object [oracle.toplink.workbench.model.meta.MWClass] triggered an exception.
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NullPointerException
Mapping: oracle.toplink.mappings.DirectToFieldMapping[stub-->class.stub]
Descriptor: XMLDescriptor(oracle.toplink.workbench.model.meta.MWClass --> [DatabaseTable(class)])
Stack trace:
Local Exception Stack:
Exception [TOPLINK-99] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [isStub] on the object [oracle.toplink.workbench.model.meta.MWClass] triggered an exception.
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NullPointerException
Mapping: oracle.toplink.mappings.DirectToFieldMapping[stub-->class.stub]
Descriptor: XMLDescriptor(oracle.toplink.workbench.model.meta.MWClass --> [DatabaseTable(class)])
at oracle.toplink.exceptions.DescriptorException.targetInvocationWhileGettingValueThruMethodAccessor(DescriptorException.java:1371)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor.getAttributeValueFromObject(MethodAttributeAccessor.java:47)
at oracle.toplink.mappings.DatabaseMapping.getAttributeValueFromObject(DatabaseMapping.java:304)
at oracle.toplink.mappings.DirectToFieldMapping.buildClone(DirectToFieldMapping.java:61)
at oracle.toplink.internal.descriptors.ObjectBuilder.populateAttributesForClone(ObjectBuilder.java:1493)
at oracle.toplink.publicinterface.UnitOfWork.cloneAndRegisterNewObject(UnitOfWork.java:580)
at oracle.toplink.publicinterface.UnitOfWork.internalRegisterObject(UnitOfWork.java:2261)
at oracle.toplink.publicinterface.UnitOfWork.registerObject(UnitOfWork.java:3093)
at oracle.toplink.mappings.CollectionMapping.buildElementClone(CollectionMapping.java:148)
at oracle.toplink.mappings.CollectionMapping.buildCloneForPartObject(CollectionMapping.java:107)
at oracle.toplink.internal.indirection.NoIndirectionPolicy.cloneAttribute(NoIndirectionPolicy.java:43)
at oracle.toplink.mappings.ForeignReferenceMapping.buildClone(ForeignReferenceMapping.java:160)
at oracle.toplink.internal.descriptors.ObjectBuilder.populateAttributesForClone(ObjectBuilder.java:1493)
at oracle.toplink.mappings.AggregateMapping.buildClonePart(AggregateMapping.java:132)
at oracle.toplink.mappings.AggregateMapping.buildClone(AggregateMapping.java:110)
at oracle.toplink.internal.descriptors.ObjectBuilder.populateAttributesForClone(ObjectBuilder.java:1493)
at oracle.toplink.publicinterface.UnitOfWork.cloneAndRegisterNewObject(UnitOfWork.java:580)
at oracle.toplink.publicinterface.UnitOfWork.internalRegisterObject(UnitOfWork.java:2261)
at oracle.toplink.publicinterface.UnitOfWork.registerObject(UnitOfWork.java:3093)
at oracle.toplink.workbench.ui.WorkbenchSession.registerProject(WorkbenchSession.java:551)
at oracle.toplink.workbench.ui.WorkbenchSession.addProject(WorkbenchSession.java:151)
at oracle.toplink.workbench.ui.WorkbenchSession.addNewProject(WorkbenchSession.java:138)
at oracle.toplink.workbench.ui.MainView.addNewProject(MainView.java:265)
at oracle.toplink.workbench.filesystem.MWFileFactory.openImp(MWFileFactory.java:206)
at oracle.toplink.workbench.filesystem.MWFileFactory.open(MWFileFactory.java:158)
at oracle.toplink.tsceditor.persistence.PersistenceManager.open(PersistenceManager.java:747)
at oracle.toplink.tsceditor.ui.persistence.DefaultUIPersistence.open(DefaultUIPersistence.java:181)
at oracle.toplink.tsceditor.ui.persistence.UIPersistenceManager.open(UIPersistenceManager.java:625)
at oracle.toplink.tsceditor.ui.persistence.UIPersistenceManager$OpenFile.execute(UIPersistenceManager.java:1095)
at oracle.toplink.tsceditor.utility.Thread.run(Thread.java:114)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor.getAttributeValueFromObject(MethodAttributeAccessor.java:40)
... 28 more
Caused by: java.lang.NullPointerException
at oracle.toplink.workbench.model.meta.MWClass.superclassIsDefaultValue(MWClass.java:1275)
at oracle.toplink.workbench.model.meta.MWClass.isStub(MWClass.java:1236)
... 32 moreoracle.toplink.workbench.framework.OpenException: Exception [TOPLINK-98] (Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041012)): oracle.toplink.exceptions.DescriptorException
Exception Description: The underlying descriptor callback method [legacy45PostBuild], with parameter (DescriptorEvent), triggered an exception.
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NullPointerException
Descriptor: XMLDescriptor(oracle.toplink.workbench.mappingsmodel.project.relational.MWRelationalProject --> [DatabaseTable(BldrProject)])
at oracle.toplink.workbench.mappingsplugin.MWPlugin.open(MWPlugin.java:262)
at oracle.toplink.workbench.framework.internal.FrameworkApplication.open(FrameworkApplication.java:605)
at oracle.toplink.workbench.framework.internal.FrameworkNodeManager.openCallback(FrameworkNodeManager.java:325)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run2(RunnableProjectLoader.java:81)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run(RunnableProjectLoader.java:68)
at java.lang.Thread.run(Thread.java:534)
Caused by: Exception [TOPLINK-98] (Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041012)): oracle.toplink.exceptions.DescriptorException
Exception Description: The underlying descriptor callback method [legacy45PostBuild], with parameter (DescriptorEvent), triggered an exception.
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NullPointerException
Descriptor: XMLDescriptor(oracle.toplink.workbench.mappingsmodel.project.relational.MWRelationalProject --> [DatabaseTable(BldrProject)])
at oracle.toplink.exceptions.DescriptorException.targetInvocationWhileEventExecution(DescriptorException.java:1598)
at oracle.toplink.publicinterface.DescriptorEventManager.executeEvent(DescriptorEventManager.java:177)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:256)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:504)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:372)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:408)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:372)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:727)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:559)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:336)
at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1977)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:973)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:930)
at oracle.toplink.publicinterface.Session.readObject(Session.java:2429)
at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools45.readMWProjectNamed(PersistenceTools45.java:230)
at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read45Project(LegacyIOFacade.java:18)
at oracle.toplink.workbench.mappingsio.ProjectReader.readPreviousVersion(ProjectReader.java:97)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:85)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:48)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:44)
at oracle.toplink.workbench.mappingsplugin.MWPlugin.open(MWPlugin.java:260)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
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 oracle.toplink.internal.security.PrivilegedAccessController.invokeMethod(PrivilegedAccessController.java:416)
at oracle.toplink.publicinterface.DescriptorEventManager.executeEvent(DescriptorEventManager.java:170)
... 24 more
Caused by: java.lang.NullPointerException
at oracle.toplink.workbench.mappingsmodel.desc.relational.MWRelationalPrimaryKeyPolicy.nodeRemoved(MWRelationalPrimaryKeyPolicy.java:185)
at oracle.toplink.workbench.utility.node.AbstractNodeModel.nodeRemoved(AbstractNodeModel.java:288)
at oracle.toplink.workbench.utility.node.AbstractNodeModel.nodeRemoved(AbstractNodeModel.java:288)
at oracle.toplink.workbench.mappingsmodel.desc.MWMappingDescriptor.nodeRemoved(MWMappingDescriptor.java:1174)
at oracle.toplink.workbench.mappingsmodel.desc.relational.MWTableDescriptor.nodeRemoved(MWTableDescriptor.java:1054)
at oracle.toplink.workbench.utility.node.AbstractNodeModel.nodeRemoved(AbstractNodeModel.java:288)
at oracle.toplink.workbench.mappingsmodel.MWModel.removeNodeFromCollection(MWModel.java:152)
at oracle.toplink.workbench.mappingsmodel.meta.MWClass.removeAttribute(MWClass.java:960)
at oracle.toplink.workbench.mappingsmodel.meta.MWClass.removeAttributes(MWClass.java:969)
at oracle.toplink.workbench.mappingsmodel.meta.MWClass.removeAttributes(MWClass.java:964)
at oracle.toplink.workbench.mappingsmodel.meta.MWClass.clearAttributes(MWClass.java:974)
at oracle.toplink.workbench.mappingsmodel.meta.MWClass.legacyXXReworkCoreType(MWClass.java:3108)
at oracle.toplink.workbench.mappingsmodel.meta.MWClass.legacy45PostPostProjectBuild(MWClass.java:3084)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy45PostPostProjectBuild(MWModel.java:575)
at oracle.toplink.workbench.mappingsmodel.meta.MWClassRepository.legacy45PostPostProjectBuild(MWClassRepository.java:1271)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy45PostPostProjectBuild(MWModel.java:575)
at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy45PostBuild(MWProject.java:1233)
at oracle.toplink.workbench.mappingsmodel.project.relational.MWRelationalProject.legacy45PostBuild(MWRelationalProject.java:651)
... 30 more -
One of our teams is having the following problem:
when we refresh one class in toplink workbench to add a new field, we can no longer save. we get the following error. What is curious, is that our local classes get listed in the workbench. I'm not sure exactly what this means, and the classes referred to in the stack trace are our local framework classes. Has anyone seen something like this before, or have an idea of what it might mean?. Once again the error below is shown in the workbench not runtime.
LOCAL EXCEPTION STACK: EXCEPTION [TOPLINK-6004] (TopLink - 4.0 (Build 345)): com.webgain.integrator.exceptions.QueryException EXCEPTION DESCRIPTION: The object [BldrClass[3c8807] (com.cna.exceptions.CfRuntimeException, modifier = public, array=, implements [BldrClass[3aa0bb] (com.cna.exceptions.CiException, modifier = public abstract interface, interface, array=, implements [])], extends RuntimeException)], of class [class com.webgain.workbench.model.meta.BldrClass], with identity hashcode (System.identityHashCode()) [3,966,983], is not from this UnitOfWork object space, but the parent session's. The object was never registered in this UnitOfWork, but read from the parent session and related to an object registered in the UnitOfWork. Ensure that you are correctly registering your objects. If you are still having problems, you can use the UnitOfWork.validateObjectSpace() method to help debug where the error occurred. For more information, see the manual or FAQ. QUERY: WriteObjectQuery(BldrClass[3c8807] (com.cna.exceptions.CfRuntimeException, modifier = public, array=, implements [BldrClass[3aa0bb] (com.cna.exceptions.CiException, modifier = public abstract interface, interface, array=, implements [])], extends RuntimeException)) at com.webgain.integrator.exceptions.QueryException.backupCloneIsOriginalFromParent(QueryException.java:143) at com.webgain.integrator.publicinterface.UnitOfWork.getBackupClone(UnitOfWork.java:1284) at com.webgain.integrator.publicinterface.UnitOfWork.getBackupCloneForCommit(UnitOfWork.java:1316) at com.webgain.integrator.queryframework.ObjectLevelModifyQuery.prepareForExecution(ObjectLevelModifyQuery.java:144) at com.webgain.integrator.queryframework.WriteObjectQuery.prepareForExecution(WriteObjectQuery.java:102) at com.webgain.integrator.queryframework.DatabaseQuery.execute(DatabaseQuery.java:473) at com.webgain.integrator.publicinterface.Session.internalExecuteQuery(Session.java:1869) at com.webgain.integrator.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:1962) at com.webgain.integrator.publicinterface.Session.executeQuery(Session.java:1034) at com.webgain.integrator.publicinterface.Session.executeQuery(Session.java:988)The easiest workaround to this problem is normally to perform a "save as" of the project, which will normally work.
TopLink - 4.0 (Build 345) - is a fairly old release, you may wish to contact support to get the latest patch for this release, or to upgrade to a newer version of the product. -
Hi All,
I am developing webservice application using Dynamic Proxy client. I am using Weblogic8.1 as my application server. All my services are generated using servicegen and clientgen task of Ant.
While using Dynamic Proxy client to invoke webservice, i am passing array of my POJO class. I am generating types using generateTypes option of the service task so that it generates serialized class automatically. But while passing this array object as an input parameter while invoking webservice, i am getting below error -
[java] General exception thrown
[java] java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.lookup(Unknown Source)
[java] at cititru.scan.transScan.createGiService(transScan.java:47)
[java] at cititru.scan.transScan.main(transScan.java:22)
[java] Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
[java] javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdict.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[java] at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:266)
[java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:251)
[java] ... 3 more
[java] Caused by: javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdic
t.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class [Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
[java] at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:331)
[java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:247)
[java] ... 3 more
In the above error message ScannedTextData is my POJO class which i am passing as an input parameter to webservice. Please suggest me what needs to be done to resolve the above issue.We'd need some more info to help you. Can you show us the code for your
sfsb? Are you sure you aren't doing something in ejbActivate to replace
the Serializable instance with a new class?
-- Rob
Kiran Raj wrote:
Hi All,
I have a problem while using a serialized class from within a stateful session
bean.
I am setting values to the serialized bean class by using one of the set methods
but at the very next statement when i am printing the values that is set is giving
null.
class myClass implements serializable {
private int counter=0;
public void setValues(){
counter++;
System.out.println(counter);
public int getValues(){
System.out.println(counter);
return counter;
class caller{
public void callingmethod(){
myClass x=new myClass();
x.setValues();
x.getValues();
when i call callingmethod, the output is
1
0
it is getting incremented and then getting reset to 0
I have 2 deployments, a development environment and a production environment.
It works fine in the development environment but fails in the production environment.
The xml files used are the same in both cases, so there is no configuration difference.
I am using welogic 6.1 wih service pack 3 and jdk 1.3.1
I suspect that this is related to serialization in weblogic but dont know exactly
how weblogic implements serialization.
if anybody has encountered this or knows the reasons it would be helpful to me.
Thanks,
Kiran. -
Getting xml serializer exception
dont know what this mean, did anybody got this exception before.
Searched on google but got few results only which were not helpful.
Frustrated posting this here . if anybody has seen this and resolved this , give me tips on how to get this working or atleast what could be cause of this problem.
java.lang.NullPointerException
at org.apache.xml.serialize.OutputFormat.whichMethod(Unknown Source)
at org.apache.xml.serialize.OutputFormat.<init>(Unknown Source)
at com.tibco.portalservices.administrator.AbstractDOMDeploymentDescriptorEditor.update(AbstractDOMDeploymentDesc
riptorEditor.java:125)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.administrator.consoles.deploymentconfiguration.ServiceDetailPane.update(ServiceDetailPane.java:94)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.wfc.AbstractFrame.update(AbstractFrame.java:101)
at com.tibco.wfc.FramesetComponent.update(FramesetComponent.java:186)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.wfc.AbstractFrame.update(AbstractFrame.java:101)
at com.tibco.wfc.FrameManager.a(FrameManager.java:235)
at com.tibco.wfc.FrameManager.service(FrameManager.java:142)
at com.tibco.administrator.AdministratorServlet.service(AdministratorServlet.java:843)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
at java.lang.Thread.run(Thread.java:595)There is no HashMap in your ArrayList. Take a look at this line:
selectedDataList.add(searchList);I think a object f type SearchBean is added to the list here. This is no HashMap I presume.
Please use code tags when posting code. This looks lke this:
public String getSelectedItems() {
// Get selected items.
HashMap map = new HashMap();
DeleteContentDialog deleteContentDialog = new DeleteContentDialog();
selectedDataList = new ArrayList();
for (SearchBean searchList : searchResultdetails) {
System.out.println("Inside getSelectedItems.........Inside for"+searchList);
if (searchList.isSelected()) {
System.out.println("Inside getSelectedItems........searchList."+searchList);
selectedDataList.add(searchList);
searchList.setSelected(false); // Reset.
try {
for(int i=0;i<selectedDataList.size();i++){
System.out.println("Inside the delete Method");
System.out.println("selectedDataList is "+selectedDataList.get(i));
if (selectedDataList.size() != 0)
System.out.println("Array List is having = "selectedDataList.size()" records");
//printValuesTest(medianList);
System.out.println("**************THESE ARE THE VALUES OF THE HASHMAP AT THE INDEX = "+i);
map = (HashMap)selectedDataList.get(i);
if (map.size() != 0)
Iterator iterator = map.keySet().iterator();
while (iterator.hasNext())
String key = (String) iterator.next();
String value = (String) map.get(key);
System.out.println("Key = "key " and Value = "+value);
deleteContentDialog.init(map);
else
System.out.println("Hashmap is empty");
catch(Exception e){
e.printStackTrace();
return "deletedFile"; // Navigation case.
} -
Serialization exception in RMI
I have a GameServerImp remote class:
HashMap clients;
HashMap versus;
public GameServerImp() throws RemoteException
clients =new HashMap();
versus =new HashMap();
public void register(String name,GameClientInt c) throws RemoteException
clients.put(name,c);
these are its functions.
I have a client :
public class BI implements GameClientInt{
public BI()
I have following code invoking the register method.
1 mainServer = (GameServerInt)Naming.lookup("rmi://localhost:1099/gameservice");
2 mainServer.register(name,new BI());
when 2 line executes it gives exception:
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: BI
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
at $Proxy0.register(Unknown Source)
There is nothing related to io :(. I cant figure out why it is happening.Hi,
Please user for posting sample code
Does this interface GameClientInt extends Serializable? if not can you do that and try again
Regards,
Alan Mehio
London,UK -
[TOPLINK-6007]: Exception Description: Missing descriptor for
Hi,
We developed an ADF application with TopLink in JDeveloper 10.1.3.3. All things are right in JDeveloper's embedded OC4J.
But after we deployed it to standalone OC4J 10.1.3.3, we find following errors (in CMD window):
TOPLINK-6007] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 07
*0428)): oracle.toplink.exceptions.QueryException*
*Exception Description: Missing descriptor for [class oracle.model.class1].*
Query: ReadObjectQuery(oracle.model.class1)
And find other erros related to this class1 (in this application's application.log)
javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'allNameList' from bean of type oracle.view.backing.UserPrivilege: java.lang.ClassCastException: oracle.model.class1
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
at javax.faces.component.UISelectItems.getValue(UISelectItems.java:130)
at oracle.adfinternal.view.faces.renderkit.uix.SelectItemSupport.addSelectItems(SelectItemSupport.java:262)
at oracle.adfinternal.view.faces.renderkit.uix.SelectManyShuttleRenderer._getSelectItems(SelectManyShuttleRenderer.java:178)
at oracle.adfinternal.view.faces.renderkit.uix.SelectManyShuttleRenderer.encodeBegin(SelectManyShuttleRenderer.java:60)
at oracle.adf.view.faces.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:593)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:297)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(BorderLayoutRenderer.java:42)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(BorderLayoutRenderer.java:71)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)
at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)
at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(RowLayoutRenderer.java:95)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
at UserPrivilegejspx._jspService(_UserPrivilege_jspx.java:1169)
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.faces.el.EvaluationException: Error getting property 'allNameList' from bean of type oracle.view.backing.UserPrivilege: java.lang.ClassCastException: oracle.model.class1
at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:109)
at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:92)
at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
... 138 more
Caused by: java.lang.ClassCastException: oracle.model.class1
at oracle.view.backing.UserPrivilege.getAllNameList(UserPrivilege.java:60)
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 com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
... 143 more
How to resolve?
Thanks,
MelodyThere was a recent thread on this issue,
Missing Descriptor in Servlet
Basically TopLink does not get notified of the undeployment of an app, so cannot remove the session from the SessionManager. (unless you are using CMP)
If you can receive notification of the deploy/undeploy you could remove or refresh the session from the session manager.
A simple way to do this would be to keep a static boolean variable in your apps class that accesses the session from the session manager. The first time you access the session refresh it and set the static to true.
To refresh a session from the session manager use the API,
SessionManager.getSession(XMLSessionConfigLoader/XMLLoader xmlLoader, String sessionName, ClassLoader classLoader, boolean shouldLoginSession, boolean shouldRefreshSession)
i.e.
SessionManager.getManager().getSession(new XMLSessionConfigLoader/XMLLoader("sessions.xml/or your file name/path"), "yourSessionName", yourClassLoader, true, true);
Only use this API the first time you access the session from the app.
You can also use the following code to remove a session,
SessionManager.getManager().getSessions().remove("yourSessionName");
I have logged this issue internally, hopefully a better solution will be provided in the 10.1.3 release. -
I was able to get my HTTPS web service to communicate with my clients, but now
when I try to connect to the web service (type=document), I get this error:
[java] 3) testQuoteStubs(com.arrow.arrowsoap.client.QuoteServiceClientTest)
junit.framework.AssertionFailedError: failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
TypeMapping=TYPE
MAPPING SIZE=3
[java] ENTRY 1:
[java] class: java.lang.Object
[java] xsd_type: ['https://www.xxx.com/QuoteService/']:lcl0:ProcessResponse
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
b957ea
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
3aff84
[java] ENTRY 2:
[java] class: java.lang.Object
[java] xsd_type: ['https://www.xxx.com/QuoteService/']:lcl0:Process
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
15d4de6
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
a53de4
[java] ENTRY 3:
[java] class: java.lang.Object
[java] xsd_type: ['http://www.w3.org/2001/XMLSchema']:xsd:anyType
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
827968
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
1f0b7d3
[java] at com.arrow.arrowsoap.client.QuoteServiceClientTest.testQuoteSt
ubs(QuoteServiceClientTest.java:98)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
Attached is the WSDL for the service.
The type-mapping file looks like:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="https://www.xxx.com/QuoteService/"
class-name="java.lang.Object"
type="lcl0:ProcessResponse"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="https://www.xxx.com/QuoteService/"
class-name="java.lang.Object"
type="lcl0:Process"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry class-name="java.lang.Object"
type="xsd:anyType"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
Any ideas?? Am I missing something from my classpath?? I am running the tests
using the WL 8.1 ANT installation and using this as my WL classpath (my own jars
are added first in the path and are omitted here):
<pathelement path="${weblogic.home}/lib/webserviceclient.jar"/>
<pathelement path="${weblogic.home}/lib/weblogic_sp.jar"/>
<pathelement path="${weblogic.home}/lib/weblogic.jar"/>
Thanks
-- jake
[QuoteService.wsdl]Hi Karen,
My suggestion is to separate the issues (serialization failures and
SSL). Make sure your app works OK using http trasport. For SSL, RU
using the WLSSLAdapter for the client as described in the docs [1]? One
or 2way SSL? What version of WLS?
Thanks,
Bruce
[1]
http://edocs.bea.com/wls/docs81/webserv/security.html#1053203
Karen Yuan wrote:
>
Hi Bruce,
I was also getting the SerializationException when I tried to connect from my
weblogic web
service client to my HTTPS webMethods web service (SOAP-RPC protocol). Then I
included
webserviceclient+ssl.jar client runtime JAR file on both of my client and server
sides and re-ran
my test. I still got the same error:
Exception in thread "main" java.rmi.RemoteException: web service invoke failed:
javax.xml.soap.SOAPException: failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException:
type mapping lookup
failure on class=class java.io.StringReader TypeMapping=TYPEMAPPING SIZE=2
ENTRY 1:
class: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletInput
xsd_type: ['http://com/freddiemac/ImportLoan/FileUploadHttpsStreamClient/WS_1/i
mportLoanSubmitStream']:lcl0:__callServletInput
ser: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletInputCodec@7eb366
deser: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletInputCodec@33f0de
ENTRY 2:
class: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletOutput
xsd_type: ['http://com/freddiemac/ImportLoan/FileUploadHttpsStreamClient/WS_1/i
mportLoanSubmitStream']:lcl0:__CallServletOutput
ser: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletOutputCodec@ab444
deser: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletOutputCodec@c0f1ec; nested exception is:
.... more
Any suggestions?
Thanks,
Karen
Bruce Stephens <[email protected]> wrote:
Hi Jacob,
From your post it was not clear was working and what was changed. Could
you clarify. Note, for the standalone client app using SSL, you will
need to include webserviceclient+ssl.jar client runtime JAR file,
described in the docs [1].
Thanks,
Bruce
[1]
http://edocs.bea.com/wls/docs81/webserv/security.html#1053203
Jacob Anderson wrote:
I was able to get my HTTPS web service to communicate with my clients,but now
when I try to connect to the web service (type=document), I get thiserror:
[java] 3) testQuoteStubs(com.arrow.arrowsoap.client.QuoteServiceClientTest)
junit.framework.AssertionFailedError: failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
TypeMapping=TYPE
MAPPING SIZE=3
[java] ENTRY 1:
[java] class: java.lang.Object
[java] xsd_type: ['https://www.xxx.com/QuoteService/']:lcl0:ProcessResponse
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
b957ea
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
3aff84
[java] ENTRY 2:
[java] class: java.lang.Object
[java] xsd_type: ['https://www.xxx.com/QuoteService/']:lcl0:Process
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
15d4de6
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
a53de4
[java] ENTRY 3:
[java] class: java.lang.Object
[java] xsd_type: ['http://www.w3.org/2001/XMLSchema']:xsd:anyType
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
827968
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
1f0b7d3
[java] at com.arrow.arrowsoap.client.QuoteServiceClientTest.testQuoteSt
ubs(QuoteServiceClientTest.java:98)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
Attached is the WSDL for the service.
The type-mapping file looks like:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="https://www.xxx.com/QuoteService/"
class-name="java.lang.Object"
type="lcl0:ProcessResponse"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="https://www.xxx.com/QuoteService/"
class-name="java.lang.Object"
type="lcl0:Process"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry class-name="java.lang.Object"
type="xsd:anyType"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
Any ideas?? Am I missing something from my classpath?? I am runningthe tests
using the WL 8.1 ANT installation and using this as my WL classpath(my own jars
are added first in the path and are omitted here):
<pathelement path="${weblogic.home}/lib/webserviceclient.jar"/>
<pathelement path="${weblogic.home}/lib/weblogic_sp.jar"/>
<pathelement path="${weblogic.home}/lib/weblogic.jar"/>
Thanks
-- jake
Name: QuoteService.wsdl
QuoteService.wsdl Type: ACT Project (text/xml)
Encoding: base64 -
SevletContextImpl not serializable exception when one cluster is restarted.
Hello,
I am using WLS 5.1 SP8 with apache plug-in and in-memory session
replication. There is one proxy server and two cluster: A and B. I started
cluster A and B together and each cluster would "see" each other. I shut
down cluster A and my session will continue working fine on cluster B.
However, when I restart cluster A, I get the the following stack trace from
cluster B:
Mon Apr 02 12:04:56 PDT 2001:<I> <Cluster> Adding server
6345049800752707933S172
.17.17.77:[80,80,443,443,80,-1] to cluster view
Mon Apr 02 12:04:57 PDT 2001:<E> <Kernel> ExecuteRequest failed.
java.io.NotSerializableException:
weblogic.servlet.internal.ServletContextImpl
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at
java.io.ObjectStreamException.<init>(ObjectStreamException.java:29)
at
java.io.NotSerializableException.<init>(NotSerializableException.java
:31)
at java.io.ObjectOutputStream.outputObject(Compiled Code)
at java.io.ObjectOutputStream.writeObject(Compiled Code)
at java.io.ObjectOutputStream.outputClassFields(Compiled Code)
at java.io.ObjectOutputStream.defaultWriteObject(Compiled Code)
at java.io.ObjectOutputStream.outputObject(Compiled Code)
at java.io.ObjectOutputStream.writeObject(Compiled Code)
at java.util.Hashtable.writeObject(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at java.io.ObjectOutputStream.invokeObjectWriter(Compiled Code)
at java.io.ObjectOutputStream.outputObject(Compiled Code)
at java.io.ObjectOutputStream.writeObject(Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(Compiled Code)
at
weblogic.servlet.internal.session.ReplicatedSession.writeExternal(Replicated
Session.java:74)
at
weblogic.common.internal.WLObjectOutputStreamBase.writePublicSerializable(Co
mpiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectBody(Compiled
Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(Compiled Code)
at
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(Compi
at
weblogic.rmi.extensions.AbstractOutputStream2.writeObject(Compiled Code)
at weblogic.rmi.extensions.AbstractOutputStream.writeObject(Compiled
Code)
at
weblogic.cluster.replication.ReplicationManager_WLStub.create(ReplicationMan
ager_WLStub.java:86)
at
weblogic.cluster.replication.ReplicationManager.createSecondary(Compiled
Code)
at
weblogic.cluster.replication.ReplicationManager.checkHosts(Compiled Code)
at
weblogic.cluster.replication.ReplicationManager.clusterMembersChanged(Replic
ationManager.java:582)
at
weblogic.cluster.MemberStash$ClusterMembersChangeDeliverer.execute(MemberSta
sh.java:207)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
--------------- nested within: ------------------
weblogic.rmi.MarshalException: error marshalling arguments
- with nested exception:
[java.io.NotSerializableException:
weblogic.servlet.internal.ServletContextImpl]
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at weblogic.common.T3Exception.<init>(T3Exception.java:47)
at weblogic.rmi.RemoteException.<init>(RemoteException.java:41)
at weblogic.rmi.MarshalException.<init>(MarshalException.java:31)
at
weblogic.cluster.replication.ReplicationManager_WLStub.create(ReplicationMan
ager_WLStub.java:90)
at
weblogic.cluster.replication.ReplicationManager.createSecondary(Compiled
Code)
at
weblogic.cluster.replication.ReplicationManager.checkHosts(Compiled Code)
at
weblogic.cluster.replication.ReplicationManager.clusterMembersChanged(Replic
ationManager.java:582)
at
weblogic.cluster.MemberStash$ClusterMembersChangeDeliverer.execute(MemberSta
sh.java:207)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
--------------- nested within: ------------------
weblogic.rmi.extensions.RemoteRuntimeException: Undeclared checked
exception - w
ith nested exception:
[weblogic.rmi.MarshalException: error marshalling arguments
- with nested exception:
[java.io.NotSerializableException:
weblogic.servlet.internal.ServletContextImpl]
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(RuntimeException.java:47)
at
weblogic.utils.NestedRuntimeException.<init>(NestedRuntimeException.java:23)
at
weblogic.rmi.extensions.RemoteRuntimeException.<init>(RemoteRuntimeException
.java:22)
at
weblogic.cluster.replication.ReplicationManager_WLStub.create(ReplicationMan
ager_WLStub.java:108)
at
weblogic.cluster.replication.ReplicationManager.createSecondary(Compiled
Code)
at
weblogic.cluster.replication.ReplicationManager.checkHosts(Compiled Code)
at
weblogic.cluster.replication.ReplicationManager.clusterMembersChanged(Replic
ationManager.java:582)
at
weblogic.cluster.MemberStash$ClusterMembersChangeDeliverer.execute(MemberSta
sh.java:207)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
I looked everywhere in our code and we don't store ServletContext object
anywhere in the session level..Can someone give me some hints as to what the
problem is?
Thanks for your help in advance.
Vincent
You probably have a non serializable object in your session.
You can have only serializable data in the session.
Cheers,
-- Prasad
Vincent Shek wrote:
> Hello,
>
> I am using WLS 5.1 SP8 with apache plug-in and in-memory session
> replication. There is one proxy server and two cluster: A and B. I started
> cluster A and B together and each cluster would "see" each other. I shut
> down cluster A and my session will continue working fine on cluster B.
> However, when I restart cluster A, I get the the following stack trace from
> cluster B:
>
> Mon Apr 02 12:04:56 PDT 2001:<I> <Cluster> Adding server
> 6345049800752707933S172
> .17.17.77:[80,80,443,443,80,-1] to cluster view
> Mon Apr 02 12:04:57 PDT 2001:<E> <Kernel> ExecuteRequest failed.
> java.io.NotSerializableException:
> weblogic.servlet.internal.ServletContextImpl
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at java.io.IOException.<init>(Compiled Code)
> at
> java.io.ObjectStreamException.<init>(ObjectStreamException.java:29)
> at
> java.io.NotSerializableException.<init>(NotSerializableException.java
> :31)
> at java.io.ObjectOutputStream.outputObject(Compiled Code)
> at java.io.ObjectOutputStream.writeObject(Compiled Code)
> at java.io.ObjectOutputStream.outputClassFields(Compiled Code)
> at java.io.ObjectOutputStream.defaultWriteObject(Compiled Code)
> at java.io.ObjectOutputStream.outputObject(Compiled Code)
> at java.io.ObjectOutputStream.writeObject(Compiled Code)
> at java.util.Hashtable.writeObject(Compiled Code)
> at java.lang.reflect.Method.invoke(Native Method)
> at java.lang.reflect.Method.invoke(Compiled Code)
> at java.io.ObjectOutputStream.invokeObjectWriter(Compiled Code)
> at java.io.ObjectOutputStream.outputObject(Compiled Code)
> at java.io.ObjectOutputStream.writeObject(Compiled Code)
> at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObject(Compiled Code)
> at
> weblogic.servlet.internal.session.ReplicatedSession.writeExternal(Replicated
> Session.java:74)
> at
> weblogic.common.internal.WLObjectOutputStreamBase.writePublicSerializable(Co
> mpiled Code)
> at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObjectBody(Compiled
> Code)
> at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObject(Compiled Code)
> at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(Compi
> at
> weblogic.rmi.extensions.AbstractOutputStream2.writeObject(Compiled Code)
> at weblogic.rmi.extensions.AbstractOutputStream.writeObject(Compiled
> Code)
> at
> weblogic.cluster.replication.ReplicationManager_WLStub.create(ReplicationMan
> ager_WLStub.java:86)
> at
> weblogic.cluster.replication.ReplicationManager.createSecondary(Compiled
> Code)
> at
> weblogic.cluster.replication.ReplicationManager.checkHosts(Compiled Code)
> at
> weblogic.cluster.replication.ReplicationManager.clusterMembersChanged(Replic
> ationManager.java:582)
> at
> weblogic.cluster.MemberStash$ClusterMembersChangeDeliverer.execute(MemberSta
> sh.java:207)
> at weblogic.kernel.ExecuteThread.run(Compiled Code)
>
> --------------- nested within: ------------------
> weblogic.rmi.MarshalException: error marshalling arguments
> - with nested exception:
> [java.io.NotSerializableException:
> weblogic.servlet.internal.ServletContextImpl]
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at java.io.IOException.<init>(Compiled Code)
> at weblogic.common.T3Exception.<init>(T3Exception.java:47)
> at weblogic.rmi.RemoteException.<init>(RemoteException.java:41)
> at weblogic.rmi.MarshalException.<init>(MarshalException.java:31)
> at
> weblogic.cluster.replication.ReplicationManager_WLStub.create(ReplicationMan
> ager_WLStub.java:90)
> at
> weblogic.cluster.replication.ReplicationManager.createSecondary(Compiled
> Code)
> at
> weblogic.cluster.replication.ReplicationManager.checkHosts(Compiled Code)
> at
> weblogic.cluster.replication.ReplicationManager.clusterMembersChanged(Replic
> ationManager.java:582)
> at
> weblogic.cluster.MemberStash$ClusterMembersChangeDeliverer.execute(MemberSta
> sh.java:207)
> at weblogic.kernel.ExecuteThread.run(Compiled Code)
> --------------- nested within: ------------------
> weblogic.rmi.extensions.RemoteRuntimeException: Undeclared checked
> exception - w
> ith nested exception:
> [weblogic.rmi.MarshalException: error marshalling arguments
> - with nested exception:
> [java.io.NotSerializableException:
> weblogic.servlet.internal.ServletContextImpl]
> ]
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at java.lang.RuntimeException.<init>(RuntimeException.java:47)
> at
> weblogic.utils.NestedRuntimeException.<init>(NestedRuntimeException.java:23)
> at
> weblogic.rmi.extensions.RemoteRuntimeException.<init>(RemoteRuntimeException
> .java:22)
> at
> weblogic.cluster.replication.ReplicationManager_WLStub.create(ReplicationMan
> ager_WLStub.java:108)
> at
> weblogic.cluster.replication.ReplicationManager.createSecondary(Compiled
> Code)
> at
> weblogic.cluster.replication.ReplicationManager.checkHosts(Compiled Code)
> at
> weblogic.cluster.replication.ReplicationManager.clusterMembersChanged(Replic
> ationManager.java:582)
> at
> weblogic.cluster.MemberStash$ClusterMembersChangeDeliverer.execute(MemberSta
> sh.java:207)
> at weblogic.kernel.ExecuteThread.run(Compiled Code)
>
> I looked everywhere in our code and we don't store ServletContext object
> anywhere in the session level..Can someone give me some hints as to what the
> problem is?
>
> Thanks for your help in advance.
>
> Vincent
-
Hi:
I have a JSF application that works fine.
I do have in the Tomcat logs the following exception
WARNING: Cannot serialize session attribute SessionBean1 for session 92B0E4668AA791BD626F99DB1DC5A841
java.io.NotSerializableException: com.motorola.mmu.ParmItemThis ParmItem is a simple class that has getters and Setters for an simple Item object.
1. Why is JSF trying to serialize this?
2. Should I add the Serializable interface to this class
3. Is there a good example to this?
ThanksApparently you've configured Tomcat so that it persists sessions on disk (e.g. for clustering or for recovering on restart). In this case all session attributes should be serializable. Just let it implement java.io.Serializable. Read its API document for more details and how to use serialVersionUID: http://java.sun.com/javase/6/docs/api/java/io/Serializable.html Or if you don't need clustering or recovering on restart, then disable it in the Tomcat configuration.
-
Serialization exception and generics
Hi.
I am using a java bean that sends a Map<Integer> from a server to the client. However, I get an exception when deserializing on the client side. Could this exception come from the fact that the client side tries to deserialize this as just a Map, without generics?
ThanksCould this exception come from the fact that the client side tries to deserialize this as just a Map, without generics?Most likely no, but of course I'm just guessing since you didn't post the stack trace.
Maybe you are looking for
-
Credit Card Failed - Invoice Number Not Found
Hello, I have set up PayPal payments pro for my payment gateway and everything seemed to set up fine. When I try to place an order on the site it gives me an error stating that "Invoice Number Not Found" as shown in this screenshot. No notification
-
HT3296 I dont have Original remote and reset apple tv
I dont have Original remote and reset apple tv how can I connect to settings now? The App dont see it after it set up with my ID
-
Hello, My Ipad 2 suddenly is requesting I enter a passcode which I never had and dont have. I have followed the instruction to connect to Itunes up to the point of Restoring the device. What do I do to restore the device and why did a passcode reques
-
Unable to Insert record In forms: error -ORA-01779 :cannot modify a column
Hi, I have created one form with two block. Block-1 : Based on View Block-2 : Based on table There is is relationship between Block-1 and Block-2. Block-1 is populating from LOV. I just need to insert /update record Block-2 based on data from Block-1
-
LOV button navigation in multi row block
We have two fields in a multirow block, Role Type and Parent Role Type(which is a LOV button). When the current row selector is on a Role Type row all Parent Role Type LOV buttons for all the rows change only the current selected row. With Designer w