travis ci build failure on java9 - java

I have upgraded my project to jdk-9 env. But when I pushed the branch, I met a building problem that travis-ci didn’t find the package “Javax.json” as following:
My configuration:
{
"language": "java",
"install": "mvn install -DskipTests=true -Dmaven.javadoc.skip=true",
"jdk": "oraclejdk9",
"group": "stable",
"dist": "trusty",
"os": "linux"
}
Error information(partly):
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/helloidea/HelloIdea.java:[7,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[14,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[15,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[48,9] cannot find symbol
symbol: class JsonObjectBuilder
location: class com.arvinsichuan.mongojdbc.MongoJDBC
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[48,41] cannot find symbol
symbol: variable Json
location: class com.arvinsichuan.mongojdbc.MongoJDBC
[INFO] 5 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.799 s
[INFO] Finished at: 2017-09-22T05:49:56Z
[INFO] Final Memory: 23M/512M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:3.1:compile (default-compile) on project JEETwentySeventeenAutumn:
Compilation failure: Compilation failure:
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/helloidea/HelloIdea.java:[7,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[14,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[15,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[48,9] cannot find symbol
[ERROR] symbol: class JsonObjectBuilder
[ERROR] location: class com.arvinsichuan.mongojdbc.MongoJDBC
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[48,41] cannot find symbol
[ERROR] symbol: variable Json
[ERROR] location: class com.arvinsichuan.mongojdbc.MongoJDBC
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
The command "mvn install -DskipTests=true -Dmaven.javadoc.skip=true" failed
and exited with 1 during .
Your build has been stopped.

Add the dependency:
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.1</version>
</dependency>

Related

GWT application fails with IllegalArgumentException in org.objectweb.asm.ClassVisitor

We have a larger GWT application that used to be built with GWT v2.8.0. I am trying to upgrade it to GWT v2.9.0.
Compilation and packaging etc. all works fine, but when I try to start it (via maven using the goal gwt:run) I get the below error and stacktrace.
Any idea anyone, what is causing this and if and how one can fix this?
I am using an AdopOpenJDK v8.0.292.10 (hotspot) as runtime.
[INFO] --- gwt-maven-plugin:2.9.0:run (default-cli) # myapp-web ---
[INFO] create exploded Jetty webapp in D:\Projects\myapp-web\target\myapp
[INFO] Super Dev Mode starting up
[INFO] workDir: C:\Users\mms\AppData\Local\Temp\gwt-codeserver-3584342502042631589.tmp
[INFO] Loading Java files in com.example.myapp.MyApp.
[ERROR] java.lang.IllegalArgumentException
[ERROR] at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
[ERROR] at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
[ERROR] at com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor.<init>(BytecodeSignatureMaker.java:59)
[ERROR] at com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
[ERROR] at com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
[ERROR] at com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
[ERROR] at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:41)
[ERROR] at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:36)
[ERROR] at com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:100)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:349)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:532)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:464)
[ERROR] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[ERROR] at com.google.gwt.dev.codeserver.Recompiler.initWithoutPrecompile(Recompiler.java:213)
[ERROR] at com.google.gwt.dev.codeserver.Outbox.maybePrecompile(Outbox.java:89)
[ERROR] at com.google.gwt.dev.codeserver.Outbox.<init>(Outbox.java:61)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.makeOutboxTable(CodeServer.java:192)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:151)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:104)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:55)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:112)
[ERROR] at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:91)
[ERROR] at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:666)
[ERROR] at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:785)
[ERROR] at com.google.gwt.dev.DevMode.doStartup(DevMode.java:551)
[ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:888)
[ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:705)
[ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:432)
Firstly I would make sure you have deleted any GWT caching files/directories. Look in C:\Users\mms\AppData\Local\Temp\ for any files/folders starting with gwt.
Another possibility is that you have dependencies in your project that are using an older version of the asm.jar library that is incompatible with the GWT compiler.
In more detail, com.google.gwt:gwt-dev:2.9.0 is built against org.ow2.asm:7.1 . Check that your project does not have a dependency on ASM that is earlier than 7. (Note that this could be a transitive dependency.)

How to work on outbox pattern using debezium?

Do anybody has a good link to create outbox patten using debezium ?
Steps mentioned in below URL is not seems to be working .
https://github.com/debezium/debezium-examples/tree/master/outbox
Error Trace :
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Debezium Outbox Demo - Build Aggregator 1.0.0-SNAPSHOT:
[INFO]
[INFO] Debezium Outbox Demo - Build Aggregator ............ SUCCESS [ 1.729 s]
[INFO] Debezium Outbox Demo - Order Service ............... FAILURE [ 43.897 s]
[INFO] Debezium Outbox Demo - Shipment Service ............ FAILURE [ 45.137 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.723 s (Wall Clock)
[INFO] Finished at: 2021-03-06T01:04:50+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.12.0.Final:build (default) on project outbox-order-service: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Cannot find the native-image in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using gu install native-image
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImageExecutable(NativeImageBuildStep.java:627)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImage(NativeImageBuildStep.java:343)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:112)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:832)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.12.0.Final:build (default) on project outbox-shipment-service: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Cannot find the native-image in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using gu install native-image
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImageExecutable(NativeImageBuildStep.java:627)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImage(NativeImageBuildStep.java:343)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:112)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:832)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :outbox-order-service
All the information is actually in the error message:
Cannot find the native-image in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using gu install native-image
You're trying to build the application as a GraalVM native binary, but don't have the required tooling installed for that. So either install the native-image tool (see the related Quarkus guide for details), or build as a JVM application instead (by setting QUARKUS_BUILD to jvm).

