javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

Error diagnosis is pretty poor when #222

Open glassfishrobot opened 17 years ago

glassfishrobot commented 17 years ago

When a fault bean generated by JAX-WS and other beans in JAXB collide, the error message is very poor. It will just say:

[ERROR] generator error: com.sun.codemodel.JClassAlreadyExistsException unknown location

the problem is CustomExceptionGenerator.registerFault() method propagates JClassAlreadyExistsException (which signals a collision) in a poor way. The error shouldn't be thrown as an exception from here, but instead you should report it in this method, where you have relevant context information available, such as line number, name of the fault bean, etc.

Environment

Operating System: All Platform: All

Affected Versions

[JAXWS 2.1 EA3]

glassfishrobot commented 17 years ago

Reported by kohsuke@java.net

glassfishrobot commented 17 years ago

Was assigned to jax-ws-issues

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS-222