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 "Martin Roberts (JIRA)" <ja...@ws.apache.org> on 2005/11/23 16:38:35 UTC

[jira] Created: (JAXME-74) JAXP Transform seems fails

JAXP Transform seems fails
--------------------------

         Key: JAXME-74
         URL: http://issues.apache.org/jira/browse/JAXME-74
     Project: JaxMe
        Type: Bug
    Versions: 0.5    
 Environment: Windows 2000 and running within eclipse and also with ANT running from within Eclipse
    Reporter: Martin Roberts


    I tried to duplicate the Marshall example and I am getting a 
java.lang.ArrayIndexOutOfBoundsException error.

I suspect this is something to do with an empty file or something but would really appreciate some hints from someone.




I have tracked the error down to the lines.
Class : JMSAXDriverController
 
  ContentHandler h = getTarget();
  h.startElement(pNamespaceURI, pLocalName, qName, attrs);
 
The parameters all have valid values in the calling application but when the call is made the parameters can not be resolved and hence the stack is empty an so I get the over flow.  Why would I be getting this behaviour?


-- 
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] Kommentiert: (JAXME-74) JAXP Transform seems fails

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

Jochen Wiedmann commented on JAXME-74:
--------------------------------------

I am sorry, but the zip files data is completely usable. I have spent about 20 minutes, trying to get it compiled, but now it's too much. The class names are wrong (runner => runner2, LibraryData => Library), the package names are wrong (com.bt.grasp.schemas.data => com.bt.grasp.data). I'll stop working on it.



> JAXP Transform seems fails
> --------------------------
>
>          Key: JAXME-74
>          URL: http://issues.apache.org/jira/browse/JAXME-74
>      Project: JaxMe
>         Type: Bug
>     Versions: 0.5
>  Environment: Windows 2000 and running within eclipse and also with ANT running from within Eclipse
>     Reporter: Martin Roberts
>  Attachments: Transform.zip
>
>     I tried to duplicate the Marshall example and I am getting a 
> java.lang.ArrayIndexOutOfBoundsException error.
> I suspect this is something to do with an empty file or something but would really appreciate some hints from someone.
> I have tracked the error down to the lines.
> Class : JMSAXDriverController
>  
>   ContentHandler h = getTarget();
>   h.startElement(pNamespaceURI, pLocalName, qName, attrs);
>  
> The parameters all have valid values in the calling application but when the call is made the parameters can not be resolved and hence the stack is empty an so I get the over flow.  Why would I be getting this behaviour?

-- 
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] Zugewiesen: (JAXME-74) JAXP Transform seems fails

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

Jochen Wiedmann reassigned JAXME-74:
------------------------------------

    Assign To: Jochen Wiedmann

> JAXP Transform seems fails
> --------------------------
>
>          Key: JAXME-74
>          URL: http://issues.apache.org/jira/browse/JAXME-74
>      Project: JaxMe
>         Type: Bug
>     Versions: 0.5
>  Environment: Windows 2000 and running within eclipse and also with ANT running from within Eclipse
>     Reporter: Martin Roberts
>     Assignee: Jochen Wiedmann
>  Attachments: Transform.zip, transformProblem.zip
>
>     I tried to duplicate the Marshall example and I am getting a 
> java.lang.ArrayIndexOutOfBoundsException error.
> I suspect this is something to do with an empty file or something but would really appreciate some hints from someone.
> I have tracked the error down to the lines.
> Class : JMSAXDriverController
>  
>   ContentHandler h = getTarget();
>   h.startElement(pNamespaceURI, pLocalName, qName, attrs);
>  
> The parameters all have valid values in the calling application but when the call is made the parameters can not be resolved and hence the stack is empty an so I get the over flow.  Why would I be getting this behaviour?

-- 
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] Updated: (JAXME-74) JAXP Transform seems fails

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

Martin Roberts updated JAXME-74:
--------------------------------

    Attachment: Transform.zip

I have included in the attached file the Java class doing the transform and the a class that runs the transforms.

It also contains the schemas and an xml file for transformation.

If you prefer to have the complete eclipse project I could send you if it would help.

