Login  Register

Re: Users - Problem calling static method in minilang

Posted by byersa on Jan 25, 2006; 11:45pm
URL: http://ofbiz.116.s1.nabble.com/Users-Problem-calling-static-method-in-minilang-tp137072p137073.html

Of course, I was calling with Long and Integer because minilang doesn't
accept "long" and "int" which formatPaddedNumber requires. I wrote a
wrapper to convert. Is there a better way?

-Al

Al Byers wrote:

>Can anyone see why I should get the message below when running the op
>listed below that? I can work around it, but I would like to know what
>is going on. I traced it as far as I could. It finds the class, all
>right, but not the method in the class? I know that it is a long shot,
>but I am hoping someone can see an obvious error or has run into the
>same thing.
>
>Error running serviceName, 'persistContentRevisionAndItem'. ERROR: Could
>not complete the Update ContentRevision and ContentRevisionItem
>[file:/usr/local/ofbiz-esp/applications/content/script/org/ofbiz/content/compdoc/CompDocServices.xml#persistContentRevisionAndItem]
>process [Could not find method to execute named formatPaddedNumber:
>java.lang.NoSuchMethodException:
>org.ofbiz.base.util.UtilFormatOut.formatPaddedNumber(java.lang.Long,
>java.lang.Integer)]
>
>        <call-class-method method-name="formatPaddedNumber"
>class-name="org.ofbiz.base.util.UtilFormatOut"
>                    ret-field-name="paddedSeqId">
>            <field field-name="incrementedSeq" type="Long"/>
>            <field field-name="numericPadding" type="Integer"/>
>        </call-class-method>
>
>-Al
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users