Issue executing a DSLD script

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue executing a DSLD script

me2stk
Hello everyone,

I am using Eclipse 3.7 and Eclipse plugin 2.5.1
I have a problem with the DSLD engine. I have a DSLD that starts with the follwoing lines:

import org.codehaus.groovy.ast.ASTNode
import org.codehaus.groovy.ast.ClassNode
import org.codehaus.groovy.ast.MethodNode
import org.codehaus.groovy.ast.Parameter
import org.codehaus.groovy.ast.GenericsType
import org.codehaus.groovy.ast.ClassHelper
import org.codehaus.groovy.ast.expr.MapEntryExpression
import org.openehealth.ipf.modules.hl7dsl.*;
import java.util.List

String GET_PREFIX = 'get'
int GET_PREFIX_LEN = GET_PREFIX.length()


On Referesh/executeI get the follwoing exception in the log:

java.lang.NoClassDefFoundError: java.lang$Integer
    at Copy of MessageAdapter.class$(Copy of MessageAdapter.dsld)
    at Copy of MessageAdapter.$get$$class$java$lang$Integer(Copy of MessageAdapter.dsld)
    at Copy of MessageAdapter.run(Copy of MessageAdapter.dsld:32)
    at org.codehaus.groovy.eclipse.dsl.script.DSLDScriptExecutor.executeScript(DSLDScriptExecutor.java:190)
    at org.codehaus.groovy.eclipse.dsl.RefreshDSLDJob.refreshProject(RefreshDSLDJob.java:285)
    at org.codehaus.groovy.eclipse.dsl.RefreshDSLDJob.run(RefreshDSLDJob.java:219)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Seems that int GET_PREFIX_LEN = GET_PREFIX.length()  causes this.

This seems to break the backwards compatibility and makes my already disctributed script unusable. Should I file an issue about this? :)


Thanks,
Mitko





Reply | Threaded
Open this post in threaded view
|

Re: Issue executing a DSLD script

Andrew Eisenberg
Hi,

Yes, please raise an issue for this.  At first glance, this doesn't
look dsld related.  You are saying that this happens on 2.5.1, but not
in 2.5.0?  Are you using groovy 1.8?  Also, can you reproduce this
problem outside of a dsld file?

I am currently on vacation, so I wpn't be able to really look at this
until Monday.

On Fri, Jul 8, 2011 at 2:37 AM, me2stk <[hidden email]> wrote:

> Hello everyone,
>
> I am using Eclipse 3.7 and Eclipse plugin 2.5.1
> I have a problem with the DSLD engine. I have a DSLD that starts with the
> follwoing lines:
>
> import org.codehaus.groovy.ast.ASTNode
> import org.codehaus.groovy.ast.ClassNode
> import org.codehaus.groovy.ast.MethodNode
> import org.codehaus.groovy.ast.Parameter
> import org.codehaus.groovy.ast.GenericsType
> import org.codehaus.groovy.ast.ClassHelper
> import org.codehaus.groovy.ast.expr.MapEntryExpression
> import org.openehealth.ipf.modules.hl7dsl.*;
> import java.util.List
>
> String GET_PREFIX = 'get'
> int GET_PREFIX_LEN = GET_PREFIX.length()
>
>
> On Referesh/executeI get the follwoing exception in the log:
>
> java.lang.NoClassDefFoundError: java.lang$Integer
>     at Copy of MessageAdapter.class$(Copy of MessageAdapter.dsld)
>     at Copy of MessageAdapter.$get$$class$java$lang$Integer(Copy of
> MessageAdapter.dsld)
>     at Copy of MessageAdapter.run(Copy of MessageAdapter.dsld:32)
>     at
> org.codehaus.groovy.eclipse.dsl.script.DSLDScriptExecutor.executeScript(DSLDScriptExecutor.java:190)
>     at
> org.codehaus.groovy.eclipse.dsl.RefreshDSLDJob.refreshProject(RefreshDSLDJob.java:285)
>     at
> org.codehaus.groovy.eclipse.dsl.RefreshDSLDJob.run(RefreshDSLDJob.java:219)
>     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> Seems that int GET_PREFIX_LEN = GET_PREFIX.length()  causes this.
>
> This seems to break the backwards compatibility and makes my already
> disctributed script unusable. Should I file an issue about this? :)
>
>
> Thanks,
> Mitko
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Issue executing a DSLD script

me2stk
Hi Andrew,

Thanks for the commitment.
I installed a fresh Eclipse 3.7 and plugin version 2.5.1 to try to reproduce the issue once again in a clean environment.
The good news is that I could not reproduce the issue within the new environment. I tested additionally on a colleague's Eclipse, we did not notice any problems there as well.
I will keep an eye on this in the future, and will let you know if I notice anything wrong or if this happens again.

Regards,
Mitko







On Fri, Jul 8, 2011 at 3:27 PM, Andrew Eisenberg <[hidden email]> wrote:
Hi,

Yes, please raise an issue for this.  At first glance, this doesn't
look dsld related.  You are saying that this happens on 2.5.1, but not
in 2.5.0?  Are you using groovy 1.8?  Also, can you reproduce this
problem outside of a dsld file?

I am currently on vacation, so I wpn't be able to really look at this
until Monday.

On Fri, Jul 8, 2011 at 2:37 AM, me2stk <[hidden email]> wrote:
> Hello everyone,
>
> I am using Eclipse 3.7 and Eclipse plugin 2.5.1
> I have a problem with the DSLD engine. I have a DSLD that starts with the
> follwoing lines:
>
> import org.codehaus.groovy.ast.ASTNode
> import org.codehaus.groovy.ast.ClassNode
> import org.codehaus.groovy.ast.MethodNode
> import org.codehaus.groovy.ast.Parameter
> import org.codehaus.groovy.ast.GenericsType
> import org.codehaus.groovy.ast.ClassHelper
> import org.codehaus.groovy.ast.expr.MapEntryExpression
> import org.openehealth.ipf.modules.hl7dsl.*;
> import java.util.List
>
> String GET_PREFIX = 'get'
> int GET_PREFIX_LEN = GET_PREFIX.length()
>
>
> On Referesh/executeI get the follwoing exception in the log:
>
> java.lang.NoClassDefFoundError: java.lang$Integer
>     at Copy of MessageAdapter.class$(Copy of MessageAdapter.dsld)
>     at Copy of MessageAdapter.$get$$class$java$lang$Integer(Copy of
> MessageAdapter.dsld)
>     at Copy of MessageAdapter.run(Copy of MessageAdapter.dsld:32)
>     at
> org.codehaus.groovy.eclipse.dsl.script.DSLDScriptExecutor.executeScript(DSLDScriptExecutor.java:190)
>     at
> org.codehaus.groovy.eclipse.dsl.RefreshDSLDJob.refreshProject(RefreshDSLDJob.java:285)
>     at
> org.codehaus.groovy.eclipse.dsl.RefreshDSLDJob.run(RefreshDSLDJob.java:219)
>     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> Seems that int GET_PREFIX_LEN = GET_PREFIX.length()  causes this.
>
> This seems to break the backwards compatibility and makes my already
> disctributed script unusable. Should I file an issue about this? :)
>
>
> Thanks,
> Mitko
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email