• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Using Axis2 the WSDL2Java is giving Java:16: "Object cannot be applied to" errors.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am attempting the build a Web Service client using the WSDL2Java utility. I have started to code a test program to use the stub classes but when I attempt to compile this program I get 100 errors like this:

^
.\com\oracle\xmlns\Enterprise\Tools\schemas\M306457_V1\SDK_STOCKCOMP_NAMETypeSha
pe.java:16: Object() in java.lang.Object cannot be applied to (java.lang.String)

super(_value);
^
.\com\oracle\xmlns\Enterprise\Tools\schemas\M254026_V1\ErrortextTypeShape.java:1
6: Object() in java.lang.Object cannot be applied to (java.lang.String)
super(_value);
^
.\com\oracle\xmlns\Enterprise\Tools\schemas\M787794_V1\SDK_STOCK_TICKERTypeShape
.java:16: Object() in java.lang.Object cannot be applied to (java.lang.Object)
super((java.lang.Object) _value);
^

I am using Java 1.5.0_06 and Axis 1.4. Is there a compiler option or some way to handle to casting issue?

Please help.
John
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This issue belonging to Compatablity of software, U can use the Jdk1.4 and below.
 
Goodbye moon men. Hello tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic