Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Error message displayed when using Ant, but not with launch configuration
Error message displayed when using Ant, but not with launch configuration [message #562944] Thu, 11 December 2008 15:43
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Hia there,

I was just wondering whether the following behaviour I get is due to my
configuration/me being new to Epsilon or something:

I have an ETL script that had the following line:

var coll : Collection := Set.createInstance(); -- #1

When I ran the translation via a launch script, I got no error in the
Epsilon console. But when I moved to running it via an Ant build file, I
got the following error message (although, the translation succeeds to the
end):

------------------------
java.lang.InstantiationException
at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.ne wInstance(InstantiationExceptionConstructorAccessorImpl.java :30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.epsilon.eol.types.EolCollectionType.createInstan ce(EolCollectionType.java:43)
at
org.eclipse.epsilon.eol.execute.VarStatementExecutor.execute (VarStatementExecutor.java:47)
at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
...
...
------------------------

If I change the statement to:

var coll : Set := Set.createInstance(); -- #2

.. then running via either the launch configuration or Ant file, the error
does not get thrown (and again, the translation runs fine to the end).

The problem isn't a major one as it's easy to get round, but I was just
curious as to whether statements like #1 are permitted.

Also, I tend to develop an etl translation in combination with a launch
configuration, to begin with, and so wasn't aware of the problem until it
was run via Ant.

I may be doing something really silly here, so apologies in advance :)

Edd
Previous Topic:ETL and UML Stereotypes
Next Topic:Error message displayed when using Ant, but not with launch configuration
Goto Forum:
  


Current Time: Thu Mar 28 13:08:11 GMT 2024

Powered by FUDForum. Page generated in 0.02236 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top