You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by sam tam <sa...@gmail.com> on 2007/06/13 15:16:00 UTC
Build Failure( - Compilation failure) [ \script\ScriptInvoker.java:[52,66] unreported exception java.lang.NoSuchMethodException ]
Hello,
Am getting some compilation failure during the build !
Does any one have any solution for this !
______________________________________________________________________________________________________________
[INFO] Building Apache Tuscany Implementation Script
[INFO] task-segment: [install]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/repo/m2-incubating-repository/groovy/groov
y-all/1.0/groovy-all-1.0.pom
Downloading:
http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.
pom
[INFO] [compiler:compile]
[INFO] Compiling 5 source files to
D:\Tuscany\sca\modules\implementation-script\
target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
D:\Tuscany\sca\modules\implementation-script\src\main\java\org\apache\tuscany\sc
a\implementation\script\ScriptInvoker.java:[52,66] unreported exception
java.lan
g.NoSuchMethodException; must be caught or declared to be thrown
D:\Tuscany\sca\modules\implementation-script\src\main\java\org\apache\tuscany\sc
a\implementation\script\ScriptInvoker.java:[52,66] unreported exception
java.lan
g.NoSuchMethodException; must be caught or declared to be thrown
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 29 seconds
[INFO] Finished at: Wed Jun 13 18:37:16 IST 2007
__________________________________________________________________________________________________________________
Also i have cleaned the repo and tried again, yet the same error !
Kindly help me out !
Thanks in advance,
Sam...
Re: Build Failure( - Compilation failure) [ \script\ScriptInvoker.java:[52,66] unreported exception java.lang.NoSuchMethodException ]
Posted by ant elder <an...@apache.org>.
This looks like a bug in Apache BSF to me. The invokeMethod and
invokeFunction methods of javax.script.Invocable should declare
java.lang.NoSuchMethodExcept as a checked exception but they don't so the
Tuscany code doesn't catch that, but when building with JDK6 its using the
jsr223 api's from the jdk so you get the error.
Thanks for finding this. Any chance you'd like to submit a patch to fix it?
The class with the bug is here:
https://svn.apache.org/repos/asf/jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/Invocable.java
The JSR 223 doc is here:
http://jcp.org/aboutJava/communityprocess/edr/jsr223/
...ant
On 6/13/07, ant elder <an...@apache.org> wrote:
>
> Which JDK version are you using - are you using JDK6 by any chance? (and
> if so could you try using 5?)
>
> ...ant
>
> On 6/13/07, sam tam < samav8nenthu@gmail.com> wrote:
> >
> > Hello,
> > Am getting some compilation failure during the build !
> >
> > Does any one have any solution for this !
> >
> >
> >
> > ______________________________________________________________________________________________________________
> >
> >
> >
> > [INFO] Building Apache Tuscany Implementation Script
> > [INFO] task-segment: [install]
> > [INFO]
> >
> > -------------------------------------------------------------------------
> > ---
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > Downloading:
> > http://people.apache.org/repo/m2-incubating-repository/groovy/groov
> > y-all/1.0/groovy-all-1.0.pom
> > Downloading:
> > http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.
> > pom
> > [INFO] [compiler:compile]
> > [INFO] Compiling 5 source files to
> > D:\Tuscany\sca\modules\implementation-script\
> > target\classes
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Compilation failure
> >
> > D:\Tuscany\sca\modules\implementation-script\src\main\java\org\apache\tuscany\sc
> > a\implementation\script\ScriptInvoker.java:[52,66] unreported exception
> > java.lan
> > g.NoSuchMethodException ; must be caught or declared to be thrown
> >
> >
> >
> >
> > D:\Tuscany\sca\modules\implementation-script\src\main\java\org\apache\tuscany\sc
> > a\implementation\script\ScriptInvoker.java:[52,66] unreported exception
> > java.lan
> > g.NoSuchMethodException; must be caught or declared to be thrown
> >
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 1 minute 29 seconds
> > [INFO] Finished at: Wed Jun 13 18:37:16 IST 2007
> >
> > __________________________________________________________________________________________________________________
> >
> >
> >
> >
> >
> > Also i have cleaned the repo and tried again, yet the same error !
> >
> > Kindly help me out !
> >
> > Thanks in advance,
> >
> > Sam...
> >
>
>
Re: Build Failure( - Compilation failure) [ \script\ScriptInvoker.java:[52,66] unreported exception java.lang.NoSuchMethodException ]
Posted by ant elder <an...@apache.org>.
This looks like a bug in Apache BSF to me. The invokeMethod and
invokeFunction methods of javax.script.Invocable should declare
java.lang.NoSuchMethodExcept as a checked exception but they don't so the
Tuscany code doesn't catch that, but when building with JDK6 its using the
jsr223 api's from the jdk so you get the error.
Thanks for finding this. Any chance you'd like to submit a patch to fix it?
The class with the bug is here:
https://svn.apache.org/repos/asf/jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/Invocable.java
The JSR 223 doc is here:
http://jcp.org/aboutJava/communityprocess/edr/jsr223/
...ant
On 6/13/07, ant elder <an...@apache.org> wrote:
>
> Which JDK version are you using - are you using JDK6 by any chance? (and
> if so could you try using 5?)
>
> ...ant
>
> On 6/13/07, sam tam < samav8nenthu@gmail.com> wrote:
> >
> > Hello,
> > Am getting some compilation failure during the build !
> >
> > Does any one have any solution for this !
> >
> >
> >
> > ______________________________________________________________________________________________________________
> >
> >
> >
> > [INFO] Building Apache Tuscany Implementation Script
> > [INFO] task-segment: [install]
> > [INFO]
> >
> > -------------------------------------------------------------------------
> > ---
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > Downloading:
> > http://people.apache.org/repo/m2-incubating-repository/groovy/groov
> > y-all/1.0/groovy-all-1.0.pom
> > Downloading:
> > http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.
> > pom
> > [INFO] [compiler:compile]
> > [INFO] Compiling 5 source files to
> > D:\Tuscany\sca\modules\implementation-script\
> > target\classes
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Compilation failure
> >
> > D:\Tuscany\sca\modules\implementation-script\src\main\java\org\apache\tuscany\sc
> > a\implementation\script\ScriptInvoker.java:[52,66] unreported exception
> > java.lan
> > g.NoSuchMethodException ; must be caught or declared to be thrown
> >
> >
> >
> >
> > D:\Tuscany\sca\modules\implementation-script\src\main\java\org\apache\tuscany\sc
> > a\implementation\script\ScriptInvoker.java:[52,66] unreported exception
> > java.lan
> > g.NoSuchMethodException; must be caught or declared to be thrown
> >
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 1 minute 29 seconds
> > [INFO] Finished at: Wed Jun 13 18:37:16 IST 2007
> >
> > __________________________________________________________________________________________________________________
> >
> >
> >
> >
> >
> > Also i have cleaned the repo and tried again, yet the same error !
> >
> > Kindly help me out !
> >
> > Thanks in advance,
> >
> > Sam...
> >
>
>
Re: Build Failure( - Compilation failure) [ \script\ScriptInvoker.java:[52,66] unreported exception java.lang.NoSuchMethodException ]
Posted by ant elder <an...@apache.org>.
Which JDK version are you using - are you using JDK6 by any chance? (and if
so could you try using 5?)
...ant
On 6/13/07, sam tam <sa...@gmail.com> wrote:
>
> Hello,
> Am getting some compilation failure during the build !
>
> Does any one have any solution for this !
>
>
>
> ______________________________________________________________________________________________________________
>
>
>
> [INFO] Building Apache Tuscany Implementation Script
> [INFO] task-segment: [install]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/groovy/groov
> y-all/1.0/groovy-all-1.0.pom
> Downloading:
> http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.
> pom
> [INFO] [compiler:compile]
> [INFO] Compiling 5 source files to
> D:\Tuscany\sca\modules\implementation-script\
> target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> D:\Tuscany\sca\modules\implementation-script\src\main\java\org\apache\tuscany\sc
> a\implementation\script\ScriptInvoker.java:[52,66] unreported exception
> java.lan
> g.NoSuchMethodException; must be caught or declared to be thrown
>
>
>
>
> D:\Tuscany\sca\modules\implementation-script\src\main\java\org\apache\tuscany\sc
> a\implementation\script\ScriptInvoker.java:[52,66] unreported exception
> java.lan
> g.NoSuchMethodException; must be caught or declared to be thrown
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 29 seconds
> [INFO] Finished at: Wed Jun 13 18:37:16 IST 2007
>
>
> __________________________________________________________________________________________________________________
>
>
>
>
> Also i have cleaned the repo and tried again, yet the same error !
>
> Kindly help me out !
>
> Thanks in advance,
>
> Sam...
>