Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Plugin does not work with JDK 8 #129

Open
glassfishrobot opened this issue Mar 20, 2014 · 8 comments
Open

Plugin does not work with JDK 8 #129

glassfishrobot opened this issue Mar 20, 2014 · 8 comments

Comments

@glassfishrobot
Copy link
Contributor

Version 2.3, 2.2.1 and 2.2 do not work with JDK 8.

Error Message:
Exception in thread "main" java.lang.ClassCastException: java.lang.AssertionError cannot be cast to java.lang.Exception
at org.jvnet.jax_ws_commons.jaxws.Invoker.main(Invoker.java:87)

The Version 2.1 is working!

Environment

Windows 7 64bit
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

Affected Versions

[2.2, 2.2.1, 2.3]

@glassfishrobot
Copy link
Contributor Author

Reported by daedalus

@glassfishrobot
Copy link
Contributor Author

zentrum said:
let me know, if you need a small maven project, which reproduces the bug.

@glassfishrobot
Copy link
Contributor Author

pe4enko said:
On
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b14)
Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing)

the same error.

@glassfishrobot
Copy link
Contributor Author

diversit said:
We can across this same issue. I have already resolved it locally. The fix is fairly simple.
I wanted to summit a patch for this issue, but I cannot find where and how to attach a file to this issue.
Since I do not have the right to push changes, I put them in my own git repo at https://bitbucket.org/diversit/jaxws-maven-plugin. The fix is in the #129 branch.

If the source repo would have been a git repo, I would have been able to provide a pull request. Time to move to Git? Subversion is so 2000's.

@glassfishrobot
Copy link
Contributor Author

mplushni said:
We use this workaround to get it working:

org.jvnet.jax-ws-commons
jaxws-maven-plugin
2.3


-Djavax.xml.accessExternalSchema = all


@glassfishrobot
Copy link
Contributor Author

ralf_muehle said:
any news?

@glassfishrobot
Copy link
Contributor Author

in-fke said:
diversit we might get forward faster if you'd explain the patch you made.
Is this the relevant diff?
https://bitbucket.org/diversit/jaxws-maven-plugin/branches/compare/JAX_WS_COMMONS-129%0Dmaster#chg-jaxws-maven-plugin/src/main/java/org/jvnet/jax_ws_commons/jaxws/AbstractJaxwsMojo.java

The ClassCastException itself seems to be fixed in 2.3.1 (beta)

2.3.0

} catch (InvocationTargetException ex) {
            throw (Exception) ex.getCause();
        }

2.3.1

} catch (InvocationTargetException ex) {
            Exception rex = new RuntimeException();
            rex.initCause(ex);
            throw ex;
        }

see http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.jax-ws-commons/jaxws-maven-plugin/2.3.1-b20150201.1248/org/jvnet/jax_ws_commons/jaxws/Invoker.java?av=f
but what was the root cause?

The ClassCastException itself should be a separate issse IMHO. This only seems to be an error as the result of another error.

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA JAX_WS_COMMONS-129

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants