Title: AW: [castor-dev] castor does not create java classes for all data types

hello,

i finally fixed my troubles with the IllegalArgumentException (thanks to Rhett Sutphin!)
but going on with my project does not become easier and to be honest i allready doubt my skills concerning fixing code errors ;-)....

murphy's law is everywhere ;-)

right now, i get a NullPointerException {file: [not available]; line: 46; column: 15} in the following code:

public class ReadXmlFile{
        public static void main(String args[]) {
                try {
                        FileReader in = new FileReader("catalogSample.xml");
                        CATALOG catalog = CATALOG.unmarshal(in);        //root-element des XML-Files
                        in.close();
                        printXML(catalog);
                } catch (Exception e) {
                        System.out.println(e);
                }
        }

The corresponding XML file:
<COUNTRY_CUSTOMER>
        <LOCAL_CUST_NO>String</LOCAL_CUST_NO>
                <COMPANY_NAME>String</COMPANY_NAME>
                <COMPANY_ORG>String</COMPANY_ORG>
                ...
                <P_ADDRESS>
                        <ADDRESS1>String</ADDRESS1>     <<-- Here i get the Exception ("S" is in line 46, columm 15)
                        <ADDRESS2>String</ADDRESS2>
                        <ZIPCODE>String</ZIPCODE>
                        <CITY>String</CITY>
                </P_ADDRESS>
                ...

the XML file is valid (according to XMLSpy) and the java classes created by castor should be allright to (there exist a String class variable "ADRESS1"...)

any help would be appreciated!

christian w

Reply via email to