[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: Factory.Parse issue
From:       "Green, Jason M." <jason.green () ngc ! com>
Date:       2006-04-04 12:18:02
Message-ID: 985B3003DEF9F04D9D628C62635405F958870C () XMBVAD01 ! northgrum ! com
[Download RAW message or body]

Actually,
it turns out that it was a classpath issue.  The version of the jar that
i said i was using (the scomp generated one) was not the same name as
the one i had in there.  I was able to see the output that lead me to
that.  Now it works fine.
Thanks a ton,
Jason

________________________________

From: Lawrence Jones [mailto:ljones@bea.com] 
Sent: Monday, April 03, 2006 4:38 PM
To: dev@xmlbeans.apache.org
Subject: RE: Factory.Parse issue



Hi Jason

 

I would guess that it probably is a classpath issue - you need xbean.jar
and jsr173_1.0_api.jar on your classpath as well as any jar you generate
using scomp. How are you calling XmlBeans within your program? What
classpath are you passing it?

 

Also could you try running it from the command line and see what you
get? Then we'd be able to see what the error message is.

 

Finally there's another thing you can do.

 

Call XXXX.Factory.parse() passing an XmlOptions object. When setting up
the XmlOptions object do something like the following (in addition to
any other settings you already pass):

 

XmlOptions opts = new XmlOptions();

ArrayList errs = new ArrayList();

opts.setErrorListener(errs);

 

....parse(your_input_stream, opts);

 

for (int i=0; i<errs.size(); i++)

{

    XmlError err = (XmlError) errs.get(i);

    System.out.println("Error " + i + " = " + err.getMessage());

}

 

Cheers,

 

Lawrence

 

________________________________

From: Green, Jason M. [mailto:jason.green@ngc.com] 
Sent: Monday, April 03, 2006 1:08 PM
To: dev@xmlbeans.apache.org
Subject: RE: Factory.Parse issue

 

Lawrence,

   We run our program via another program.  We give the main program the
location of one of our classes and it creates an instance of it. This
instance is actually a JPanel that gets added to a tabbedPane contained
in the main program.  That is basically how our program runs.  Let me
know if that is confusing.  

When i say it craps out...

Since we are actually running it through this other program we can't
really see any output, but we do create a file and output all of the
execution to it.  So as we follow our code, the first instance we come
to where it tries to start parsing the root element of the document, it
stops running.  I.e, the output we have after that line is never sent to
the outfile.  We have tries and catches for the code, but execution is
never sent there.  So, basically, we think it is crashing at that first
attempt to parse.  We're leaning towards a classpath issue (such as the
main program having some xmlparser that is defined before ours and it
tries to use that instead of xmlbeans).

Jason

 

________________________________

From: Lawrence Jones [mailto:ljones@bea.com] 
Sent: Monday, April 03, 2006 4:01 PM
To: dev@xmlbeans.apache.org
Subject: RE: Factory.Parse issue

Hi Jason

 

When you say the program "craps out", what exactly do you see? And what
do you means by "running the jar"? Do you mean running a java process
from the command line with the jar on the classpath?

 

Cheers,

 

Lawrence

 

________________________________

From: Green, Jason M. [mailto:jason.green@ngc.com] 
Sent: Monday, April 03, 2006 12:27 PM
To: dev@xmlbeans.apache.org
Subject: Factory.Parse issue

 

Hey everyone. 
I'm having an odd issue with xmlbeans.  When using it while developing
in my IDE, it seems to work fine.  When actually running the jar (at
least along those lines), the program craps out on the Factory.parse
method.  We pass in a ByteArrayInputStream, and like I say, it works
like a charm when running from our IDE.  The big problem is, there is
absolutely no output to our files or anything saying why.  We created
our jar with -debug, but don't know where the output is thrown to.  We
have traced it down to here but can't track it past here:

This is in the PlanListDocumentDocument1$Factory.java file 
public static PlanListDocumentDocument1 parse(InputStream inputstream,
XmlOptions xmloptions) 
        throws XmlException, IOException 
    { 
        return
(PlanListDocumentDocument1)XmlBeans.getContextTypeLoader().parse(inputst
ream, PlanListDocumentDocument1.type, xmloptions);

    } 

Here is the line of code that we call: 
ResponseDocumentDocument1 response =
ResponseDocumentDocument1.Factory.parse(new
ByteArrayInputStream(result)); 

So basically, here's my main question.  If you set the debug, is the
debug just sent to standard out, or can it be logged?  

Sorry for how much this post jumps around.  We're kinda frazzled here. 

Jason 

