You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Michael Imhof (JIRA)" <ji...@apache.org> on 2007/02/21 14:00:23 UTC
[jira] Created: (OFBIZ-746) ObjectType does not recognize arrays!!
ObjectType does not recognize arrays!!
--------------------------------------
Key: OFBIZ-746
URL: https://issues.apache.org/jira/browse/OFBIZ-746
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
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)
Class:
=====
ObjectType.java
Method:
======
public static Class loadInfoClass(String typeName, ClassLoader loader)
Solution:
=======
Adding array support at the beginning of the method:
public static Class loadInfoClass(String typeName, ClassLoader loader) {
// Array support
if (typeName.endsWith("[]")) {
if (Character.isLowerCase(typeName.charAt(0)) && typeName.indexOf(".") < 0) {
typeName = "[" + typeName.substring(0, 1).toUpperCase();
} else {
Class arrayClass = loadInfoClass(typeName.replace("[]", ""), loader);
typeName = "[L" + arrayClass.getName().replace("[]", "") + ";";
}
}
// End array support
//Class infoClass = null;
try {
return ObjectType.loadClass(typeName, loader);
} catch (SecurityException se1) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (OFBIZ-746) ObjectType does not recognize arrays!!
Posted by "Michael Imhof (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Imhof reopened OFBIZ-746:
---------------------------------
ObjectType.java fixes the problem now.
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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, patch746.txt, patch746.txt
>
>
> 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.
[jira] Updated: (OFBIZ-746) ObjectType does not recognize arrays!!
Posted by "Michael Imhof (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Imhof updated OFBIZ-746:
--------------------------------
Attachment: patch746.txt
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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
> Attachments: patch746.txt, patch746.txt
>
>
> 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)
> Class:
> =====
> ObjectType.java
> Method:
> ======
> public static Class loadInfoClass(String typeName, ClassLoader loader)
> Solution:
> =======
> Adding array support at the beginning of the method:
> public static Class loadInfoClass(String typeName, ClassLoader loader) {
> // Array support
> if (typeName.endsWith("[]")) {
> if (Character.isLowerCase(typeName.charAt(0)) && typeName.indexOf(".") < 0) {
> typeName = "[" + typeName.substring(0, 1).toUpperCase();
> } else {
> Class arrayClass = loadInfoClass(typeName.replace("[]", ""), loader);
> typeName = "[L" + arrayClass.getName().replace("[]", "") + ";";
> }
> }
> // End array support
>
> //Class infoClass = null;
> try {
> return ObjectType.loadClass(typeName, loader);
> } catch (SecurityException se1) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (OFBIZ-746) ObjectType does not recognize arrays!!
Posted by "Michael Imhof (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Imhof resolved OFBIZ-746.
---------------------------------
Resolution: Later
Fix Version/s: SVN trunk
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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: patch746.txt, patch746.txt
>
>
> 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.
[jira] Commented: (OFBIZ-746) ObjectType does not recognize
arrays!!
Posted by "Michael Imhof (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495904 ]
Michael Imhof commented on OFBIZ-746:
-------------------------------------
Could not create patch, so I added the java file.
All changes made in the file ObjectType.java
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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, patch746.txt, patch746.txt
>
>
> 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.
[jira] Commented: (OFBIZ-746) ObjectType does not recognize
arrays!!
Posted by "Karl Eilebrecht (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497376 ]
Karl Eilebrecht commented on OFBIZ-746:
---------------------------------------
Please remove both of these patch746.txt files. They are quite confusing since after applying them, the result is not equal to the posted ObjectType.java-file.
Maybe it's better to create a new correct patch-file.
Thanks.
Karl
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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, patch746.txt, patch746.txt
>
>
> 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.
[jira] Updated: (OFBIZ-746) ObjectType does not recognize arrays!!
Posted by "Michael Imhof (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Imhof updated OFBIZ-746:
--------------------------------
Attachment: patch746.txt
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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
> Attachments: patch746.txt
>
>
> 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)
> Class:
> =====
> ObjectType.java
> Method:
> ======
> public static Class loadInfoClass(String typeName, ClassLoader loader)
> Solution:
> =======
> Adding array support at the beginning of the method:
> public static Class loadInfoClass(String typeName, ClassLoader loader) {
> // Array support
> if (typeName.endsWith("[]")) {
> if (Character.isLowerCase(typeName.charAt(0)) && typeName.indexOf(".") < 0) {
> typeName = "[" + typeName.substring(0, 1).toUpperCase();
> } else {
> Class arrayClass = loadInfoClass(typeName.replace("[]", ""), loader);
> typeName = "[L" + arrayClass.getName().replace("[]", "") + ";";
> }
> }
> // End array support
>
> //Class infoClass = null;
> try {
> return ObjectType.loadClass(typeName, loader);
> } catch (SecurityException se1) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-746) ObjectType does not recognize arrays!!
Posted by "Michael Imhof (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Imhof updated OFBIZ-746:
--------------------------------
Attachment: ObjectType.java
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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, patch746.txt, patch746.txt
>
>
> 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.
[jira] Updated: (OFBIZ-746) ObjectType does not recognize arrays!!
Posted by "Michael Imhof (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Imhof updated OFBIZ-746:
--------------------------------
Description:
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.
was:
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)
Class:
=====
ObjectType.java
Method:
======
public static Class loadInfoClass(String typeName, ClassLoader loader)
Solution:
=======
Adding array support at the beginning of the method:
public static Class loadInfoClass(String typeName, ClassLoader loader) {
// Array support
if (typeName.endsWith("[]")) {
if (Character.isLowerCase(typeName.charAt(0)) && typeName.indexOf(".") < 0) {
typeName = "[" + typeName.substring(0, 1).toUpperCase();
} else {
Class arrayClass = loadInfoClass(typeName.replace("[]", ""), loader);
typeName = "[L" + arrayClass.getName().replace("[]", "") + ";";
}
}
// End array support
//Class infoClass = null;
try {
return ObjectType.loadClass(typeName, loader);
} catch (SecurityException se1) {
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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
> Attachments: patch746.txt, patch746.txt
>
>
> 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.
[jira] Closed: (OFBIZ-746) ObjectType does not recognize arrays!!
Posted by "Michael Imhof (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Imhof closed OFBIZ-746.
-------------------------------
Resolution: Duplicate
Because the patch files are confusing and I got no rights to delete attached files, I
created a clone. And this issue will be closed.
> ObjectType does not recognize arrays!!
> --------------------------------------
>
> Key: OFBIZ-746
> URL: https://issues.apache.org/jira/browse/OFBIZ-746
> 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, patch746.txt, patch746.txt
>
>
> 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.