New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix of zero length #253

Closed
romainreuillon opened this Issue May 31, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@romainreuillon
Contributor

romainreuillon commented May 31, 2014

I got an error when scalaxb is parsing this response:

(,<ns1:getVersionResponse xmlns:ns1="http://glite.org/wms/wmproxy" xmlns:delegationns="http://www.gridsite.org/namespaces/delegation-2" xmlns:delegation1="http://www.gridsite.org/namespaces/delegation-1" xmlns:jsdlposix="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix" xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><version>3.3.1</version></ns1:getVersionResponse>)
[error] (run-main-0) java.lang.IllegalArgumentException: prefix of zero length, use null instead
java.lang.IllegalArgumentException: prefix of zero length, use null instead
    at scala.xml.Elem.<init>(Elem.scala:73)
    at scala.xml.Elem$.apply(Elem.scala:31)
    at scala.xml.Elem$.apply(Elem.scala:28)
    at generated.XMLProtocol$WMProxyBindings$WMProxyBinding$class.getVersion(xmlprotocol.scala:810)
    at generated.XMLProtocol$WMProxyBindings$$anon$67.getVersion(xmlprotocol.scala:780)
@romainreuillon

This comment has been minimized.

Show comment
Hide comment
@romainreuillon

romainreuillon Jun 1, 2014

Contributor

Generated code passes a zero length String to Elem which throws an exception:
Right(scalaxb.fromXML[String](scala.xml.Elem("", "Body", scala.xml.Null, defaultScope, body.toSeq: _*), Nil))

Contributor

romainreuillon commented Jun 1, 2014

Generated code passes a zero length String to Elem which throws an exception:
Right(scalaxb.fromXML[String](scala.xml.Elem("", "Body", scala.xml.Null, defaultScope, body.toSeq: _*), Nil))

romainreuillon added a commit to romainreuillon/scalaxb that referenced this issue Jun 1, 2014

@romainreuillon romainreuillon referenced this issue Jun 1, 2014

Merged

Fix #253. #255

@eed3si9n eed3si9n closed this in 6f14208 Jun 1, 2014

eed3si9n added a commit that referenced this issue Jun 1, 2014

@eed3si9n eed3si9n added this to the 1.2.0 milestone Jun 8, 2014

@eed3si9n eed3si9n added the bug label Jun 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment