You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/04/12 12:49:43 UTC
[jira] Created: (CAMEL-458) script component does not run unit
tests
script component does not run unit tests
----------------------------------------
Key: CAMEL-458
URL: https://issues.apache.org/activemq/browse/CAMEL-458
Project: Apache Camel
Issue Type: Task
Components: camel-script
Affects Versions: 1.3.0
Reporter: Claus Ibsen
In the script component: camel-script the unit tests has been disabled.
There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-458) script component does not run unit
tests
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44076#action_44076 ]
Hadrian Zbarcea commented on CAMEL-458:
---------------------------------------
Oh, I did. Fresh m2 local repo, fresh svn local copy.
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CAMEL-458) script component does not run unit tests
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen closed CAMEL-458.
-----------------------------
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-458) script component does not run unit
tests
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CAMEL-458:
-------------------------------
Fix Version/s: 1.4.0
(was: 1.5.0)
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (CAMEL-458) script component does not run unit
tests
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hadrian Zbarcea reopened CAMEL-458:
-----------------------------------
I think there is still a problem with these:
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@269101: defining beans [camel:beanPostProcessor,camel]; root of factory hierarchy
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.062 sec <<< FAILURE!
Running org.apache.camel.language.script.JavaScriptLanguageTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.447 sec <<< FAILURE!
Running org.apache.camel.builder.script.JavaScriptExpressionTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.663 sec <<< FAILURE!
Running org.apache.camel.builder.script.Jsr223Test
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.059 sec <<< FAILURE!
Running org.apache.camel.builder.script.RubyExpressionTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.651 sec <<< FAILURE!
Running org.apache.camel.builder.script.PythonExpressionTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.651 sec <<< FAILURE!
All of them fail with an error of the following type:
-------------------------------------------------------------------------------
Test set: org.apache.camel.builder.script.Jsr223Test
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.069 sec <<< FAILURE!
testLanguageNames(org.apache.camel.builder.script.Jsr223Test) Time elapsed: 0.017 sec <<< ERROR!
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at sun.misc.Service$LazyIterator.next(Service.java:271)
at javax.script.ScriptEngineManager.initEngines(ScriptEngineManager.java:109)
at javax.script.ScriptEngineManager.access$000(ScriptEngineManager.java:37)
at javax.script.ScriptEngineManager$1.run(ScriptEngineManager.java:80)
at java.security.AccessController.doPrivileged(Native Method)
at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:78)
at javax.script.ScriptEngineManager.<init>(ScriptEngineManager.java:51)
at org.apache.camel.builder.script.Jsr223Test.testLanguageNames(Jsr223Test.java:29)
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-458) script component does not run unit
tests
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hadrian Zbarcea resolved CAMEL-458.
-----------------------------------
Resolution: Fixed
Looks like a Mac specific issue. When Java 1.6.0 is installed in osx 10.5 it overwrites /System/Library/Java/Extensions/AppleScriptEngine.jar with a 1.6 specific one.
When the ScriptEngineManager gets initialized if finds it and well, not hard to guess the rest. Moving it and the jnilib somewhere else fixes the problem.
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-458) script component does not run unit
tests
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44087#action_44087 ]
Claus Ibsen commented on CAMEL-458:
-----------------------------------
Hadrian you are on mac right? Willem and I are on XP. Could there be a platform specific problem?
It runs fine on my laptop right now
Results :
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
[INFO] [bundle:bundle]
[WARNING] Warning building bundle org.apache.camel:camel-script:bundle:1.4-SNAPSHOT : Did not
[INFO] [install:install]
[INFO] Installing D:\project\camel\components\camel-script\target\camel-script-1.4-SNAPSHOT.ja
[INFO] [bundle:install]
[INFO] Parsing file:/C:/Documents%20and%20Settings/Claus%20Ibsen/.m2/repository/repository.xml
[INFO] Installing org/apache/camel/camel-script/1.4-SNAPSHOT/camel-script-1.4-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31 seconds
[INFO] Finished at: Tue Jul 08 18:20:55 CEST 2008
[INFO] Final Memory: 12M/23M
[INFO] ------------------------------------------------------------------------
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-458) script component does not run unit
tests
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hadrian Zbarcea updated CAMEL-458:
----------------------------------
Priority: Blocker (was: Major)
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-458) script component does not run unit
tests
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44116#action_44116 ]
Hadrian Zbarcea commented on CAMEL-458:
---------------------------------------
I am on osx 10.5.4, indeed. It runs fine with java6, but not with java5 for some reason. Still looking into it.
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-458) script component does not run unit
tests
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-458:
----------------------------------
Assignee: Willem Jiang
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (CAMEL-458) script component does not
run unit tests
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44116#action_44116 ]
hadrian edited comment on CAMEL-458 at 7/9/08 6:31 AM:
---------------------------------------------------------------
I am on osx 10.5.4, indeed. It runs fine with java6, but not with java5 for some reason. Still looking into it.
I have both java5 and 6 installed on my box, but my env points to java5 and is almost identical with James' env. I know of one mac box that builds fine, which does not have have java6 installed at all.
was (Author: hadrian):
I am on osx 10.5.4, indeed. It runs fine with java6, but not with java5 for some reason. Still looking into it.
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-458) script component does not run unit
tests
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44059#action_44059 ]
Willem Jiang commented on CAMEL-458:
------------------------------------
Hi Hadrain,
Can you clean up your maven repository and try again ?
It could be wrong version of engine classes.
Willem
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-458) script component does not run unit
tests
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-458.
-------------------------------
Resolution: Fixed
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-458) script component does not run unit
tests
Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44112#action_44112 ]
Jonathan Anstey commented on CAMEL-458:
---------------------------------------
FYI This also passes on Linux.
> script component does not run unit tests
> ----------------------------------------
>
> Key: CAMEL-458
> URL: https://issues.apache.org/activemq/browse/CAMEL-458
> Project: Apache Camel
> Issue Type: Task
> Components: camel-script
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Blocker
> Fix For: 1.4.0
>
>
> In the script component: camel-script the unit tests has been disabled.
> There seems to be some problem with using the javax.script API on JDK1.5 or lower.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.