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

List:       xmlbeans-dev
Subject:    [jira] Updated: (XMLBEANS-236) NPE when running scomp on this
From:       "Lawrence Jones (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2006-01-13 23:48:26
Message-ID: 387686171.1137196106646.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

     [ http://issues.apache.org/jira/browse/XMLBEANS-236?page=all ]

Lawrence Jones updated XMLBEANS-236:
------------------------------------

    Attachment: xmlbeans_236.patch2

This patch (xmlbeans_236.patch2) does not have the disadantages of the previous \
patch. This time if we come across a prohibited attribute and its type is anonymous \
then in addition to removing the prohibited attribute itself from the SOM we also \
exclude its type from the list of anonymous types (and hence any recursively defined \
anonymous types are also not included).

> NPE when running scomp on this schema
> -------------------------------------
> 
> Key: XMLBEANS-236
> URL: http://issues.apache.org/jira/browse/XMLBEANS-236
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 2.1
> Environment: Windows
> Reporter: Lawrence Jones
> Assignee: Lawrence Jones
> Fix For: TBD
> Attachments: Untitled5.xsd, data-model.xsd, xmlBeans236.patch, xmlbeans_236.patch2
> 
> Please see the attached schema. If you run the following scomp on it you get the \
> NPE below: scomp -d classes -src src -javasource 1.5 -mx 500m schema
> NPE:
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.xmlbeans.impl.schema.SchemaTypeImpl.getIndexForLocalAttribute(SchemaTypeImpl.java:690)
>  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.writeTypeData(SchemaTypeSystemImpl.java:2698)
>  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveType(SchemaTypeSystemImpl.java:1439)
>  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveTypesRecursively(SchemaTypeSystemImpl.java:1316)
>  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveTypesRecursively(SchemaTypeSystemImpl.java:1317)
>  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveTypesRecursively(SchemaTypeSystemImpl.java:1317)
>  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveTypesRecursively(SchemaTypeSystemImpl.java:1317)
>  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.save(SchemaTypeSystemImpl.java:1291)
>  at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1098)
> at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)

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