_______________________________________________________________________
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.
_______________________________________________________________________
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.

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD><TITLE>Factory.Parse issue</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
	BEHAVIOR: url(#default#VML)
}
o\:* {
	BEHAVIOR: url(#default#VML)
}
w\:* {
	BEHAVIOR: url(#default#VML)
}
.shape {
	BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType downloadurl="http://www.5iantlavalamp.com/" 
name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType \
 downloadurl="http://www.5iamas-microsoft-com:office:smarttags" name="City" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if \
!mso]> <STYLE>st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
	font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
P {
	FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New \
Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto }
PRE {
	FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle18 {
	COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle20 {
	COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=187191712-04042006><FONT face=Arial 
color=#0000ff size=2>Actually,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=187191712-04042006><FONT face=Arial 
color=#0000ff size=2>it turns out that it was a classpath issue.&nbsp; The 
version of the jar that i said i was using (the scomp generated one) was not the 
same name as the one i had in there.&nbsp; I was able to see the output that 
lead me to that.&nbsp; Now it works fine.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=187191712-04042006><FONT face=Arial 
color=#0000ff size=2>Thanks a ton,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=187191712-04042006><FONT face=Arial 
color=#0000ff size=2>Jason</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Lawrence Jones [mailto:ljones@bea.com] 
<BR><B>Sent:</B> Monday, April 03, 2006 4:38 PM<BR><B>To:</B> 
dev@xmlbeans.apache.org<BR><B>Subject:</B> RE: Factory.Parse 
issue<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi 
Jason<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I \
would guess that it  probably is a classpath issue &#8211; you need xbean.jar and \
jsr173_1.0_api.jar on  your classpath as well as any jar you generate using scomp. \
How are you calling  XmlBeans within your program? What classpath are you passing 
it?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">Also could you try  running it from the command line and see what you get? \
Then we&#8217;d be able to see  what the error message \
is.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">Finally there&#8217;s another  thing you can do.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">Call  XXXX.Factory.parse() passing an XmlOptions object. When setting up the 
XmlOptions object do something like the following (in addition to any other 
settings you already pass):<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">XmlOptions opts = new  XmlOptions();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">ArrayList errs = new 
ArrayList();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">opts.setErrorListener(errs);<o:p></o:p></SPAN></FONT></P> <P \
class=MsoNormal><FONT face=Arial color=navy size=2><SPAN  style="FONT-SIZE: 10pt; \
COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P \
class=MsoNormal><FONT face=Arial color=navy size=2><SPAN  style="FONT-SIZE: 10pt; \
COLOR: navy; FONT-FAMILY: Arial">&#8230;.parse(your_input_stream,  \
opts);<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">for \
(int i=0;  i&lt;errs.size(); i++)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">{<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;  XmlError err = (XmlError) \
errs.get(i);<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;  System.out.println(&#8220;Error &#8221; + i + &#8220; = \
&#8221; +  err.getMessage());<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">}<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">Cheers,<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><st1:City 
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: \
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"  tabIndex=0 \
w:st="on"><st1:place  style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: \
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"  tabIndex=0 \
w:st="on"><FONT face=Arial color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: \
navy; FONT-FAMILY: Arial">Lawrence</SPAN></FONT></st1:place></st1:City><FONT  \
face=Arial color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <DIV 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; \
PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: \
0in; BORDER-BOTTOM: medium none"> <DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: \
Tahoma">From:</SPAN></FONT></B><FONT  face=Tahoma size=2><SPAN style="FONT-SIZE: \
10pt; FONT-FAMILY: Tahoma"> Green,  Jason M. [mailto:jason.green@ngc.com] \
<BR><B><SPAN  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, April 03, 2006 1:08 
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 
dev@xmlbeans.apache.org<BR><B><SPAN 
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: Factory.Parse 
issue</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><st1:City 
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: \
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"  tabIndex=0 \
w:st="on"><st1:place  style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: \
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"  tabIndex=0 \
w:st="on"><FONT face=Arial color=blue size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: \
blue; FONT-FAMILY: Arial">Lawrence</SPAN></FONT></st1:place></st1:City><FONT  \
face=Arial color=blue size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: \
Arial">,</SPAN></FONT><o:p></o:p></P> <P class=MsoNormal><FONT face=Arial color=blue \
size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">&nbsp;&nbsp; \
We run our  program via another program.&nbsp; We give the main program the location \
of one  of our classes and it creates an instance of it. This instance is actually a 
JPanel that gets added to a tabbedPane contained in the main program.&nbsp; That 
is basically how our program runs.&nbsp; Let me know if that is confusing.&nbsp; 
</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">When i say it craps 
out...</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Since we are actually 
running it through this other program we can't really see any output, but we do 
create a file and output all of the execution to it.&nbsp; So as we follow our 
code, the first instance we come to where it tries to start parsing the root 
element of the document, it stops running.&nbsp; I.e, the output we have after 
that line is never sent to the outfile.&nbsp; We have tries and catches for the 
code, but execution is never sent there.&nbsp; So, basically, we think it is 
crashing at that first attempt to parse.&nbsp; We're leaning towards a classpath 
issue (such as the main program having some xmlparser that is defined before 
ours and it tries to use that instead of xmlbeans).</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: \
Arial">Jason</SPAN></FONT><o:p></o:p></P> <P class=MsoNormal><FONT face="Times New \
Roman" size=3><SPAN  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: \
Tahoma">From:</SPAN></FONT></B><FONT  face=Tahoma size=2><SPAN style="FONT-SIZE: \
10pt; FONT-FAMILY: Tahoma"> Lawrence  Jones [mailto:ljones@bea.com] <BR><B><SPAN 
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, April 03, 2006 4:01 
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 
dev@xmlbeans.apache.org<BR><B><SPAN 
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: Factory.Parse 
issue</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi 
Jason<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">When you say the  program &#8220;craps out&#8221;, what exactly do you see? \
And what do you means by &#8220;running  the jar&#8221;? Do you mean running a java \
process from the command line with the jar  on the \
classpath?<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">Cheers,<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><st1:place 
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: \
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"  tabIndex=0 \
w:st="on"><st1:City  style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: \
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"  tabIndex=0 \
w:st="on"><FONT face=Arial color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: \
navy; FONT-FAMILY: Arial">Lawrence</SPAN></FONT></st1:City></st1:place><FONT  \
face=Arial color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <DIV 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; \
PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: \
0in; BORDER-BOTTOM: medium none"> <DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: \
Tahoma">From:</SPAN></FONT></B><FONT  face=Tahoma size=2><SPAN style="FONT-SIZE: \
10pt; FONT-FAMILY: Tahoma"> Green,  Jason M. [mailto:jason.green@ngc.com] \
<BR><B><SPAN  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, April 03, 2006 12:27 \
 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 
dev@xmlbeans.apache.org<BR><B><SPAN 
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Factory.Parse 
issue</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hey 
everyone.</SPAN></FONT> <BR><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I'm having an odd issue with 
xmlbeans.&nbsp; When using it while developing in my IDE, it seems to work 
fine.&nbsp; When actually running the jar (at least along those lines), the 
program craps out on the Factory.parse method.&nbsp; We pass in a 
ByteArrayInputStream, and like I say, it works like a charm when running from 
our IDE.&nbsp; The big problem is, there is absolutely no output to our files or 
anything saying why.&nbsp; We created our jar with -debug, but don't know where 
the output is thrown to.&nbsp; We have traced it down to here but can't track it 
past here:</SPAN></FONT><o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">This is in the 
PlanListDocumentDocument1$Factory.java file</SPAN></FONT> <BR><FONT face=Arial 
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">public static 
PlanListDocumentDocument1 parse(InputStream inputstream, XmlOptions 
xmloptions)</SPAN></FONT> <BR><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  throws XmlException, \
IOException</SPAN></FONT> <BR><FONT face=Arial size=2><SPAN  style="FONT-SIZE: 10pt; \
FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; {</SPAN></FONT>  <BR><FONT face=Arial \
size=2><SPAN  style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  return 
(PlanListDocumentDocument1)XmlBeans.getContextTypeLoader().parse(inputstream, 
PlanListDocumentDocument1.type, xmloptions);</SPAN></FONT><o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; }</SPAN></FONT> 
<o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Here is the line of code that we 
call:</SPAN></FONT> <BR><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">ResponseDocumentDocument1 response = 
ResponseDocumentDocument1.Factory.parse(new 
ByteArrayInputStream(result));</SPAN></FONT> <o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">So 
basically, here's my main question.&nbsp; If you set the debug, is the debug 
just sent to standard out, or can it be logged?&nbsp; 
</SPAN></FONT><o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Sorry for how much this post jumps 
around.&nbsp; We're kinda frazzled here.</SPAN></FONT> <o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Jason</SPAN></FONT> 
<o:p></o:p></P></DIV><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: \
10pt">_______________________________________________________________________<o:p></o:p></SPAN></FONT></PRE><PRE><FONT \
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">Notice:&nbsp; This email \
message, together with any attachments, may \
contain<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN \
style="FONT-SIZE: 10pt">information&nbsp; of&nbsp; BEA Systems,&nbsp; Inc.,&nbsp; its \
subsidiaries&nbsp; and&nbsp; affiliated<o:p></o:p></SPAN></FONT></PRE><PRE><FONT \
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">entities,&nbsp; that may be \
confidential,&nbsp; proprietary,&nbsp; copyrighted&nbsp; \
and/or<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN \
style="FONT-SIZE: 10pt">legally privileged, and is intended solely for the use of the \
individual<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN \
style="FONT-SIZE: 10pt">or entity named in this message. If you are not the intended \
recipient,<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN \
style="FONT-SIZE: 10pt">and have received this message in error, please immediately \
return this<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN \
style="FONT-SIZE: 10pt">by email and then delete \
it.<o:p></o:p></SPAN></FONT></PRE></DIV></DIV><PRE>_______________________________________________________________________
                
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.
</PRE></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic