You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ollier John <jo...@capula.co.uk> on 2003/05/21 17:30:48 UTC
oracle DOM object in session
This is rather vague problem, but I am hoping that someone will be able to
point me in the right direction.
I am using Tomcat4.0 on Windows 2000.
When you visit the 1st page on our web site, a Journey object is created
with an instance variable "doc" which is an Oracle XDBDocument (Oracle's
implementation of org.w3c.dom.Document) extracted from Oracle 9.2.0.3 using
JDBC.
The Journey object is attached to the HttpSession object.
When you go to the 2nd page, the servlet takes the Journey object from the
Session and performs some manipulation on "doc".
Sometimes, but not always, I get an error like the one shown below. But the
exception is thrown in different methods one different occasions, although
it is always one of Oracle's native methods which underlie a DOM method.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xa3d7d6c
Function name=Java_oracle_xdb_dom_XDBNode_getFirstChildNative
Library=C:\oracle\ora90\bin\orageneric9.dll
Current Java thread:
at oracle.xdb.dom.XDBNode.getFirstChildNative(Native Method)
at oracle.xdb.dom.XDBNode.getFirstChild(XDBNode.java:337)
If the servlet creates a new Journey from the database when the 2nd page is
loaded rather than taking it from the session, the error does not occur.
If the same methods are invoked through the "main" method of the Journey
class, there is no error.
The same code works OK when the "doc" is an Xindice Document extracted from
Xindice.
Does anyone have any ideas? Could it be that something is being garbage
collected when it shouldn't be?
Thanks in advance.
John
**********************************************************************
This email is from Capula Ltd (Registered No 00953504 England).
Please visit our Website at www.capula.co.uk
Capula - doing IT for you
LEGAL NOTICE
The information contained in this e-mail and any files transmitted with it are
confidential, may be privileged and are intended solely for the use of the
individual or entity to whom they are addressed. If you are not the intended
recipient any disclosure, copying, retransmission, distribution, dissemination,
action taken or omitted to be taken in reliance upon this e-mail is strictly
prohibited and may be unlawful. If you have received this communication in error
please notify the sender by e-mail or by telephone on +44(0)1785 827000, delete
it from your system and destroy any copies of it.
Furthermore, the content of this e-mail is the personal view of the sender and
does not necessarily represent the advice, views or opinion of Capula Ltd. In
particular (but not by way of limitation) Capula Ltd disclaims all responsibility
and accepts no liability for any e-mails that are defamatory, offensive, racist
or in any other way are in breach of any third party's rights, including breach
of confidence, privacy or other rights.
Please note that users should have no expectation that any information they
transmit or receive over Capula Ltd facilities or stored on Capula Ltd computers
is or will remain private, and Capula Ltd reserves the right to review these
records. Capula Ltd reserves the right to intercept, monitor and record
this e-mail.
Please note that e-mails from Capula Ltd pass through a virus checker but
e-mails can be intercepted or affected by different viruses. No warranties
or assurance are made in relation to the safety and content of this email and
any attachments and no liability is accepted for any consequences arising
from it. The recipient should ensure that the e-mail and attachments (if any)
are actually virus free.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org