Skip to content

Instantly share code, notes, and snippets.

<profile>
<id>jdk9-build</id>
<activation>
<jdk>9</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<profile>
<id>jdk9-build</id>
<activation>
<jdk>9</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.11</version>
</dependency>
testMarshallList(org.apache.camel.dataformat.bindy.fixed.marshall.simple.BindySimpleFixedLengthObjectMarshallTest) Time elapsed: 0 sec <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: java.lang.IllegalStateException: Cannot load configuration class: org.apache.camel.spring.boot.TypeConversionConfiguration
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.cglib.proxy.Enhancer
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @5db4c359
testMarshallList(org.apache.camel.dataformat.bindy.fixed.marshall.simple.BindySimpleFixedLengthObjectMarshallTest) Time elapsed: 0 sec <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: java.lang.IllegalStateException: Cannot load configuration class: org.apache.camel.spring.boot.TypeConversionConfiguration
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.runtime.reflect.opt.Injector
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.cglib.proxy.Enhancer
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @5db4c359
@johnpoth
johnpoth / exports.error
Created April 14, 2017 10:46
exports.error
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make public final com.sun.xml.internal.bind.v2.runtime.JaxBeanInfo com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getBeanInfo(java.lang.Class) accessible:
module java.xml.bind does not "exports com.sun.xml.internal.bind.v2.runtime" to unnamed module @b968a76
<feature name='camel-olingo4' version='${project.version}' resolver='(obr)' start-level='50'>
<feature version='${project.version}'>camel-core</feature>
<feature>http</feature>
<bundle dependency='true'>mvn:commons-lang/commons-lang/${commons-lang-version}</bundle>
<bundle dependency='true'>mvn:commons-io/commons-io/${commons-io-version}</bundle>
<bundle dependency='true'>mvn:org.apache.httpcomponents/httpcore-osgi/${httpcore4-version}</bundle>
<bundle dependency='true'>mvn:org.apache.httpcomponents/httpclient-osgi/${httpclient4-version}</bundle>
<bundle dependency='true'>mvn:org.apache.httpcomponents/httpasyncclient-osgi/${httpasyncclient-version}</bundle>
<bundle dependency='true'>mvn:com.fasterxml.jackson.core/jackson-core/${jackson2-version}</bundle>
<bundle dependency='true'>mvn:com.fasterxml.jackson.core/jackson-annotations/${jackson2-version}</bundle>
@johnpoth
johnpoth / camel-spring.diff
Created November 21, 2017 11:36
java9-jaxb2-maven-plugin
--- components/camel-spring/pom.xml (date 1511193500000)
+++ components/camel-spring/pom.xml (revision )
@@ -650,6 +650,9 @@
<configuration>
<target>
<echo>Copying XSD schema to be included in JAR</echo>
+ <replace file="${project.build.directory}/schema/schema1.xsd"
+ token="xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;"
+ value="xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;"/>
<move file="${project.build.directory}/schema/schema1.xsd" tofile="${project.build.directory}/schema/camel-spring.xsd" />
#!/bin/sh
mvn clean install -Dtest=FileConsumerPreMoveLastModifiedTest -f camel-core/pom.xml
test_exit_code=$?
git checkout -- .
exit "$test_exit_code"
[jpoth@localhost ~/dev/git/apache/camel]$git bisect start HEAD camel-2.17.0
Bisecting: a merge base must be tested
[95a7910f00bb42398acd1fbedc1bd88e0f53d475] Add setContentLengthLong() method defined in ServletResponse
[jpoth@localhost ~/dev/git/apache/camel]$git bisect run ./git-run.sh
running ./git-run.sh
..... COFFEE BREAK ~ 20 minutes later