Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » xsdSchema.load() throws 'NullpointerException"! Help!1
xsdSchema.load() throws 'NullpointerException"! Help!1 [message #52439] Mon, 06 September 2004 07:36 Go to next message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
Eclipse installed) but attempting to load a schema throws A
nullpointerException, containg reconcileAttributes() bla bla..

I could not do anything else, even when I try using OpenXSD.jar, same.

Any help colleagues?

Anne
Re: xsdSchema.load() throws 'NullpointerException"! Help!1 [message #52476 is a reply to message #52439] Mon, 06 September 2004 12:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Anne,

Good help is directly proportional to the details you provide. If you
have an exception, and a question about it, you should show the stack
trace. Which jars are you using? Have you included xsd.resources.jar?
Have you looked at the FAQ about your problem? Have you tried (looking
at or running) the sample code in org.eclipse.xsd.test? Maybe you need
to register the resource factory as in the sample.


Anne wrote:

>Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
>Eclipse installed) but attempting to load a schema throws A
>nullpointerException, containg reconcileAttributes() bla bla..
>
>I could not do anything else, even when I try using OpenXSD.jar, same.
>
>Any help colleagues?
>
>Anne
>
>
>
>
>
Re: xsdSchema.load() throws 'NullpointerException"! Help!1 [message #52533 is a reply to message #52476] Tue, 07 September 2004 02:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Merks,

Sorry, and thanks for your thread. Here is the NullpointerException
stackTrace.

java.lang.NullPointerException

at
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

at
org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

at
org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

at
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

at
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

at
org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

at
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

Anne

Ed Merks wrote:

> Anne,

> Good help is directly proportional to the details you provide. If you
> have an exception, and a question about it, you should show the stack
> trace. Which jars are you using? Have you included xsd.resources.jar?
> Have you looked at the FAQ about your problem? Have you tried (looking
> at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> to register the resource factory as in the sample.


> Anne wrote:

> >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> >Eclipse installed) but attempting to load a schema throws A
> >nullpointerException, containg reconcileAttributes() bla bla..
> >
> >I could not do anything else, even when I try using OpenXSD.jar, same.
> >
> >Any help colleagues?
> >
> >Anne
> >
> >
> >
> >
> >
'NullpointerException"! - SOLVED!!! [message #52560 is a reply to message #52533] Tue, 07 September 2004 04:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Hi All,

Now am using the XSD infoset Model at a rocket speed!! It seems like this
'NullPointerException' rooted at /**
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes
(SDSchemaImpl.java)**/
is a serious problem for developers using the XSD model as standalone.

Once of the root causes of this is the incompitibility of the xmlParser
shipped with sun 1.4.* jdk or j2re. For those of you out there who might
be experiencing this problem, here is the solution:

1) You need to override the parser shipped with Sun's Java2 jdk or j2re:
a) Download your favorite uptodate DOM Level 2+ xmlPaser such as
xercesJ-2.* etc.





Anne wrote:

> Merks,

> Sorry, and thanks for your thread. Here is the NullpointerException
> stackTrace.

> java.lang.NullPointerException

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

> at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

> at
>
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

> at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

> at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

> at
>
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

> at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

> Anne

> Ed Merks wrote:

> > Anne,

> > Good help is directly proportional to the details you provide. If you
> > have an exception, and a question about it, you should show the stack
> > trace. Which jars are you using? Have you included xsd.resources.jar?
> > Have you looked at the FAQ about your problem? Have you tried (looking
> > at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> > to register the resource factory as in the sample.


> > Anne wrote:

> > >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> > >Eclipse installed) but attempting to load a schema throws A
> > >nullpointerException, containg reconcileAttributes() bla bla..
> > >
> > >I could not do anything else, even when I try using OpenXSD.jar, same.
> > >
> > >Any help colleagues?
> > >
> > >Anne
> > >
> > >
> > >
> > >
> > >
'NullpointerException"! - SOLVED!!! [message #52589 is a reply to message #52533] Tue, 07 September 2004 04:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Hi All,

Now am using the XSD infoset Model at a rocket speed!! It seems like this
'NullPointerException' rooted at /**
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes
(SDSchemaImpl.java)**/
is a serious problem for developers using the XSD model as standalone.

Once of the root causes of this is the incompitibility of the xmlParser
shipped with sun 1.4.* jdk or j2re. For those of you out there who might
be experiencing this problem, here is the solution:

1) You need to override the parser shipped with Sun's Java2 jdk or j2re:
a) Download your favorite uptodate DOM Level 2+ xmlPaser such as
xercesJ-2.* etc.