error jython when running command "mvn clean package"

I am facing the following error when I run the maven command mvn clean package. The error is :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:27 min
[INFO] Finished at: 2019-12-03T14:03:55+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.sf.mavenjython:jython-compile-maven-plugin:1.4:jython (default) on project core-ism-engine: Jython failed with return code: -1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :core-ism-engine

Maven Play Framework 1.3.0-RC3 upgrade

I've a Play Framework 1.2.7 project which is managed by Maven. Now I am trying to upgrade to Play Framework version 1.3.0
What am I doing the way, how to properly upgrade from Play framework 1.2 to 1.3?
Maven play plugin in the current pom.xml
<parent>
<groupId>com.google.code.maven-play-plugin</groupId>
<artifactId>play-app-default-parent</artifactId>
<version>1.0.0-beta7</version>
</parent>
Changed play plugin to
<parent>
<groupId>com.google.code.maven-play-plugin</groupId>
<artifactId>play13-app-default-parent</artifactId>
<version>1.0.0-beta7</version>
</parent>
Maven --version
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T02:58:10+06:00)
Maven home: /usr/local/Cellar/maven/3.2.3/libexec
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"
mvn package clean and mvn install output
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # gui ---
[INFO]
[INFO] --- play-maven-plugin:1.0.0-beta7:initialize (default-initialize) # gui ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 38 source files to /Users/sultan/project/gui/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/sultan/project/gui/app/models/Dataset.java:[7,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/AbstractInstance.java:[14,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/User.java:[10,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[19,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/AccessGroup.java:[7,36] package javax.validation.constraints does not exist
[INFO] 27 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:16 min
[INFO] Finished at: 2015-01-15T14:45:00+06:00
[INFO] Final Memory: 26M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project gui: Compilation failure: Compilation failure:
[ERROR] /Users/sultan/project/gui/app/models/AbstractInstance.java:[29,6] cannot find symbol
[ERROR] symbol: class NotNull
[ERROR] location: class models.AbstractInstance
[ERROR] /Users/sultan/project/gui/app/models/User.java:[40,6] cannot find symbol
[ERROR] symbol: class NotNull
[ERROR] location: class models.User
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[30,6] cannot find symbol
[ERROR] symbol: class NotNull
[ERROR] location: class models.Experiment
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[49,6] cannot find symbol
[ERROR] symbol: class NotNull
[ERROR] location: class models.Experiment
[ERROR] symbol: class ConstraintViolationException
[ERROR] location: class controllers.ExperimentController
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
I have tried to upgrade Hibernate but it didn't help
Check if you have marked any dependency as a runtime dependency. Try changing the scope to compile.
play13-app-default-parent:1.0.0-beta7 depends on play 1.3.0-RC1. This version of Play! does not contain validation-api in it's dependencies, it was added in 1.3.0-RC2 but neither 1.3.0-RC2 nor 1.3.0-RC3 were deployed to Maven central. 1.3.0 was deployed.
Next version of play13-app-default-parent will depend on 1.3.0.
For now you have to add one project property to switch to 1.3.0:
<properties>
...
<play.version>1.3.0</play.version>
</properties>

Building HighCharts-Export Server 2.1 Fails

