You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Neil Morrison (Created) (JIRA)" <ji...@apache.org> on 2011/11/22 05:16:40 UTC
[jira] [Created] (AXIS2-5192) WSDL2Java fails generation if a
SimpleType with a name of "prn" is used
WSDL2Java fails generation if a SimpleType with a name of "prn" is used
-----------------------------------------------------------------------
Key: AXIS2-5192
URL: https://issues.apache.org/jira/browse/AXIS2-5192
Project: Axis2
Issue Type: Bug
Components: wsdl
Affects Versions: 1.6.1, 1.5.1
Environment: Windows XP SP3, Tried multiple versions of java, AXIS 1.6.1
Reporter: Neil Morrison
Priority: Minor
We have an internal identifier which is know by the name PRN (ie. PersonReferenceNumber)
When we use an element referencing a SimpleType with the above name the WSDL2Java process hangs for numerous minutes and then fails with an IOException Device unavailable.
The problem is case-insensitive, so PRN, prn, Prn all do the same thing. Adding another letter, e.g. XPrn works just fine.
Have tried this on Axis 1.5.1 and 1.6.1 - fails on both
Have also tried generating using other java generation options, e.g. XMLBeans, etc - all seem to fail the same way
Sample schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://police.govt.nz/interface/moj/eBench" xmlns:eb="http://police.govt.nz/interface/moj/eBench" xmlns:ic="http://police.govt.nz/interfacecommon" xmlns:chg="http://police.govt.nz/charge" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="finaliseChargeRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
<xsd:element name="charge" type="xsd:string" />
<xsd:element name="namePrn" type="eb:PRN" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="finaliseChargeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="PRN">
<xsd:restriction base="xsd:long" />
</xsd:simpleType>
</xsd:schema>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Updated] (AXIS2-5192) WSDL2Java fails generation if a
SimpleType with a name of "prn" is used
Posted by "Neil Morrison (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neil Morrison updated AXIS2-5192:
---------------------------------
Labels: adb adb-codegen xml (was: )
Description:
We have an internal identifier which is know by the name PRN (ie. PersonReferenceNumber)
When we use an element referencing a SimpleType with the above name the WSDL2Java process hangs for numerous minutes and then fails with the following error:
(Location of error unknown)java.io.IOException: The device is not connected.
The problem is case-insensitive, so PRN, prn, Prn all do the same thing. Adding another letter, e.g. XPrn works just fine.
Have tried this on Axis 1.5.1 and 1.6.1 - fails on both
Have also tried generating using other java generation options, e.g. XMLBeans, etc - all seem to fail the same way
Sample schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://police.govt.nz/interface/moj/eBench" xmlns:eb="http://police.govt.nz/interface/moj/eBench" xmlns:ic="http://police.govt.nz/interfacecommon" xmlns:chg="http://police.govt.nz/charge" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="finaliseChargeRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
<xsd:element name="charge" type="xsd:string" />
<xsd:element name="namePrn" type="eb:PRN" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="finaliseChargeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="PRN">
<xsd:restriction base="xsd:long" />
</xsd:simpleType>
</xsd:schema>
-------------------------------------
23/11/2011 - Neil Morrison
I've spent a bit more time investigating the problem and refined the problem down a little so it has nothing to do with WSDL2Java
I've cut the schema down to a bare minimum:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://police.govt.nz/test" xmlns:test="http://police.govt.nz/test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:simpleType name="PRN">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
<xsd:element name="namePrn" type="test:PRN" />
</xsd:schema>
And, then used the XSD2Java generator to attempt to generate it also locks up and fails after numerous minutes
Same solution works - change the name from PRN to something like MyPRN and all works ok
Will continue looking further - if this issue needs moving to another project let me know
was:
We have an internal identifier which is know by the name PRN (ie. PersonReferenceNumber)
When we use an element referencing a SimpleType with the above name the WSDL2Java process hangs for numerous minutes and then fails with the following error:
(Location of error unknown)java.io.IOException: The device is not connected.
The problem is case-insensitive, so PRN, prn, Prn all do the same thing. Adding another letter, e.g. XPrn works just fine.
Have tried this on Axis 1.5.1 and 1.6.1 - fails on both
Have also tried generating using other java generation options, e.g. XMLBeans, etc - all seem to fail the same way
Sample schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://police.govt.nz/interface/moj/eBench" xmlns:eb="http://police.govt.nz/interface/moj/eBench" xmlns:ic="http://police.govt.nz/interfacecommon" xmlns:chg="http://police.govt.nz/charge" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="finaliseChargeRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
<xsd:element name="charge" type="xsd:string" />
<xsd:element name="namePrn" type="eb:PRN" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="finaliseChargeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="PRN">
<xsd:restriction base="xsd:long" />
</xsd:simpleType>
</xsd:schema>
> WSDL2Java fails generation if a SimpleType with a name of "prn" is used
> -----------------------------------------------------------------------
>
> Key: AXIS2-5192
> URL: https://issues.apache.org/jira/browse/AXIS2-5192
> Project: Axis2
> Issue Type: Bug
> Components: wsdl
> Affects Versions: 1.5.1, 1.6.1
> Environment: Windows XP SP3, Tried multiple versions of java, AXIS 1.6.1
> Reporter: Neil Morrison
> Priority: Minor
> Labels: adb, adb-codegen, xml
>
> We have an internal identifier which is know by the name PRN (ie. PersonReferenceNumber)
> When we use an element referencing a SimpleType with the above name the WSDL2Java process hangs for numerous minutes and then fails with the following error:
> (Location of error unknown)java.io.IOException: The device is not connected.
> The problem is case-insensitive, so PRN, prn, Prn all do the same thing. Adding another letter, e.g. XPrn works just fine.
> Have tried this on Axis 1.5.1 and 1.6.1 - fails on both
> Have also tried generating using other java generation options, e.g. XMLBeans, etc - all seem to fail the same way
> Sample schema:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema targetNamespace="http://police.govt.nz/interface/moj/eBench" xmlns:eb="http://police.govt.nz/interface/moj/eBench" xmlns:ic="http://police.govt.nz/interfacecommon" xmlns:chg="http://police.govt.nz/charge" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="finaliseChargeRequest">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="header" type="xsd:string" />
> <xsd:element name="charge" type="xsd:string" />
> <xsd:element name="namePrn" type="eb:PRN" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="finaliseChargeResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="header" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:simpleType name="PRN">
> <xsd:restriction base="xsd:long" />
> </xsd:simpleType>
> </xsd:schema>
> -------------------------------------
> 23/11/2011 - Neil Morrison
> I've spent a bit more time investigating the problem and refined the problem down a little so it has nothing to do with WSDL2Java
> I've cut the schema down to a bare minimum:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema targetNamespace="http://police.govt.nz/test" xmlns:test="http://police.govt.nz/test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
> <xsd:simpleType name="PRN">
> <xsd:restriction base="xsd:string" />
> </xsd:simpleType>
> <xsd:element name="namePrn" type="test:PRN" />
> </xsd:schema>
> And, then used the XSD2Java generator to attempt to generate it also locks up and fails after numerous minutes
> Same solution works - change the name from PRN to something like MyPRN and all works ok
> Will continue looking further - if this issue needs moving to another project let me know
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Closed] (AXIS2-5192) WSDL2Java fails generation if a
SimpleType with a name of "prn" is used
Posted by "Neil Morrison (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neil Morrison closed AXIS2-5192.
--------------------------------
Resolution: Not A Problem
Eureka - found the problem!!!
Windows has certain filenames that can't be created, e.g. lpt, con, prn, aux, etc
So, basically the system hangs creating the file PRN.java which indirectly tries to send data to the PRN device
> WSDL2Java fails generation if a SimpleType with a name of "prn" is used
> -----------------------------------------------------------------------
>
> Key: AXIS2-5192
> URL: https://issues.apache.org/jira/browse/AXIS2-5192
> Project: Axis2
> Issue Type: Bug
> Components: wsdl
> Affects Versions: 1.5.1, 1.6.1
> Environment: Windows XP SP3, Tried multiple versions of java, AXIS 1.6.1
> Reporter: Neil Morrison
> Priority: Minor
> Labels: adb, adb-codegen, xml
>
> We have an internal identifier which is know by the name PRN (ie. PersonReferenceNumber)
> When we use an element referencing a SimpleType with the above name the WSDL2Java process hangs for numerous minutes and then fails with the following error:
> (Location of error unknown)java.io.IOException: The device is not connected.
> The problem is case-insensitive, so PRN, prn, Prn all do the same thing. Adding another letter, e.g. XPrn works just fine.
> Have tried this on Axis 1.5.1 and 1.6.1 - fails on both
> Have also tried generating using other java generation options, e.g. XMLBeans, etc - all seem to fail the same way
> Sample schema:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema targetNamespace="http://police.govt.nz/interface/moj/eBench" xmlns:eb="http://police.govt.nz/interface/moj/eBench" xmlns:ic="http://police.govt.nz/interfacecommon" xmlns:chg="http://police.govt.nz/charge" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="finaliseChargeRequest">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="header" type="xsd:string" />
> <xsd:element name="charge" type="xsd:string" />
> <xsd:element name="namePrn" type="eb:PRN" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="finaliseChargeResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="header" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:simpleType name="PRN">
> <xsd:restriction base="xsd:long" />
> </xsd:simpleType>
> </xsd:schema>
> -------------------------------------
> 23/11/2011 - Neil Morrison
> I've spent a bit more time investigating the problem and refined the problem down a little so it has nothing to do with WSDL2Java
> I've cut the schema down to a bare minimum:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema targetNamespace="http://police.govt.nz/test" xmlns:test="http://police.govt.nz/test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
> <xsd:simpleType name="PRN">
> <xsd:restriction base="xsd:string" />
> </xsd:simpleType>
> <xsd:element name="namePrn" type="test:PRN" />
> </xsd:schema>
> And, then used the XSD2Java generator to attempt to generate it also locks up and fails after numerous minutes
> Same solution works - change the name from PRN to something like MyPRN and all works ok
> Will continue looking further - if this issue needs moving to another project let me know
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Updated] (AXIS2-5192) WSDL2Java fails generation if a
SimpleType with a name of "prn" is used
Posted by "Neil Morrison (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neil Morrison updated AXIS2-5192:
---------------------------------
Description:
We have an internal identifier which is know by the name PRN (ie. PersonReferenceNumber)
When we use an element referencing a SimpleType with the above name the WSDL2Java process hangs for numerous minutes and then fails with the following error:
(Location of error unknown)java.io.IOException: The device is not connected.
The problem is case-insensitive, so PRN, prn, Prn all do the same thing. Adding another letter, e.g. XPrn works just fine.
Have tried this on Axis 1.5.1 and 1.6.1 - fails on both
Have also tried generating using other java generation options, e.g. XMLBeans, etc - all seem to fail the same way
Sample schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://police.govt.nz/interface/moj/eBench" xmlns:eb="http://police.govt.nz/interface/moj/eBench" xmlns:ic="http://police.govt.nz/interfacecommon" xmlns:chg="http://police.govt.nz/charge" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="finaliseChargeRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
<xsd:element name="charge" type="xsd:string" />
<xsd:element name="namePrn" type="eb:PRN" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="finaliseChargeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="PRN">
<xsd:restriction base="xsd:long" />
</xsd:simpleType>
</xsd:schema>
was:
We have an internal identifier which is know by the name PRN (ie. PersonReferenceNumber)
When we use an element referencing a SimpleType with the above name the WSDL2Java process hangs for numerous minutes and then fails with an IOException Device unavailable.
The problem is case-insensitive, so PRN, prn, Prn all do the same thing. Adding another letter, e.g. XPrn works just fine.
Have tried this on Axis 1.5.1 and 1.6.1 - fails on both
Have also tried generating using other java generation options, e.g. XMLBeans, etc - all seem to fail the same way
Sample schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://police.govt.nz/interface/moj/eBench" xmlns:eb="http://police.govt.nz/interface/moj/eBench" xmlns:ic="http://police.govt.nz/interfacecommon" xmlns:chg="http://police.govt.nz/charge" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="finaliseChargeRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
<xsd:element name="charge" type="xsd:string" />
<xsd:element name="namePrn" type="eb:PRN" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="finaliseChargeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="header" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="PRN">
<xsd:restriction base="xsd:long" />
</xsd:simpleType>
</xsd:schema>
> WSDL2Java fails generation if a SimpleType with a name of "prn" is used
> -----------------------------------------------------------------------
>
> Key: AXIS2-5192
> URL: https://issues.apache.org/jira/browse/AXIS2-5192
> Project: Axis2
> Issue Type: Bug
> Components: wsdl
> Affects Versions: 1.5.1, 1.6.1
> Environment: Windows XP SP3, Tried multiple versions of java, AXIS 1.6.1
> Reporter: Neil Morrison
> Priority: Minor
>
> We have an internal identifier which is know by the name PRN (ie. PersonReferenceNumber)
> When we use an element referencing a SimpleType with the above name the WSDL2Java process hangs for numerous minutes and then fails with the following error:
> (Location of error unknown)java.io.IOException: The device is not connected.
> The problem is case-insensitive, so PRN, prn, Prn all do the same thing. Adding another letter, e.g. XPrn works just fine.
> Have tried this on Axis 1.5.1 and 1.6.1 - fails on both
> Have also tried generating using other java generation options, e.g. XMLBeans, etc - all seem to fail the same way
> Sample schema:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema targetNamespace="http://police.govt.nz/interface/moj/eBench" xmlns:eb="http://police.govt.nz/interface/moj/eBench" xmlns:ic="http://police.govt.nz/interfacecommon" xmlns:chg="http://police.govt.nz/charge" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="finaliseChargeRequest">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="header" type="xsd:string" />
> <xsd:element name="charge" type="xsd:string" />
> <xsd:element name="namePrn" type="eb:PRN" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="finaliseChargeResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="header" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:simpleType name="PRN">
> <xsd:restriction base="xsd:long" />
> </xsd:simpleType>
> </xsd:schema>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org