Anne wrote:

> Merks,

> Sorry, and thanks for your thread. Here is the NullpointerException
> stackTrace.

> java.lang.NullPointerException

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

> at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

> at
>
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

> at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

> at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

> at
>
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

> at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

> Anne

> Ed Merks wrote:

> > Anne,

> > Good help is directly proportional to the details you provide. If you
> > have an exception, and a question about it, you should show the stack
> > trace. Which jars are you using? Have you included xsd.resources.jar?
> > Have you looked at the FAQ about your problem? Have you tried (looking
> > at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> > to register the resource factory as in the sample.


> > Anne wrote:

> > >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> > >Eclipse installed) but attempting to load a schema throws A
> > >nullpointerException, containg reconcileAttributes() bla bla..
> > >
> > >I could not do anything else, even when I try using OpenXSD.jar, same.
> > >
> > >Any help colleagues?
> > >
> > >Anne
> > >
> > >
> > >
> > >
> > >
'NullpointerException"! - SOLVED!!! [message #52617 is a reply to message #52533] Tue, 07 September 2004 04:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Hi All,

Now am using the XSD infoset Model at a rocket speed!! It seems like this
'NullPointerException' rooted at /**
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes
(SDSchemaImpl.java)**/
is a serious problem for developers using the XSD model as standalone.

Once of the root causes of this is the incompitibility of the xmlParser
shipped with sun 1.4.* jdk or j2re. For those of you out there who might
be experiencing this problem, here is the solution:

1) You need to override the parser shipped with Sun's Java2 jdk or j2re:
a) Download your favorite uptodate DOM Level 2+ xmlPaser such as
xercesJ- 2.* etc.
b) Assuming <Java-Home> is where you installed java2 jdk or j2re.
i) For jdk - Create a directory called 'endorsed' under
<Java-Home>\lib for j2re create the 'endorsed' directory should be created
under <Java-Home>\jre\lib.
ii) Put all the xmlParser implementation jar files under the
'endorsed' directory.
ii) Also add the jar files to your class path.

NB: Make sure that you do not include any other xmlPasers in your
classpath.

c) Register a new resource Factory as in
org.eclipse.xsd.test.XSDMainTest.java.

DONE!!

cheers

Anne


Anne wrote:

> Merks,

> Sorry, and thanks for your thread. Here is the NullpointerException
> stackTrace.

> java.lang.NullPointerException

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

> at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

> at
>
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

> at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

> at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

> at
>
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

> at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

> Anne

> Ed Merks wrote:

> > Anne,

> > Good help is directly proportional to the details you provide. If you
> > have an exception, and a question about it, you should show the stack
> > trace. Which jars are you using? Have you included xsd.resources.jar?
> > Have you looked at the FAQ about your problem? Have you tried (looking
> > at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> > to register the resource factory as in the sample.


> > Anne wrote:

> > >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> > >Eclipse installed) but attempting to load a schema throws A
> > >nullpointerException, containg reconcileAttributes() bla bla..
> > >
> > >I could not do anything else, even when I try using OpenXSD.jar, same.
> > >
> > >Any help colleagues?
> > >
> > >Anne
> > >
> > >
> > >
> > >
> > >
Sorry, Two threads were a mistake!! Consider the bottom one! [message #52645 is a reply to message #52533] Tue, 07 September 2004 04:24 Go to previous message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Anne wrote:

> Merks,

> Sorry, and thanks for your thread. Here is the NullpointerException
> stackTrace.

> java.lang.NullPointerException

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

> at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

> at
>
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

> at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

> at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

> at
>
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

> at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

> Anne

> Ed Merks wrote:

> > Anne,

> > Good help is directly proportional to the details you provide. If you
> > have an exception, and a question about it, you should show the stack
> > trace. Which jars are you using? Have you included xsd.resources.jar?
> > Have you looked at the FAQ about your problem? Have you tried (looking
> > at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> > to register the resource factory as in the sample.


> > Anne wrote:

> > >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> > >Eclipse installed) but attempting to load a schema throws A
> > >nullpointerException, containg reconcileAttributes() bla bla..
> > >
> > >I could not do anything else, even when I try using OpenXSD.jar, same.
> > >
> > >Any help colleagues?
> > >
> > >Anne
> > >
> > >
> > >
> > >
> > >
Re: xsdSchema.load() throws 'NullpointerException"! Help!1 [message #591404 is a reply to message #52439] Mon, 06 September 2004 12:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Anne,

Good help is directly proportional to the details you provide. If you
have an exception, and a question about it, you should show the stack
trace. Which jars are you using? Have you included xsd.resources.jar?
Have you looked at the FAQ about your problem? Have you tried (looking
at or running) the sample code in org.eclipse.xsd.test? Maybe you need
to register the resource factory as in the sample.


Anne wrote:

>Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
>Eclipse installed) but attempting to load a schema throws A
>nullpointerException, containg reconcileAttributes() bla bla..
>
>I could not do anything else, even when I try using OpenXSD.jar, same.
>
>Any help colleagues?
>
>Anne
>
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xsdSchema.load() throws 'NullpointerException"! Help!1 [message #591427 is a reply to message #52476] Tue, 07 September 2004 02:01 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
Merks,

