You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Krishna Vemuri <kr...@electroneconomy.com> on 2001/07/22 01:37:05 UTC
backward compatiblity
Hey Fellows,
>
> We are having an issue with Xerces versions 1.3 and above in our
> application layer, One of the pieces of our application is to convert
> Java Objects to
> their XML representations, while we were using Xerces-1.2.3 jar, the
> converions from a java object to its equivalent representation in XML
> were taking place perfectly, we upgraded to Xerces 1.3/1.3.1 we got a
> NullPointerException, I tried using Xerces 1.4 same exception was
> thrown again, when I rolled back to Xerces 1.2.3 jar, there were no
> exceptions anymore everything went absolutely fine.I am copying the
> exception that took place and also am attaching the Class in which
> this exception takes place.
>
> From the System println's it can be seen that, that the NodeList that
> we are trying to get has a length of '1' but the node within the
> NodeList is "Null". This is problem is making us to have the older
> Xerces jar(Version 1.2.3) within our application layer and any other
> third party tool that we use, which is in sync with the newer versions
> of Xerces creates a version conflict for our application layer.
>
> I would really appreciate any help in resolving this backward
> compatibility issue.
>
>
> thanks,
> Krishna
>
>
> %%%%%%%%%%%%%% EXCEPTION STACK TRACE
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > </CustomerOrder>, submitordercommerceflow, TMOrder, 2] . .
> .ID:P106002
> > DEBUG 2001-6-13 22:57:3:163 . . .electron/10.1.1.50 OpenVan version
> > RC3.2 . . .invoked by
> > electroneconomy.openvan.commerceflow.converter.XMLConverter . .
> > .@@@@@@@@ XMLConverter Initialized @@@@@@@@@@ . . .ID:P106002
> > DEBUG 2001-6-13 22:57:3:164 . . .electron/10.1.1.50 OpenVan version
> > RC3.2 . . .invoked by
> > electroneconomy.openvan.commerceflow.converter.XMLConverter . . .the
> > JNDI Bind Name is : ee.openvan.openvan.conversionstrategy.TMOrder .
> .
> > .ID:P106002
> > DEBUG 2001-6-13 22:57:3:185 . . .electron/10.1.1.50 OpenVan version
> > RC3.2 . . .invoked by
> > electroneconomy.common.openvan.repository.JNDIDOMRepository . . .Got
> > new instance of resource 'ee.peerproperties.dom.template.order'from
> > JNDI . . .ID:P106002
> > DEBUG 2001-6-13 22:57:3:165 . . .electron/10.1.1.50 OpenVan version
> > RC3.2 . . .invoked by
> > electroneconomy.common.openvan.repository.JNDIDOMRepository . .
> > .Cached instance of object ee.peerproperties.dom.template.order does
> > not exist, will get new one . . .ID:P106002
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : [#text: ] J : 0
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : [#text: submitordercommerceflow] J : 0
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : [#text: ] J : 0
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : [#text: ] J : 0
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : [#text: genericwarehouse] J : 0
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : [#text: openvan] J : 0
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : [#text: ] J : 0
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : [#text: ] J : 0
> > @@@@@@ #### Lenght is : 1
> > @@@@@@ #### ValueNode is : null J : 0
> > java.lang.NullPointerException
> > at
> > com.electroneconomy.common.util.DOMtoXML.getXML(DOMtoXML.java:66)
> > at
> > com.electroneconomy.common.util.DOMtoXML.getXML(DOMtoXML.java:94)
> > at
> > com.electroneconomy.common.util.DOMtoXML.getXML(DOMtoXML.java:94)
> > at
> > com.electroneconomy.common.util.DOMtoXML.getXML(DOMtoXML.java:31)
> > at
> >
> electroneconomy.commerceflow.conversionstrategy.SubmitOrderXMLConversi
> > onStrategy.convertBOtoXML(SubmitOrderXMLConversionStrategy.java:860)
> > at
> >
> electroneconomy.openvan.commerceflow.converter.XMLConverter.toXML(XMLC
> > onverter.java:500)
> > at
> >
> electroneconomy.actions.openvan.common.SendMessageA.action(SendMessage
> > A.java:180)
> > at
> > electroneconomy.openvan.actions.Action.execute(Action.java:146)
> > at
> >
> electroneconomy.openvan.actions.ActionRepository.executeAction(ActionR
> > epository.java:99)
> > at
> >
> electroneconomy.openvan.processes.Process.executeLocalAction(Process.j
> > ava:402)
> > at
> >
> electroneconomy.processes.openvan.MsgWarehouseCaptP.process(MsgWarehou
> > seCaptP.java:49)
> > at
> > electroneconomy.openvan.processes.Process.execute(Process.java:494)
> > at
> >
> electroneconomy.openvan.commerceflow.CommerceFlow.executeNode(Commerce
> > Flow.java:439)
> > at
> >
> electroneconomy.openvan.commerceflow.CommerceFlow.execute(CommerceFlow
> > .java:338)
> > at
> >
> electroneconomy.openvan.commerceflow.CommerceFlow.executeFlow(Commerce
> > Flow.java:126)
> > at
> >
> electroneconomy.openvan.commerceflow.CommerceFlowInitiator.executeComm
> > erceFlow(CommerceFlowInitiator.java:193)
> > at
> >
> electroneconomy.openvan.commerceflow.CommerceFlowInitiator.initiateCom
> > merceFlow(CommerceFlowInitiator.java:119)
> > at
> >
> electroneconomy.common.GenericReceiver.onMessage(GenericReceiver.java:
> > 32)
> > at
> >
> electroneconomy.common.OPMessageConsumer.run(OPMessageConsumer.java:10
> > 8)
> > at java.lang.Thread.run(Thread.java:479)
> > electroneconomy.businessdataobject.MessagingNotSupportedException:
> > Passed in BusinessDataObject is not messageable BusinessDataObject
> > java.lang.NullPointerException
> > at java.lang.Throwable.fillInStackTrace(Native Method)
> > at java.lang.Throwable.<init>(Throwable.java:94)
> > at java.lang.Exception.<init>(Exception.java:42)
> > at
> >
> electroneconomy.businessdataobject.MessagingNotSupportedException.<ini
> > t>(MessagingNotSupportedException.java:47)
> > at
> >
> electroneconomy.openvan.commerceflow.converter.XMLConverter.toXML(XMLC
> > onverter.java:505)
> > at
> >
> electroneconomy.actions.openvan.common.SendMessageA.action(SendMessage
> > A.java:180)
> > at
> > electroneconomy.openvan.actions.Action.execute(Action.java:146)
> > at
> >
> electroneconomy.openvan.actions.ActionRepository.executeAction(ActionR
> > epository.java:99)
> > at
> >
> electroneconomy.openvan.processes.Process.executeLocalAction(Process.j
> > ava:402)
> > at
> >
> electroneconomy.processes.openvan.MsgWarehouseCaptP.process(MsgWarehou
> > seCaptP.java:49)
> > at
> > electroneconomy.openvan.processes.Process.execute(Process.java:494)
> >
>
> <<DOMtoXML.txt>>
>
>
> Krishna Vemuri
> Software Engineer
> Electron Economy, Inc.
> www.electroneconomy.com
> kvemuri@electroneconomy.com
> 408.873.3270 x3155
> 408.873.3279
>