I have downloaded the latest highcharts-exporter following the instructions here. I am running this on Windows7 x64 locally and it will eventually be in a Windows production environment using Jetty9.
I have changed one line in highcharts-export/src/main/resources/app.properties:
# location of the phantomjs executable, could be for example /usr/local/bin/phantomjs
exec = /Scripts/phantomjs
I have maven (3.0.5) installed and configured. I last built this project before the 3.x release of HighCharts. That build was successful.
When I try to build now I get the following output. Any info here would be great.
EDIT
It appears that these errors are caused by left over files from previous version of highcharts-export. I have done a complete clean of the entire directory to start fresh. I am still getting one error that makes it not build:
C:\hc-exporter>mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.highcharts.export:highcharts-export:war:2.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ecli
pse-plugin is missing. # line 150, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building highcharts-export 2.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # highcharts-export --
-
[INFO] Deleting C:\hc-exporter\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # highcharts
-export ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # highcharts-ex
port ---
[INFO] Compiling 13 source files to C:\hc-exporter\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact
ory.java:[68,29] error: cannot find symbol
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.652s
[INFO] Finished at: Thu May 16 13:53:36 EDT 2013
[INFO] Final Memory: 11M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-compile) on project highcharts-export: Compilation failure
[ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact
ory.java:[68,29] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
C:\hc-exporter>
Old errors - just here for reference.
C:\hc-exporter>mvn -version Apache Maven 3.0.5
(r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51: 28-0500)
Maven home: C:\apache-maven-3.0.5 Java version: 1.7.0_10, vendor:
Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_10\jre
Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7",
version: "6.1", arch: "amd64", family: "windows" C:\hc-exporter>mvn
clean package [INFO] Scanning for projects... [WARNING] [WARNING] Some
problems were encountered while building the effective model for
com.highcharts.export:highcharts-export:war:2.0.1 [WARNING]
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ecli
pse-plugin is missing. # line 150, column 12 [WARNING] [WARNING] It is
highly recommended to fix these problems because they threaten t he
stability of your build. [WARNING] [WARNING] For this reason, future
Maven versions might no longer support buildin g such malformed
projects. [WARNING] [INFO] [INFO]
------------------------------------------------------------------------ [INFO] Building highcharts-export 2.0.1 [INFO]
------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) #
highcharts-export --
- [INFO] Deleting C:\hc-exporter\target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) # highcharts
-export --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) #
highcharts-ex port --- [INFO] Compiling 16 source files to
C:\hc-exporter\target\classes [INFO]
------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO]
------------------------------------------------------------- [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[8,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[9,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[10,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[11,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[12,40] error: package org.apache.batik.transcoder.image does not
exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[13,40] error: package org.apache.batik.transcoder.image does not
exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[14,25] error: package org.apache.fop.svg does not exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[32,34] error: cannot find symbol [ERROR] symbol: class
TranscoderException location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[63,1
5] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFactory.java
:[68,29] error: cannot find symbol [ERROR] symbol: variable ACTIVE
location: class ServerState
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[34,2
] error: cannot find symbol [ERROR] symbol: class TranscoderInput
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[34,3
0] error: cannot find symbol [ERROR] symbol: class TranscoderInput
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[35,2
] error: cannot find symbol [ERROR] symbol: class TranscoderOutput
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[35,3
7] error: cannot find symbol [ERROR] symbol: class
TranscoderOutput location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[37,2
] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[45,3
3] error: cannot find symbol [ERROR] symbol: variable
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[53,3
4] error: cannot find symbol [ERROR] symbol: variable
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[66,2
] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[70,2
0] error: cannot find symbol [ERROR] symbol: class PNGTranscoder
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[73,2
0] error: cannot find symbol [ERROR] symbol: class JPEGTranscoder
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[74,3
3] error: cannot find symbol [ERROR] symbol: variable
JPEGTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[78,2
0] error: cannot find symbol [INFO] 22 errors [INFO]
------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------ [INFO] Total time: 7.741s [INFO] Finished at: Thu May 16 12:54:29 EDT
2013 [INFO] Final Memory: 11M/122M [INFO]
------------------------------------------------------------------------ [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-compile) on project highcharts-export: Compilation failure: Compilation failure: [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[8,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[9,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[10,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[11,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[12,40] error: package org.apache.batik.transcoder.image does not
exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[13,40] error: package org.apache.batik.transcoder.image does not
exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[14,25] error: package org.apache.fop.svg does not exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[32,34] error: cannot find symbol [ERROR] symbol: class
TranscoderException [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[63,15] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact
ory.java:[68,29] error: cannot find symbol [ERROR] symbol: variable
ACTIVE [ERROR] location: class ServerState [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[34,2] error: cannot find symbol [ERROR] symbol: class
TranscoderInput [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[34,30] error: cannot find symbol [ERROR] symbol: class
TranscoderInput [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[35,2] error: cannot find symbol [ERROR] symbol: class
TranscoderOutput [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[35,37] error: cannot find symbol [ERROR] symbol: class
TranscoderOutput [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[37,2] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[45,33] error: cannot find symbol [ERROR] symbol: variable
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[53,34] error: cannot find symbol [ERROR] symbol: variable
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[66,2] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[70,20] error: cannot find symbol [ERROR] symbol: class
PNGTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[73,20] error: cannot find symbol [ERROR] symbol: class
JPEGTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[74,33] error: cannot find symbol [ERROR] symbol: variable
JPEGTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[78,20] error: cannot find symbol [ERROR] -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable
full debug logging. [ERROR] [ERROR] For more information about the
errors and possible solutions, please rea d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption
C:\hc-exporter>
This has now been fixed in the Highcharts repository on Github. So you won't need the patch anymore, just pull in the changes
I have found a solution to this problem.
zhiweihu has upload a patch that solves the issue. The problem is that ServerState class do not have the ACTIVE state.
Once you have applied the patch, you can create the package without a problem and it works as expected.

Categories

Resources