> Unable to find a constructor for class org.apache.axis.types.
> NonNegativeInteger that accepts parameters of type ( java.lang.Integer
> ).
NonNegativeInteger is expecting a string (ie java.lang.String). Apparently listLen(..) returns a java.lang.Integer:
<cfoutput>
ListLen() object type = #listLen(attributes.PkgWeights).getClass().name#
</cfoutput>
So you must convert that value to a "string" first:
<cfset attributes.PkgWeights = "1,2">
<cfset objNonNegInteger = createObject("java", "org.apache.axis.types.NonNegativeInteger") />
<cfset result = objNonNegInteger.init( javacast("string", listLen(attributes.PkgWeights) ) )>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324092Subscription:
http://www.houseoffusion.com/groups/cf-talk/subscribe.cfmUnsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4