You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2011/05/05 08:07:03 UTC
[jira] [Created] (CXF-3491) can't refer to java.lang.Exception in
gererated client/server main code
can't refer to java.lang.Exception in gererated client/server main code
-----------------------------------------------------------------------
Key: CXF-3491
URL: https://issues.apache.org/jira/browse/CXF-3491
Project: CXF
Issue Type: Bug
Components: Tooling
Reporter: Freeman Fang
Assignee: Freeman Fang
This is related to CXF-3353, but problem exposed when pass in "all" flag which will generate client and server main process class which should refer java.lang.Exception also
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-3491) can't refer to java.lang.Exception in
gererated client/server main code
Posted by "Gayathri.Muralidharan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037919#comment-13037919 ]
Gayathri.Muralidharan commented on CXF-3491:
--------------------------------------------
Hi,
We are using cxf-codegen-plugin's (tested with both 2.3.4 and 2.4.0 versions) wsdl2java command in our multi-module maven project.
If we are throwing some exception, the generated code contains a class suffixed by _Exception.
Is there any advantage of generating code this way?
Though not a error, its forcing the client to use the generated Any-Exception-Class-Name_Exception class.
Is there any temporary workaround to avoid this Or has this been fixed already ?
Thanks,
Gayathri
> can't refer to java.lang.Exception in gererated client/server main code
> -----------------------------------------------------------------------
>
> Key: CXF-3491
> URL: https://issues.apache.org/jira/browse/CXF-3491
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.4.1, 2.3.5
>
>
> This is related to CXF-3353, but problem exposed when pass in "all" flag which will generate client and server main process class which should refer java.lang.Exception also
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-3491) can't refer to java.lang.Exception in
gererated client/server main code
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039152#comment-13039152 ]
Daniel Kulp commented on CXF-3491:
----------------------------------
Nabble is being very slow getting the message to the list....
In anycase, the Exception naming is per JAX-WS spec and not really anything we can do about it. You can use a JAX-WS binding file to customize the exception name. That should work.
> can't refer to java.lang.Exception in gererated client/server main code
> -----------------------------------------------------------------------
>
> Key: CXF-3491
> URL: https://issues.apache.org/jira/browse/CXF-3491
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.4.1, 2.3.5
>
>
> This is related to CXF-3353, but problem exposed when pass in "all" flag which will generate client and server main process class which should refer java.lang.Exception also
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-3491) can't refer to java.lang.Exception in
gererated client/server main code
Posted by "Gayathri.Muralidharan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037953#comment-13037953 ]
Gayathri.Muralidharan commented on CXF-3491:
--------------------------------------------
Hi,
Sorry for spamming the thread :)
Created http://cxf.547215.n5.nabble.com/cxf-codegen-plugin-s-wsdl2java-generates-a-class-ExceptionClass-Exception-tc4419074.html to track the issue
Thanks,
Gayathri
> can't refer to java.lang.Exception in gererated client/server main code
> -----------------------------------------------------------------------
>
> Key: CXF-3491
> URL: https://issues.apache.org/jira/browse/CXF-3491
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.4.1, 2.3.5
>
>
> This is related to CXF-3353, but problem exposed when pass in "all" flag which will generate client and server main process class which should refer java.lang.Exception also
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-3491) can't refer to java.lang.Exception in
gererated client/server main code
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved CXF-3491.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.3.5
2.4.1
commit fix
http://svn.apache.org/viewvc?rev=1099697&view=rev for trunk
http://svn.apache.org/viewvc?rev=1099701&view=rev for 2.3.x branch
> can't refer to java.lang.Exception in gererated client/server main code
> -----------------------------------------------------------------------
>
> Key: CXF-3491
> URL: https://issues.apache.org/jira/browse/CXF-3491
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.4.1, 2.3.5
>
>
> This is related to CXF-3353, but problem exposed when pass in "all" flag which will generate client and server main process class which should refer java.lang.Exception also
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (CXF-3491) can't refer to
java.lang.Exception in gererated client/server main code
Posted by "Gayathri.Muralidharan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037919#comment-13037919 ]
Gayathri.Muralidharan edited comment on CXF-3491 at 5/23/11 12:53 PM:
----------------------------------------------------------------------
Hi,
We are using cxf-codegen-plugin's (tested with both 2.3.4 and 2.4.0 versions) wsdl2java command in our multi-module maven project.
If we are throwing some exception, the generated code contains a class suffixed by _Exception.
Is there any advantage of generating code this way?
Though not an error, its forcing the client to use the generated Any-Exception-Class-Name_Exception class.
Is there any temporary workaround to avoid this Or has this been fixed already ?
Thanks,
Gayathri
was (Author: muralidh):
Hi,
We are using cxf-codegen-plugin's (tested with both 2.3.4 and 2.4.0 versions) wsdl2java command in our multi-module maven project.
If we are throwing some exception, the generated code contains a class suffixed by _Exception.
Is there any advantage of generating code this way?
Though not a error, its forcing the client to use the generated Any-Exception-Class-Name_Exception class.
Is there any temporary workaround to avoid this Or has this been fixed already ?
Thanks,
Gayathri
> can't refer to java.lang.Exception in gererated client/server main code
> -----------------------------------------------------------------------
>
> Key: CXF-3491
> URL: https://issues.apache.org/jira/browse/CXF-3491
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.4.1, 2.3.5
>
>
> This is related to CXF-3353, but problem exposed when pass in "all" flag which will generate client and server main process class which should refer java.lang.Exception also
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-3491) can't refer to java.lang.Exception in
gererated client/server main code
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029153#comment-13029153 ]
Freeman Fang commented on CXF-3491:
-----------------------------------
related discussion from mailing list
http://cxf.547215.n5.nabble.com/Exception-used-as-ComplexType-name-td4364282.html#a4370533
> can't refer to java.lang.Exception in gererated client/server main code
> -----------------------------------------------------------------------
>
> Key: CXF-3491
> URL: https://issues.apache.org/jira/browse/CXF-3491
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
>
> This is related to CXF-3353, but problem exposed when pass in "all" flag which will generate client and server main process class which should refer java.lang.Exception also
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-3491) can't refer to java.lang.Exception in
gererated client/server main code
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037931#comment-13037931 ]
Freeman Fang commented on CXF-3491:
-----------------------------------
Hi Gayathri,
Could you please post this question on mailing list for better track? As your question actually is unrelated to this issue.
Freeman
> can't refer to java.lang.Exception in gererated client/server main code
> -----------------------------------------------------------------------
>
> Key: CXF-3491
> URL: https://issues.apache.org/jira/browse/CXF-3491
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.4.1, 2.3.5
>
>
> This is related to CXF-3353, but problem exposed when pass in "all" flag which will generate client and server main process class which should refer java.lang.Exception also
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira