You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/10/13 02:39:31 UTC
[jira] Updated: (CXF-806) java2wsdl gives poor diagnosis of bad
JAXB bean class
[ https://issues.apache.org/jira/browse/CXF-806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated CXF-806:
----------------------------
Fix Version/s: (was: 2.3)
2.2.5
> java2wsdl gives poor diagnosis of bad JAXB bean class
> -----------------------------------------------------
>
> Key: CXF-806
> URL: https://issues.apache.org/jira/browse/CXF-806
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.0
> Reporter: Benson Margulies
> Assignee: Christian Schneider
> Fix For: 2.2.5
>
>
> If you try to use a class like the following as a method parameter in an SEI with java2wsdl, the basic error message will be a very uninformative report of a
> [java] Error : org.apache.cxf.service.factory.ServiceConstructionException
> [java]
> There is no useful information until you run with -verbose. At least, it should give some hint that there's a problem that will be explained by -verbose.
> (The problem is a bean-pattern property on a public field).
> /**
> *
> */
> package com.basistech.rnm;
> import java.io.Serializable;
> import com.basistech.util.ISO15924;
> /**
> * This class represents a pre-defined transliteration for a name.
> *
> */
> public class Transliteration implements Serializable {
> /**
> *
> */
> private static final long serialVersionUID = -1009032817440459241L;
> /**
> * Target script for the transliteration: an ISO15924 code.
> */
> private ISO15924 script;
> // read by JNI.
> @SuppressWarnings("unused")
> private int _script;
> /**
> * Which transliteration scheme.
> * See com.basistech.BTTransliterationSchemes for constants for this purpose.
> */
> public int scheme;
> /**
> * The transliterated form.
> */
> public String transliteration;
>
> /**
> * @return the scheme
> */
> public int getScheme() {
> return scheme;
> }
> /**
> * @param scheme the scheme to set
> */
> public void setScheme(int scheme) {
> this.scheme = scheme;
> }
> /**
> * @return the script
> */
> public ISO15924 getScript() {
> return script;
> }
> /**
> * @param script the script to set
> */
> public void setScript(ISO15924 script) {
> this.script = script;
> this._script = script.numeric();
> }
> /**
> * @return the transliteration
> */
> public String getTransliteration() {
> return transliteration;
> }
> /**
> * @param transliteration the transliteration to set
> */
> public void setTransliteration(String transliteration) {
> this.transliteration = transliteration;
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.