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

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-243) NullPointerException in initializer
From:       "Jan Van den Bergh (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2006-01-23 12:30:13
Message-ID: 1944616016.1138019413535.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

NullPointerException in initializer of type factory
---------------------------------------------------

         Key: XMLBEANS-243
         URL: http://issues.apache.org/jira/browse/XMLBEANS-243
     Project: XMLBeans
        Type: Bug
  Components: XmlObject  
    Versions: Version 2.1    
 Environment: JDK 1.4 on Windows 2000
    Reporter: Jan Van den Bergh


After compiling my schema, I try out a small test program to try to create objects:

import java.io.IOException;

import org.apache.xmlbeans.XmlException;

import ....MessageDocument;
import ....MessageType;


public class Test {

    public static void main(String[] args) throws XmlException, IOException {
        MessageDocument request = MessageDocument.Factory.newInstance();
        MessageType message = MessageType.Factory.newInstance();
        request.setMessage(message);
    }

}

I get the following exception. This occurs because the parameter dimension which is \
passed to the SOAPArrayType constructor is null.

java.lang.ExceptionInInitializerError
	at be.banksys.schemas.extranet.visibility.MessageType$Factory.newInstance(Unknown \
Source)  at Test.main(Test.java:20)
Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: Cannot load type from \
typesystem (schemaorg_apache_xmlbeans.system.s0054826DF1495385F834120E8997899F.messagetype6649type) \
- code 14  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.finishLoadingType(SchemaTypeSystemImpl.java:2670)
  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.resolveHandle(SchemaTypeSystemImpl.java:3477)
  at be.banksys.schemas.extranet.visibility.MessageType.<clinit>(Unknown Source)
	... 2 more
Caused by: java.lang.NullPointerException
	at org.apache.xmlbeans.soap.SOAPArrayType.<init>(SOAPArrayType.java:151)
	at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.readSOAPArrayType(SchemaTypeSystemImpl.java:1848)
  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.loadAttribute(SchemaTypeSystemImpl.java:2892)
  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.readAttributeData(SchemaTypeSystemImpl.java:2884)
  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.finishLoadingType(SchemaTypeSystemImpl.java:2501)
                
	... 4 more


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


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

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