> JAXP Transform seems fails
> --------------------------
>
>          Key: JAXME-74
>          URL: http://issues.apache.org/jira/browse/JAXME-74
>      Project: JaxMe
>         Type: Bug
>     Versions: 0.5
>  Environment: Windows 2000 and running within eclipse and also with ANT running from within Eclipse
>     Reporter: Martin Roberts
>  Attachments: Transform.zip
>
>     I tried to duplicate the Marshall example and I am getting a 
> java.lang.ArrayIndexOutOfBoundsException error.
> I suspect this is something to do with an empty file or something but would really appreciate some hints from someone.
> I have tracked the error down to the lines.
> Class : JMSAXDriverController
>  
>   ContentHandler h = getTarget();
>   h.startElement(pNamespaceURI, pLocalName, qName, attrs);
>  
> The parameters all have valid values in the calling application but when the call is made the parameters can not be resolved and hence the stack is empty an so I get the over flow.  Why would I be getting this behaviour?

-- 
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] Updated: (JAXME-74) JAXP Transform seems fails

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

Martin Roberts updated JAXME-74:
--------------------------------

    Attachment: transformProblem.zip

Jochen,
  This file needs a simple unzip to a directory.  You should be able to then just run ant run which will build the files and show you the problem.  I am sorry about teh last file.  Newbie learning :)

Thanks

Martin

> JAXP Transform seems fails
> --------------------------
>
>          Key: JAXME-74
>          URL: http://issues.apache.org/jira/browse/JAXME-74
>      Project: JaxMe
>         Type: Bug
>     Versions: 0.5
>  Environment: Windows 2000 and running within eclipse and also with ANT running from within Eclipse
>     Reporter: Martin Roberts
>  Attachments: Transform.zip, transformProblem.zip
>
>     I tried to duplicate the Marshall example and I am getting a 
> java.lang.ArrayIndexOutOfBoundsException error.
> I suspect this is something to do with an empty file or something but would really appreciate some hints from someone.
> I have tracked the error down to the lines.
> Class : JMSAXDriverController
>  
>   ContentHandler h = getTarget();
>   h.startElement(pNamespaceURI, pLocalName, qName, attrs);
>  
> The parameters all have valid values in the calling application but when the call is made the parameters can not be resolved and hence the stack is empty an so I get the over flow.  Why would I be getting this behaviour?

-- 
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] Kommentiert: (JAXME-74) JAXP Transform seems fails

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

Jochen Wiedmann commented on JAXME-74:
--------------------------------------

The problem is as follows:

The TransformerHandler expects to see a complete sequence

    startDocument() ... endDocument()

Obviously, it does initialize itself in startDocument(), which makes quite some sense.

On the other hand, the method

   Marshaller.marshaller(...)

currently doesn't emit these events: The idea is, that the marshallers output may be embedded into another SAX event stream. For example, when generating a SOAP response, then you need to generate events for SOAP:envelope, SOAP:body, and so on, before firing the SAX events for your data.

For now, a simple workaround is replacing

    marshaller.marshal(object, transformerHandler);

with

    transformerHandler.startDocument();
    marshaller.marshal(object, transformerHandler);
    transformerHandler.endDocument();

However, I must admit that I am uncertain how to deal with the problem. Should we emit a startDocument() event? What does the JAXB RI do? What does the specification require?


> JAXP Transform seems fails
> --------------------------
>
>          Key: JAXME-74
>          URL: http://issues.apache.org/jira/browse/JAXME-74
>      Project: JaxMe
>         Type: Bug
>     Versions: 0.5
>  Environment: Windows 2000 and running within eclipse and also with ANT running from within Eclipse
>     Reporter: Martin Roberts
>     Assignee: Jochen Wiedmann
>  Attachments: Transform.zip, transformProblem.zip
>
>     I tried to duplicate the Marshall example and I am getting a 
> java.lang.ArrayIndexOutOfBoundsException error.
> I suspect this is something to do with an empty file or something but would really appreciate some hints from someone.
> I have tracked the error down to the lines.
> Class : JMSAXDriverController
>  
>   ContentHandler h = getTarget();
>   h.startElement(pNamespaceURI, pLocalName, qName, attrs);
>  
> The parameters all have valid values in the calling application but when the call is made the parameters can not be resolved and hence the stack is empty an so I get the over flow.  Why would I be getting this behaviour?

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