axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Metchev (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-2479) cannot deserialize exception with null non-nillable attributes (premature end of file)
Date Mon, 22 May 2006 08:42:30 GMT
    [ http://issues.apache.org/jira/browse/AXIS-2479?page=comments#action_12412739 ] 

Nikolay Metchev commented on AXIS-2479:
---------------------------------------

I would also like to say that the you wouldn't normally leave non-nillable attributes as null
however the reason I came accross this was there was a bug in our code which meant it would
leave it as null. In those circumstances it is still not acceptable to get the above exception.

> cannot deserialize exception with null non-nillable attributes (premature end of file)
> --------------------------------------------------------------------------------------
>
>          Key: AXIS-2479
>          URL: http://issues.apache.org/jira/browse/AXIS-2479
>      Project: Apache Axis
>         Type: Bug

>   Components: Serialization/Deserialization
>     Versions: 1.4
>     Reporter: Nikolay Metchev
>  Attachments: test.zip
>
> If you have an exception which has a non-nillable attribute and you throw such an exception
in the server but don't set the non-nillable attribute then you get the following exception:
> SEVERE: ; nested exception is:
>         org.xml.sax.SAXParseException: Premature end of file.
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXParseException: Premature end of file.
>  faultActor:
>  faultNode:
>  faultDetail:
>         {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: P
> remature end of file.
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
> ParseException(ErrorHandlerWrapper.java:236)
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
> r(ErrorHandlerWrapper.java:215)
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
> XMLErrorReporter.java:386)
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
> XMLErrorReporter.java:316)
>         at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
> ocVersion(XMLVersionDetector.java:230)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:798)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:764)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
> java:148)
>         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
> stractSAXParser.java:1242)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>         at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
> Context.java:227)
>         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
>         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
> tandChecker.java:62)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>         at org.apache.axis.client.Call.invoke(Call.java:2767)
>         at org.apache.axis.client.Call.invoke(Call.java:2443)
>         at org.apache.axis.client.Call.invoke(Call.java:2366)
>         at org.apache.axis.client.Call.invoke(Call.java:1812)
>         at com.teamphone.enterprise.admin.service.AdminBindingStub.login(AdminBi
> ndingStub.java:2556)
>         at com.teamphone.enterprise.admin.client.DefaultTeamphoneAdminAdapter.lo
> gin(DefaultTeamphoneAdminAdapter.java:3315)
>         at com.teamphone.enterprise.admin.client.ui.AdminRootTreeModel.login(Adm
> inRootTreeModel.java:204)
>         at com.teamphone.enterprise.admin.client.ui.AdminRootTreeModel.access$00
> 0(AdminRootTreeModel.java:39)
>         at com.teamphone.enterprise.admin.client.ui.AdminRootTreeModel$1.actionP
> erformed(AdminRootTreeModel.java:126)
>         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
> 49)
>         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
> a:2169)
>         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
> .java:420)
>         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
> )
>         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
>         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
> 000)
>         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
> uItemUI.java:1041)
>         at java.awt.Component.processMouseEvent(Component.java:5488)
>         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
>         at java.awt.Component.processEvent(Component.java:5253)
>         at java.awt.Container.processEvent(Container.java:1966)
>         at java.awt.Component.dispatchEventImpl(Component.java:3955)
>         at java.awt.Container.dispatchEventImpl(Container.java:2024)
>         at java.awt.Component.dispatchEvent(Component.java:3803)
>         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
> )
>         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
>         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
>         at java.awt.Container.dispatchEventImpl(Container.java:2010)
>         at java.awt.Window.dispatchEventImpl(Window.java:1774)
>         at java.awt.Component.dispatchEvent(Component.java:3803)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
> read.java:242)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
> ad.java:163)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>         {http://xml.apache.org/axis/}hostname:qa5
> org.xml.sax.SAXParseException: Premature end of file.
>         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
>         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
>         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
> tandChecker.java:62)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>         at org.apache.axis.client.Call.invoke(Call.java:2767)
>         at org.apache.axis.client.Call.invoke(Call.java:2443)
>         at org.apache.axis.client.Call.invoke(Call.java:2366)
>         at org.apache.axis.client.Call.invoke(Call.java:1812)
>         at com.teamphone.enterprise.admin.service.AdminBindingStub.login(AdminBi
> ndingStub.java:2556)
>         at com.teamphone.enterprise.admin.client.DefaultTeamphoneAdminAdapter.lo
> gin(DefaultTeamphoneAdminAdapter.java:3315)
>         at com.teamphone.enterprise.admin.client.ui.AdminRootTreeModel.login(Adm
> inRootTreeModel.java:204)
>         at com.teamphone.enterprise.admin.client.ui.AdminRootTreeModel.access$00
> 0(AdminRootTreeModel.java:39)
>         at com.teamphone.enterprise.admin.client.ui.AdminRootTreeModel$1.actionP
> erformed(AdminRootTreeModel.java:126)
>         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
> 49)
>         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
> a:2169)
>         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
> .java:420)
>         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
> )
>         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
>         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
> 000)
>         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
> uItemUI.java:1041)
>         at java.awt.Component.processMouseEvent(Component.java:5488)
>         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
>         at java.awt.Component.processEvent(Component.java:5253)
>         at java.awt.Container.processEvent(Container.java:1966)
>         at java.awt.Component.dispatchEventImpl(Component.java:3955)
>         at java.awt.Container.dispatchEventImpl(Container.java:2024)
>         at java.awt.Component.dispatchEvent(Component.java:3803)
>         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
> )
>         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
>         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
>         at java.awt.Container.dispatchEventImpl(Container.java:2010)
>         at java.awt.Window.dispatchEventImpl(Window.java:1774)
>         at java.awt.Component.dispatchEvent(Component.java:3803)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
> read.java:242)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
> ad.java:163)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
> Caused by: org.xml.sax.SAXParseException: Premature end of file.
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
> ParseException(ErrorHandlerWrapper.java:236)
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
> r(ErrorHandlerWrapper.java:215)
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
> XMLErrorReporter.java:386)
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
> XMLErrorReporter.java:316)
>         at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
> ocVersion(XMLVersionDetector.java:230)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:798)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:764)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
> java:148)
>         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
> stractSAXParser.java:1242)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>         at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
> Context.java:227)
>         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>         ... 39 more

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


Mime
View raw message