Sorry, and thanks for your thread. Here is the NullpointerException
stackTrace.

java.lang.NullPointerException

at
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

at
org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

at
org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

at
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

at
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

at
org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

at
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

Anne

Ed Merks wrote:

> Anne,

> Good help is directly proportional to the details you provide. If you
> have an exception, and a question about it, you should show the stack
> trace. Which jars are you using? Have you included xsd.resources.jar?
> Have you looked at the FAQ about your problem? Have you tried (looking
> at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> to register the resource factory as in the sample.


> Anne wrote:

> >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> >Eclipse installed) but attempting to load a schema throws A
> >nullpointerException, containg reconcileAttributes() bla bla..
> >
> >I could not do anything else, even when I try using OpenXSD.jar, same.
> >
> >Any help colleagues?
> >
> >Anne
> >
> >
> >
> >
> >
'NullpointerException"! - SOLVED!!! [message #591435 is a reply to message #52533] Tue, 07 September 2004 04:14 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
Hi All,

Now am using the XSD infoset Model at a rocket speed!! It seems like this
'NullPointerException' rooted at /**
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes
(SDSchemaImpl.java)**/
is a serious problem for developers using the XSD model as standalone.

Once of the root causes of this is the incompitibility of the xmlParser
shipped with sun 1.4.* jdk or j2re. For those of you out there who might
be experiencing this problem, here is the solution:

1) You need to override the parser shipped with Sun's Java2 jdk or j2re:
a) Download your favorite uptodate DOM Level 2+ xmlPaser such as
xercesJ-2.* etc.





Anne wrote:

> Merks,

> Sorry, and thanks for your thread. Here is the NullpointerException
> stackTrace.

> java.lang.NullPointerException

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

> at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

> at
>
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

> at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

> at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

> at
>
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

> at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

> Anne

> Ed Merks wrote:

> > Anne,

> > Good help is directly proportional to the details you provide. If you
> > have an exception, and a question about it, you should show the stack
> > trace. Which jars are you using? Have you included xsd.resources.jar?
> > Have you looked at the FAQ about your problem? Have you tried (looking
> > at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> > to register the resource factory as in the sample.


> > Anne wrote:

> > >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> > >Eclipse installed) but attempting to load a schema throws A
> > >nullpointerException, containg reconcileAttributes() bla bla..
> > >
> > >I could not do anything else, even when I try using OpenXSD.jar, same.
> > >
> > >Any help colleagues?
> > >
> > >Anne
> > >
> > >
> > >
> > >
> > >
'NullpointerException"! - SOLVED!!! [message #591449 is a reply to message #52533] Tue, 07 September 2004 04:14 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
Hi All,

Now am using the XSD infoset Model at a rocket speed!! It seems like this
'NullPointerException' rooted at /**
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes
(SDSchemaImpl.java)**/
is a serious problem for developers using the XSD model as standalone.

Once of the root causes of this is the incompitibility of the xmlParser
shipped with sun 1.4.* jdk or j2re. For those of you out there who might
be experiencing this problem, here is the solution:

1) You need to override the parser shipped with Sun's Java2 jdk or j2re:
a) Download your favorite uptodate DOM Level 2+ xmlPaser such as
xercesJ-2.* etc.





Anne wrote:

> Merks,

> Sorry, and thanks for your thread. Here is the NullpointerException
> stackTrace.

> java.lang.NullPointerException

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

> at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

> at
>
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

> at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

> at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

> at
>
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

> at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

> Anne

> Ed Merks wrote:

> > Anne,

> > Good help is directly proportional to the details you provide. If you
> > have an exception, and a question about it, you should show the stack
> > trace. Which jars are you using? Have you included xsd.resources.jar?
> > Have you looked at the FAQ about your problem? Have you tried (looking
> > at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> > to register the resource factory as in the sample.


> > Anne wrote:

> > >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> > >Eclipse installed) but attempting to load a schema throws A
> > >nullpointerException, containg reconcileAttributes() bla bla..
> > >
> > >I could not do anything else, even when I try using OpenXSD.jar, same.
> > >
> > >Any help colleagues?
> > >
> > >Anne
> > >
> > >
> > >
> > >
> > >
'NullpointerException"! - SOLVED!!! [message #591459 is a reply to message #52533] Tue, 07 September 2004 04:22 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
Hi All,

