karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Build failed in Hudson: Karaf » Apache Karaf :: Shell :: Development Commands #334
Date Thu, 20 Jan 2011 07:39:13 GMT
isEmpty() method on java.lang.String is JDK 1.6 specific.

Hudson build using JDK 1.5.

AFAIR we agreed that:
- Karaf 2.2.x == JDK 1.5
- Karaf 3.0.x == JDK 1.6

It means that isEmpty() shouldn't be used for now on the trunk as it's 
Karaf 2.2.x.

Could you replace isEmpty() but if (string == null || 
string.trim().length() < 1) ?

Thanks
Regards
JB

On 01/20/2011 08:35 AM, Apache Hudson Server wrote:
> See<https://hudson.apache.org/hudson/job/Karaf/org.apache.karaf.shell$org.apache.karaf.shell.dev/334/>
>
> ------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Karaf :: Shell :: Development Commands
> [INFO]    task-segment: [clean, install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] [bundle:cleanVersions {execution: cleanVersions}]
> [INFO] [remote-resources:process {execution: default}]
> Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/org/ops4j/pax/url/pax-url-wrap/1.2.4/pax-url-wrap-1.2.4.pom
> [INFO] Unable to find resource 'org.ops4j.pax.url:pax-url-wrap:pom:1.2.4' in repository
servicemix (http://svn.apache.org/repos/asf/servicemix/m2-repo)
> Downloading: http://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-wrap/1.2.4/pax-url-wrap-1.2.4.pom
>
> Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/org/ops4j/pax/url/1.2.4/url-1.2.4.pom
> [INFO] Unable to find resource 'org.ops4j.pax:url:pom:1.2.4' in repository servicemix
(http://svn.apache.org/repos/asf/servicemix/m2-repo)
> Downloading: http://repo1.maven.org/maven2/org/ops4j/pax/url/1.2.4/url-1.2.4.pom
>
> Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/org/ops4j/pax/url/pax-url-mvn/1.2.4/pax-url-mvn-1.2.4.pom
> [INFO] Unable to find resource 'org.ops4j.pax.url:pax-url-mvn:pom:1.2.4' in repository
servicemix (http://svn.apache.org/repos/asf/servicemix/m2-repo)
> Downloading: http://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-mvn/1.2.4/pax-url-mvn-1.2.4.pom
>
> Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/org/ops4j/pax/url/pax-url-wrap/1.2.4/pax-url-wrap-1.2.4.jar
> [INFO] Unable to find resource 'org.ops4j.pax.url:pax-url-wrap:jar:1.2.4' in repository
servicemix (http://svn.apache.org/repos/asf/servicemix/m2-repo)
> Downloading: http://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-wrap/1.2.4/pax-url-wrap-1.2.4.jar
>
> Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/org/ops4j/pax/url/pax-url-mvn/1.2.4/pax-url-mvn-1.2.4.jar
> [INFO] Unable to find resource 'org.ops4j.pax.url:pax-url-mvn:jar:1.2.4' in repository
servicemix (http://svn.apache.org/repos/asf/servicemix/m2-repo)
> Downloading: http://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-mvn/1.2.4/pax-url-mvn-1.2.4.jar
>
> [INFO] [antrun:run {execution: copy-notice}]
> [INFO] Executing tasks
>       [copy] Warning: Could not find file<https://hudson.apache.org/hudson/job/Karaf/org.apache.karaf.shell$org.apache.karaf.shell.dev/ws/NOTICE>
 to copy.
> [INFO] Executed tasks
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 16 source files to<https://hudson.apache.org/hudson/job/Karaf/org.apache.karaf.shell$org.apache.karaf.shell.dev/ws/target/classes>
> [HUDSON] Archiving<https://hudson.apache.org/hudson/job/Karaf/org.apache.karaf.shell$org.apache.karaf.shell.dev/ws/pom.xml>
 to /home/hudson/hudson/jobs/Karaf/modules/org.apache.karaf.shell$org.apache.karaf.shell.dev/builds/2011-01-20_07-23-39/archive/org.apache.karaf.shell/org.apache.karaf.shell.dev/2.1.99-SNAPSHOT/pom.xml
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
> <https://hudson.apache.org/hudson/job/Karaf/org.apache.karaf.shell$org.apache.karaf.shell.dev/ws/src/main/java/org/apache/karaf/shell/dev/Watch.java>:[67,33]
cannot find symbol
> symbol  : method isEmpty()
> location: class java.lang.String
>
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
> <https://hudson.apache.org/hudson/job/Karaf/org.apache.karaf.shell$org.apache.karaf.shell.dev/ws/src/main/java/org/apache/karaf/shell/dev/Watch.java>:[67,33]
cannot find symbol
> symbol  : method isEmpty()
> location: class java.lang.String
>
>
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> 	at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:592)
> 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> 	at hudson.maven.agent.Main.launch(Main.java:165)
> 	at hudson.maven.MavenBuilder.call(MavenBuilder.java:165)
> 	at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:750)
> 	at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:114)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> 	at hudson.remoting.Request$2.run(Request.java:270)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
> <https://hudson.apache.org/hudson/job/Karaf/org.apache.karaf.shell$org.apache.karaf.shell.dev/ws/src/main/java/org/apache/karaf/shell/dev/Watch.java>:[67,33]
cannot find symbol
> symbol  : method isEmpty()
> location: class java.lang.String
>
>
> 	at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
> 	at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> 	at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> 	... 28 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 11 minutes 23 seconds
> [INFO] Finished at: Wed Jan 19 23:35:12 GMT-08:00 2011
> [INFO] Final Memory: 56M/328M
> [INFO] ------------------------------------------------------------------------
>

Mime
View raw message