Hi Graham

 

XmlBeans generates XmlObjects with getters and setters that sit on top of an XML store which contains XML in a token based form (this is different from most approaches where the values returned by the getters are stored directly in the object as instance variables).

 

An XmlValueDisconnectedException is a RuntimeException which is thrown when the generated XmlObject has become disconnected from its underlying store. This can happen in a number of different scenarios – usually involving copying data from one place to another (and note XmlObject setters perform a copy operation underneath the covers).

 

As for all exceptions the first thing I would do is an:

 

e.printStackTrace()

 

in the calling code. This will give you an idea of where the exception is being thrown from.

 

If you can get hold of this stack trace and post both it and some sample calling code along with the schema from which you generated your objects then we might be able to tell you more about why you are getting the exception. Note – the history of what you have done with that particular XmlObject in the past – not just the single line that caused the exception will be important in this case as we need to spot when it became disconnected).

 

Cheers,

 

Lawrence

 


From: Yana Kadiyska [mailto:[EMAIL PROTECTED]
Sent: Monday, February 20, 2006 8:22 PM
To: [email protected]
Subject: Re: XmlValueDisconnectedException: what does it mean?

 

I can't tell without any code but there is a mention of this exception in http://xmlbeans.apache.org/docs/2.0.0/reference/index.html

The exception is usually thrown if you're using an object which has been invalidated and should not be used...but it's hard to tell in general

Graham Leggett <[EMAIL PROTECTED]> wrote:

Hi all,

After refactoring some code that references xmlbeans generated code, I am
now getting a XmlValueDisconnectedException thrown.

The exception is undocumented, and its name doesn't give a clue as to the
error.

Does anyone know what this error is trying to tell me?

Regards,
Graham
--


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


Yahoo! Mail
Use Photomail to share photos without annoying attachments.

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Reply via email to