Results 1 to 3 of 3

Thread: Groovy support in sandbox

  1. #1
    Join Date
    Aug 2005
    Posts
    2

    Default Groovy support in sandbox

    Hi,

    I checked out the Groovy scripting support from sandbox a couple of day ago and tried to build it.

    Since the main code seems to be from about a year ago, there was at least one problem building it. Some changes to the cglib references needed.

    When running the tests I do get a ClassCastException when trying to cast a bean to an DynamicObject.

    java.lang.ClassCastException
    at org.springframework.beans.factory.script.groovy.Gr oovyScriptFactoryContextTests.testDependencyOnRelo adedGroovyBean(GroovyScriptFactoryContextTests.jav a:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at junit.framework.TestCase.runTest(TestCase.java:154 )
    at junit.framework.TestCase.runBare(TestCase.java:127 )
    at junit.framework.TestResult$1.protect(TestResult.ja va:106)
    at junit.framework.TestResult.runProtected(TestResult .java:124)
    at junit.framework.TestResult.run(TestResult.java:109 )
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:2 08)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:478)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:344)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:196)

    Anyone has an idea?

    I havent been able to make reloading a bean/object work, am I doing something wrong or isnt it suppose to work in the testcases.

    Any help appreciated.

    Kind Regards
    Kristofer Eriksson

  2. #2
    Join Date
    Aug 2005
    Posts
    2

    Default RE: Groovy support in sandbox

    Regarding the cglib, I found the problem. The latest cglib-nodep-2.1_x.jar has to be used and not the standard. :oops:

    But still, the test fails/code is not running. Would just like to hear if anyone actually get this to work as it should. Other posts in this forum regarding scripting support are not very recent so I am wondering what status this subject has.

    Many thanks
    Kristofer Eriksson

  3. #3
    Join Date
    Aug 2004
    Location
    Hawaii, US
    Posts
    225

    Default

    You ran into the same problem I discovered.

    Here's the link the the JIRA post:

    http://opensource2.atlassian.com/pro...rowse/SPR-1253

Similar Threads

  1. Replies: 7
    Last Post: Feb 1st, 2007, 01:47 AM
  2. Announcement: Spring IDE WebFlow Support Preview Release 2
    By Christian Dupuis in forum Announcements
    Replies: 2
    Last Post: Sep 15th, 2006, 11:50 AM
  3. JMS Subscription
    By mperham in forum JMS
    Replies: 13
    Last Post: Dec 6th, 2005, 03:07 PM
  4. New Spring Support Forums are Live
    By Colin Sampaleanu in forum Announcements
    Replies: 17
    Last Post: May 22nd, 2005, 12:57 AM
  5. Obtaining just parts of the sandbox.
    By Lachezar in forum Container
    Replies: 4
    Last Post: Mar 24th, 2005, 03:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •