You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ja...@ws.apache.org on 2004/08/03 17:45:19 UTC

[jira] Created: (JAXME-20) java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAXME-20

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAXME-20
    Summary: java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union
       Type: Task

     Status: Unassigned
   Priority: Major

    Project: JaxMe

   Assignee: 
   Reporter: Kold Metal

    Created: Tue, 3 Aug 2004 8:45 AM
    Updated: Tue, 3 Aug 2004 8:45 AM
Environment: Windows 2000

Description:
Getting an error when running Ant task.

java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union

Below is the build.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="Ebond" default="generate" basedir=".">
	<!-- Build Properties -->
<target name="taskdef">
  <!--
  Set up the classpath for the generation task.
  Include all the standard jaxme jars.
  -->
  <path id="generate.class.path">
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmexs.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmeapi.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmejs.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxme2-rt.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmepm.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxme2.jar"/>
 </path>
  <!--
  Defines the generation task using that classpath.
  -->
  <taskdef name="xjc"
    classname="org.apache.ws.jaxme.generator.XJCTask"
    classpathref="generate.class.path"/>
  <!--
  Generate source code.
  The 'schema' attribute gives the path to the schema the sources
  will be generated from.
  The 'target' attribute specifies the base directory that the source
  will be generated into. Sources will be created in subdirectories
  corresponding to the package structure.
  -->
  </target>
  <target name="generate"  depends="taskdef">
  <xjc
    schema="tML-TA.xsd"
    package="com.sbc.asi.cpsosasos.trouble.data" 
    force="true"
    extension="true"
    target="mysrcdir">
        <!--
        The source files to be created. The implictly identifies the package
        to which the sources will belong.
        -->
        <schemaReader classname="org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader"/>
        <produces includes="com/sbc/asi/cpsosasos/trouble/data/*.java"/>
  </xjc>
</target>
</project>


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (JAXME-20) java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union

Posted by ja...@ws.apache.org.
Message:

   The following issue has been closed.

   Resolver: Jochen Wiedmann
       Date: Wed, 11 Aug 2004 5:02 PM

Restrictions of simple list types didn't have the isList() property
set. Likewise for restrictions of simple union types.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAXME-20

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAXME-20
    Summary: java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union
       Type: Task

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: JaxMe

   Assignee: 
   Reporter: Kold Metal

    Created: Tue, 3 Aug 2004 8:45 AM
    Updated: Wed, 11 Aug 2004 5:02 PM
Environment: Windows 2000

Description:
Getting an error when running Ant task.

java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union

Below is the build.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="Ebond" default="generate" basedir=".">
	<!-- Build Properties -->
<target name="taskdef">
  <!--
  Set up the classpath for the generation task.
  Include all the standard jaxme jars.
  -->
  <path id="generate.class.path">
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmexs.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmeapi.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmejs.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxme2-rt.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmepm.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxme2.jar"/>
 </path>
  <!--
  Defines the generation task using that classpath.
  -->
  <taskdef name="xjc"
    classname="org.apache.ws.jaxme.generator.XJCTask"
    classpathref="generate.class.path"/>
  <!--
  Generate source code.
  The 'schema' attribute gives the path to the schema the sources
  will be generated from.
  The 'target' attribute specifies the base directory that the source
  will be generated into. Sources will be created in subdirectories
  corresponding to the package structure.
  -->
  </target>
  <target name="generate"  depends="taskdef">
  <xjc
    schema="tML-TA.xsd"
    package="com.sbc.asi.cpsosasos.trouble.data" 
    force="true"
    extension="true"
    target="mysrcdir">
        <!--
        The source files to be created. The implictly identifies the package
        to which the sources will belong.
        -->
        <schemaReader classname="org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader"/>
        <produces includes="com/sbc/asi/cpsosasos/trouble/data/*.java"/>
  </xjc>
</target>
</project>


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (JAXME-20) java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union

Posted by ja...@ws.apache.org.
The following comment has been added to this issue:

     Author: Kold Metal
    Created: Wed, 4 Aug 2004 6:00 PM
       Body:
Thanks for looking into this, but I think I found the problem.

It seems like a simpleType referencing another simpleType of a union is not (yet) supported in JaxMe. Below is the portion where its failing.

<simpleType name="ServiceIDType">
	<restriction base="tML-TABase:NameTypeType"/>
</simpleType>

where NameTypeType is declared as:

<simpleType name="NameTypeType">
	<union memberTypes="integer tML-TABase:GraphicStringType"/>
</simpleType>


Another thing that I have encountered is this error:
java.lang.IllegalStateException: This particle doesn't have the element type.

This was caused by using complexContent in a complexType just like the one written below.

<complexType name="ExceptionCreateType">
	<complexContent>
		<extension base="tML-TABase:ExceptionGenericType">
			<sequence>
				<element name="FallBackReporting" type="tML-TABase:FallBackReportingType" minOccurs="0"/>
				<element name="TroubleReportAlreadyExists" type="tML-TABase:TroubleReportAlreadyExistsType" minOccurs="0"/>
				<element name="TRMustBePresentAttributeMissing" type="tML-TABase:TRMustBePresentAttributeMissingType" minOccurs="0"/>
			</sequence>
		</extension>
	</complexContent>
</complexType>

This will go through when using regular sequence instead.

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/JAXME-20?page=comments#action_37046

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAXME-20

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAXME-20
    Summary: java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union
       Type: Task

     Status: Unassigned
   Priority: Major

    Project: JaxMe

   Assignee: 
   Reporter: Kold Metal

    Created: Tue, 3 Aug 2004 8:45 AM
    Updated: Wed, 4 Aug 2004 6:00 PM
Environment: Windows 2000

Description:
Getting an error when running Ant task.

java.lang.IllegalStateException: Simple type org.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@27692769 is neither of atomic, list, or union

Below is the build.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="Ebond" default="generate" basedir=".">
	<!-- Build Properties -->
<target name="taskdef">
  <!--
  Set up the classpath for the generation task.
  Include all the standard jaxme jars.
  -->
  <path id="generate.class.path">
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmexs.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmeapi.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmejs.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxme2-rt.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxmepm.jar"/>
     <pathelement location="C:\Program Files\ws-jaxme-0.3\lib\jaxme2.jar"/>
 </path>
  <!--
  Defines the generation task using that classpath.
  -->
  <taskdef name="xjc"
    classname="org.apache.ws.jaxme.generator.XJCTask"
    classpathref="generate.class.path"/>
  <!--
  Generate source code.
  The 'schema' attribute gives the path to the schema the sources
  will be generated from.
  The 'target' attribute specifies the base directory that the source
  will be generated into. Sources will be created in subdirectories
  corresponding to the package structure.
  -->
  </target>
  <target name="generate"  depends="taskdef">
  <xjc
    schema="tML-TA.xsd"
    package="com.sbc.asi.cpsosasos.trouble.data" 
    force="true"
    extension="true"
    target="mysrcdir">
        <!--
        The source files to be created. The implictly identifies the package
        to which the sources will belong.
        -->
        <schemaReader classname="org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader"/>
        <produces includes="com/sbc/asi/cpsosasos/trouble/data/*.java"/>
  </xjc>
</target>
</project>


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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