[jira] Created: (OFBIZ-1008) ObjectType does not recognize arrays!!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1008) ObjectType does not recognize arrays!!

Nicolas Malin (Jira)
ObjectType does not recognize arrays!!
--------------------------------------

                 Key: OFBIZ-1008
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
         Environment: SUSE Linux 10.1 & MySQL 5.0.18
            Reporter: Michael Imhof
             Fix For: SVN trunk


We're using ByteArrays (byte[]) in our services:

    <service name="processImage" engine="simple" default-entity-name="Archivindex"
        location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
        <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
    </service>

Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
could not find the byte array!!!!
(Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)

Please forget first patch file (smaller one).
This smaller patch doesn't solve the whole array problem.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1008) ObjectType does not recognize arrays!!

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Imhof updated OFBIZ-1008:
---------------------------------

    Attachment: ObjectType.java

> ObjectType does not recognize arrays!!
> --------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato updated OFBIZ-1008:
-------------------------------------

    Summary: ObjectType does not recognize arrays  (was: ObjectType does not recognize arrays!!)

> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-1008:
-----------------------------------

    Attachment: ObjectType_LoadClass.patch

In order to not lose this change I made a patch with revision 702232

> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java, ObjectType_LoadClass.patch
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-1008:
--------------------------------------

    Assignee: Jacques Le Roux

> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java, ObjectType_LoadClass.patch
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637237#action_12637237 ]

Jacques Le Roux commented on OFBIZ-1008:
----------------------------------------

Did not look into details yet, but I wonder why there is this "L" in
    className = "[L" + arrayClass.getName().replace("[]", "") + ";";
Sounds like a typo isn'it ?

> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java, ObjectType_LoadClass.patch
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637312#action_12637312 ]

Bilgin Ibryam commented on OFBIZ-1008:
--------------------------------------

Jacques,
it is not a type, the signature "L fully-qualified-class ;" means the class uniquely specified by that name.

> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java, ObjectType_LoadClass.patch
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637395#action_12637395 ]

Jacques Le Roux commented on OFBIZ-1008:
----------------------------------------

Oh, I see, thanks Bilgin



> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java, ObjectType_LoadClass.patch
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Imhof updated OFBIZ-1008:
---------------------------------

    Attachment: ObjectType_LoadClass2.patch

The signature of primitive data type arrays does not always follow the first letter rule
(long and boolean are exceptions):

> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java, ObjectType_LoadClass.patch, ObjectType_LoadClass2.patch
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637397#action_12637397 ]

immi edited comment on OFBIZ-1008 at 10/6/08 11:53 PM:
----------------------------------------------------------------

The signature for class arrays is (as Bilgin mentioned) "[L fully-qualified-class":
Example:
   java.lang.String[] = class [Ljava.lang.String;

The signature for primitive data type arrays is "[<Prefix>".
Be aware that the prefix does not always follow the first letter rule (long and boolean are exceptions):
byte[] = class [B
short[] = class [S
int[] = class [I
long[] = class [J
float[] = class [F
double[] = class [D
boolean[] = class [Z
char[] = class [C

I'm using this patch since one year and fixed this bug.
The fix is in: ObjectType_LoadClass2.patch

      was (Author: immi):
    The signature of primitive data type arrays does not always follow the first letter rule
(long and boolean are exceptions):
 

> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java, ObjectType_LoadClass.patch, ObjectType_LoadClass2.patch
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1008) ObjectType does not recognize arrays

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-1008.
----------------------------------

    Resolution: Fixed

Thanks Michael and Bilgin,

Michael your patch is committed revision 702377.

> ObjectType does not recognize arrays
> ------------------------------------
>
>                 Key: OFBIZ-1008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1008
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ObjectType.java, ObjectType_LoadClass.patch, ObjectType_LoadClass2.patch
>
>
> We're using ByteArrays (byte[]) in our services:
>     <service name="processImage" engine="simple" default-entity-name="Archivindex"
>         location="ch/nowhow/isgate/archiv/ArchivServices.xml" invoke="processImage" export="true">
>         <attribute name="image" type="byte[]" mode="IN" optional="false"></attribute>
>     </service>
> Sending a SOAP envelope (from the generated WSDL) to the server, ofbiz
> could not find the byte array!!!!
> (Remind that a ByteArray is not supported by OfBiz WSDL!!! We're using Java2WSDL to generate a WSDL)
> Please forget first patch file (smaller one).
> This smaller patch doesn't solve the whole array problem.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.