Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#69 zk: jsr 223 callout and table validation not working

closed
Carlos Ruiz
None
5
2009-12-15
2009-12-15
Marco Iora
No

Using Adempiere 342 stable from zkwebui i'm getting errors with simple callouts and beforeSave table validators written either in jython, groovy or beanshell.
The same simple scripts work fine in Adempiere 354a and in either version of Adempiere client.
-
using beanshell the root error is in bsh.NameSpace, when on an instance of ExternalNameSpace is lastly invoked this method:

private Class classForName( String name )
{
return getClassManager().classForName( name );
}

it throws a NullPointerException (evidently due to getClassManager() returning null).
-
using groovy the root error is an exception with a message saying ... in phase 'parsing' ... groovyjarjarantlr.CommonToken cannot be cast to groovyjarjarantlr.Token

please help
Regards

Discussion

  • Carlos Ruiz
    Carlos Ruiz
    2009-12-15

    • assigned_to: nobody --> globalqss
    • summary: jsr 223 callout and table validation not working --> zk: jsr 223 callout and table validation not working
    • status: open --> pending-works-for-me
     
  • Carlos Ruiz
    Carlos Ruiz
    2009-12-15

    If this is not reproducible in trunk - then it must be considered a support tracker instead of a bug.

    I don't recall totally but I think it's related to not including the jar in the deployment, there is a forum thread (or another tracker) where we faced (and solved) this problem.

    Regards,

    Carlos Ruiz

     
  • Marco Iora
    Marco Iora
    2009-12-15

    I was been unable to find the forum/tracker posts you were referencing to but your answer was insightful: in fact deploying in jboss/server/adempiere/lib
    bsh-2.0b5.jar, bsh-engine.jar and script-api.jar solved the issue.

    Thanks and Regards,
    Marco Iora

     
  • Marco Iora
    Marco Iora
    2009-12-15

    • status: pending-works-for-me --> closed