You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "benson margulies (JIRA)" <ji...@apache.org> on 2007/07/18 11:54:04 UTC
[jira] Created: (CXF-806) java2wsdl gives poor diagnosis of bad
JAXB bean class
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
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.
[jira] Assigned: (CXF-806) java2wsdl gives poor diagnosis of bad
JAXB bean class
Posted by "Bozhong Lin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bozhong Lin reassigned CXF-806:
-------------------------------
Assignee: jimma
> 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: jimma
>
> 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.