[ 
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 via email to