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 "Eric Lavarde (JIRA)" <ja...@ws.apache.org> on 2005/11/20 20:44:24 UTC

[jira] Created: (JAXME-73) jaxme doesn't recognise complex type where jaxb does

jaxme doesn't recognise complex type where jaxb does
----------------------------------------------------

         Key: JAXME-73
         URL: http://issues.apache.org/jira/browse/JAXME-73
     Project: JaxMe
        Type: Bug
    Versions: 0.5    
 Environment: Linux Debian Unstable
J2SDK 1.4
    Reporter: Eric Lavarde


Hi,

trying to go around issue http://issues.apache.org/jira/browse/JAXME-61, and helped by upstream, I replaced:

	<xs:group name="base">
       <xs:choice>
	          <xs:element ref="menu_category"/>
	          <xs:element ref="menu_submenu"/>
	          <xs:element ref="menu_action"/>
	          <xs:element ref="menu_checked_action"/>
	          <xs:element ref="menu_separator"/>
       </xs:choice>
	</xs:group>

       [...]

    <xs:complexType name="menu_category_base">
 	      <xs:sequence>
	        <xs:choice minOccurs="0" maxOccurs="unbounded">
	          <xs:group ref="base"/>
	        </xs:choice>
	      </xs:sequence>
	      <xs:attribute name="name" use="required" type="xs:string"/>
    </xs:complexType>

through

    <xs:complexType name="menu_category_base">
 	      <xs:sequence>
	        <xs:choice minOccurs="0" maxOccurs="unbounded">
	          <xs:element ref="menu_category"/> 
	          <xs:element ref="menu_submenu"/> 
	          <xs:element ref="menu_action"/> 
	          <xs:element ref="menu_checked_action"/> 
	          <xs:element ref="menu_separator"/> 
	        </xs:choice>
	      </xs:sequence>
	      <xs:attribute name="name" use="required" type="xs:string"/>
    </xs:complexType>

This works with the original jaxb, but I get the following error from jaxme:
BUILD FAILED
/home/ericl/freemind-0.8.0+01/freemind/build.xml:72: The following error occurred while executing this line:
/home/ericl/freemind-0.8.0+01/freemind/build.xml:48: At file:/home/ericl/freemind-0.8.0+01/freemind/freemind_actions.xsd, line 842, column 1: At file:/home/ericl/freemind-0.8.0+01/freemind/freemind_actions.xsd, line 842, column 1: java.lang.IllegalStateException: The type menu_category_base is simple.

Any help, workaround, patch, whatever would be very welcome!

Thanks, Eric

-- 
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: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


[jira] Geschlossen: (JAXME-73) jaxme doesn't recognise complex type where jaxb does

Posted by "Jochen Wiedmann (JIRA)" <ja...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/JAXME-73?page=all ]
     
Jochen Wiedmann closed JAXME-73:
--------------------------------

    Resolution: Duplicate

Eric, I am really sorry, but your "workaround" doesn't change the fact, that you are in fact using nested groups with multiplicity > 1. The error message is not what I'd expect (and could in fact be handled as an error), but that doen't change the fact, even if you'd try to reduce your schema even further:

  <xs:complexType name="menu_category_base">
     <xs:choice minOccurs="0" maxOccurs="unbounded">
       <xs:element ref="menu_category"/> 
       <xs:element ref="menu_submenu"/> 
       <xs:element ref="menu_action"/>
       <xs:element ref="menu_checked_action"/>
       <xs:element ref="menu_separator"/>
     </xs:choice>
     <xs:attribute name="name" use="required" type="xs:string"/>
   </xs:complexType>

Closing, duplicate of JAXME 61


> jaxme doesn't recognise complex type where jaxb does
> ----------------------------------------------------
>
>          Key: JAXME-73
>          URL: http://issues.apache.org/jira/browse/JAXME-73
>      Project: JaxMe
>         Type: Bug
>     Versions: 0.5
>  Environment: Linux Debian Unstable
> J2SDK 1.4
>     Reporter: Eric Lavarde

>
> Hi,
> trying to go around issue http://issues.apache.org/jira/browse/JAXME-61, and helped by upstream, I replaced:
> 	<xs:group name="base">
>        <xs:choice>
> 	          <xs:element ref="menu_category"/>
> 	          <xs:element ref="menu_submenu"/>
> 	          <xs:element ref="menu_action"/>
> 	          <xs:element ref="menu_checked_action"/>
> 	          <xs:element ref="menu_separator"/>
>        </xs:choice>
> 	</xs:group>
>        [...]
>     <xs:complexType name="menu_category_base">
>  	      <xs:sequence>
> 	        <xs:choice minOccurs="0" maxOccurs="unbounded">
> 	          <xs:group ref="base"/>
> 	        </xs:choice>
> 	      </xs:sequence>
> 	      <xs:attribute name="name" use="required" type="xs:string"/>
>     </xs:complexType>
> through
>     <xs:complexType name="menu_category_base">
>  	      <xs:sequence>
> 	        <xs:choice minOccurs="0" maxOccurs="unbounded">
> 	          <xs:element ref="menu_category"/> 
> 	          <xs:element ref="menu_submenu"/> 
> 	          <xs:element ref="menu_action"/> 
> 	          <xs:element ref="menu_checked_action"/> 
> 	          <xs:element ref="menu_separator"/> 
> 	        </xs:choice>
> 	      </xs:sequence>
> 	      <xs:attribute name="name" use="required" type="xs:string"/>
>     </xs:complexType>
> This works with the original jaxb, but I get the following error from jaxme:
> BUILD FAILED
> /home/ericl/freemind-0.8.0+01/freemind/build.xml:72: The following error occurred while executing this line:
> /home/ericl/freemind-0.8.0+01/freemind/build.xml:48: At file:/home/ericl/freemind-0.8.0+01/freemind/freemind_actions.xsd, line 842, column 1: At file:/home/ericl/freemind-0.8.0+01/freemind/freemind_actions.xsd, line 842, column 1: java.lang.IllegalStateException: The type menu_category_base is simple.
> Any help, workaround, patch, whatever would be very welcome!
> Thanks, Eric

-- 
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: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org