You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kavan Sheth <sh...@gmail.com> on 2015/05/31 14:56:41 UTC
Axis2 stub using Wsdl2java gives compilation error
Hi,
Using Axis2[1.6.2] Wsdl2Java utility to generate stub files (adb)
But getting following error during compilation of stub:
/C:/redknee/eclipse_workspace/BSSAutoV3/src/main/java/com/redknee/util/crmapi/soap/common/xsd/_2008/_08/PoolLimitStrategy.java:[350,59]
incomparable types: long and <nulltype>
/C:/redknee/eclipse_workspace/BSSAutoV3/src/main/java/com/redknee/util/crmapi/soap/common/
xsd/_2008/_08/PoolLimitStrategy.java:[350,77] long cannot be dereferenced
In code I found following snippets in *AutoGenerated* code:
public static PricePlanOptionStateType fromValue(long value)
throws java.lang.IllegalArgumentException {
PricePlanOptionStateType enumeration = (PricePlanOptionStateType)
_table_.get(value + "");
if ((enumeration == null) && !((value == null) ||
(value.equals("")))) {
throw new java.lang.IllegalArgumentException();
}
return enumeration;
}
issue lies at line
if ((enumeration == null) && !((value == null) || (value.equals("")))) {
found similar issue regarding int values, but it seems to have been fixed
in releases after 1.6.0
https://issues.apache.org/jira/browse/AXIS2-5070
So wondering whether this issue is not fixed for long primitive type or am
I making some mistake?
Also if any workaround possible, please suggest.
Re: Axis2 stub using Wsdl2java gives compilation error
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Kavan,
If you know the fix, can you please send a patch. I will try to apply,
so that we will get in next release.
Deepal
> Hi,
>
> Using |Axis2[1.6.2] Wsdl2Java| utility to generate stub files (adb)
>
> But getting following error during compilation of stub:
>
> /C:/redknee/eclipse_workspace/BSSAutoV3/src/main/java/com/redknee/util/crmapi/soap/common/xsd/_2008/_08/PoolLimitStrategy.java:[350,59]
> incomparable types: long and <nulltype>
>
> /C:/redknee/eclipse_workspace/BSSAutoV3/src/main/java/com/redknee/util/crmapi/soap/common/xsd/_2008/_08/PoolLimitStrategy.java:[350,77]
> long cannot be dereferenced
>
>
> In code I found following snippets in *AutoGenerated* code:
>
> public static PricePlanOptionStateType fromValue(long value)
>
> throws java.lang.IllegalArgumentException {
>
> PricePlanOptionStateType enumeration = (PricePlanOptionStateType)
>
> _table_.get(value + "");
>
> if ((enumeration == null) && !((value == null) ||
> (value.equals("")))) {
>
> throw new java.lang.IllegalArgumentException();
>
> }
>
> return enumeration;
>
> }
>
> issue lies at line
>
> |if ((enumeration== null) && !((value== null) || (value.equals("")))) { |
>
> found similar issue regarding int values, but it seems to have been
> fixed in releases after 1.6.0
>
> https://issues.apache.org/jira/browse/AXIS2-5070
>
> So wondering whether this issue is not fixed for long primitive type
> or am I making some mistake?
>
> Also if any workaround possible, please suggest.
>
--
Blog - http://blogs.deepal.org/