Now am using the XSD infoset Model at a rocket speed!! It seems like this
'NullPointerException' rooted at /**
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes
(SDSchemaImpl.java)**/
is a serious problem for developers using the XSD model as standalone.

Once of the root causes of this is the incompitibility of the xmlParser
shipped with sun 1.4.* jdk or j2re. For those of you out there who might
be experiencing this problem, here is the solution:

1) You need to override the parser shipped with Sun's Java2 jdk or j2re:
a) Download your favorite uptodate DOM Level 2+ xmlPaser such as
xercesJ- 2.* etc.
b) Assuming <Java-Home> is where you installed java2 jdk or j2re.
i) For jdk - Create a directory called 'endorsed' under
<Java-Home>\lib for j2re create the 'endorsed' directory should be created
under <Java-Home>\jre\lib.
ii) Put all the xmlParser implementation jar files under the
'endorsed' directory.
ii) Also add the jar files to your class path.

NB: Make sure that you do not include any other xmlPasers in your
classpath.

c) Register a new resource Factory as in
org.eclipse.xsd.test.XSDMainTest.java.

DONE!!

cheers

Anne


Anne wrote:

> Merks,

> Sorry, and thanks for your thread. Here is the NullpointerException
> stackTrace.

> java.lang.NullPointerException

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

> at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

> at
>
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

> at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

> at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

> at
>
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

> at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

> Anne

> Ed Merks wrote:

> > Anne,

> > Good help is directly proportional to the details you provide. If you
> > have an exception, and a question about it, you should show the stack
> > trace. Which jars are you using? Have you included xsd.resources.jar?
> > Have you looked at the FAQ about your problem? Have you tried (looking
> > at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> > to register the resource factory as in the sample.


> > Anne wrote:

> > >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> > >Eclipse installed) but attempting to load a schema throws A
> > >nullpointerException, containg reconcileAttributes() bla bla..
> > >
> > >I could not do anything else, even when I try using OpenXSD.jar, same.
> > >
> > >Any help colleagues?
> > >
> > >Anne
> > >
> > >
> > >
> > >
> > >
Sorry, Two threads were a mistake!! Consider the bottom one! [message #591471 is a reply to message #52533] Tue, 07 September 2004 04:24 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
Anne wrote:

> Merks,

> Sorry, and thanks for your thread. Here is the NullpointerException
> stackTrace.

> java.lang.NullPointerException

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSc hemaImpl.java:1877)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponentImpl.java:947)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteComponentImpl.java:1228)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2223)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1201)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteComponentImpl.java:2793)

> at
>
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponentImpl.java:2825)

> at org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2346)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:480)

> at
>
org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSD ResourceImpl.java:505)

> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:404)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:867)

> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:741)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:247)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:262)

> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:346)

> at
>
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:532)

> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:609)

> at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:420)

> at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:291)

> at
>
com.k_int.schema.SchemaAnalyser.populateSchemaAnalysis(Schem aAnalyser.java:125)

> at damix.SchemaAnalysisTest.main(SchemaAnalysisTest.java:114)

> Anne

> Ed Merks wrote:

> > Anne,

> > Good help is directly proportional to the details you provide. If you
> > have an exception, and a question about it, you should show the stack
> > trace. Which jars are you using? Have you included xsd.resources.jar?
> > Have you looked at the FAQ about your problem? Have you tried (looking
> > at or running) the sample code in org.eclipse.xsd.test? Maybe you need
> > to register the resource factory as in the sample.


> > Anne wrote:

> > >Am using the XSD Schema Infoset Model (.jar) lib on a Windows XP box ( No
> > >Eclipse installed) but attempting to load a schema throws A
> > >nullpointerException, containg reconcileAttributes() bla bla..
> > >
> > >I could not do anything else, even when I try using OpenXSD.jar, same.
> > >
> > >Any help colleagues?
> > >
> > >Anne
> > >
> > >
> > >
> > >
> > >
Previous Topic:How to get access on the content of a XSDSimpletypeDefinition
Next Topic:How to get access on the content of a XSDSimpletypeDefinition
Goto Forum:
  


Current Time: Thu Apr 25 07:44:06 GMT 2024

Powered by FUDForum. Page generated in 0.04045 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top