By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,408 Members | 1,840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,408 IT Pros & Developers. It's quick & easy.

Problem with wsimport / NetBeans

P: 2
Hi everyone,

I'm new to using JAVA and I'm trying to interact with a web service I wrote in C#

I downloaded Netbeans & followed the instructions to point to the wsdl file
I navigated to my WSDL file http://localhost/myService/myService.asmx?WSDL

And Looking at the output of 'Web Services Manager' I see the following


Expand|Select|Wrap|Line Numbers
  1. Created dir: C:\Documents and Settings\buk110admin\.netbeans\6.0\config\WebServices\myService
  2. \jaxws\build
  3. Created dir: C:\Documents and Settings\buk110admin\.netbeans\6.0\config\WebServices\myService
  4. \jaxws\src
  5. Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
command line: wsimport [additional args were here]

Expand|Select|Wrap|Line Numbers
  1. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
  2. at java.util.Arrays.copyOf(Arrays.java:2882)
  3. at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
  4. at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
  5. at java.lang.StringBuilder.append(StringBuilder.java:119)
  6. at com.sun.tools.xjc.generator.bean.field.UntypedListField.generateAccessors(UntypedListField.java:130)
  7. at com.sun.tools.xjc.generator.bean.field.AbstractListField.generate(AbstractListField.java:127)
  8. at com.sun.tools.xjc.generator.bean.field.UntypedListField.<init>(UntypedListField.java:107)
  9. at com.sun.tools.xjc.generator.bean.field.UntypedListFieldRenderer.generate(UntypedListFieldRenderer.java:58)
  10. at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:75)
  11. at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:744)
  12. at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:532)
  13. at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:234)
  14. at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:174)
  15. at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)
  16. at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:246)
  17. at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
  18. at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134)
  19. at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2193)
  20. at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187)
  21. at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133)
  22. at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:165)
  23. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  25. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  26. at java.lang.reflect.Method.invoke(Method.java:597)
  27. at com.sun.tools.ws.Invoker.invoke(Invoker.java:116)
  28. at com.sun.tools.ws.WsImport.main(WsImport.java:52)
  29. C:\Program Files\NetBeans 6.0.1\enterprise4\modules\ext\build-ws.xml:125: wsimport failed
  30. BUILD FAILED (total time: 21 seconds)
  31.  
  32.  
  33.  

I'm totally lost as of what to do. I went to the netbeans.conf file & changed the default options to


Expand|Select|Wrap|Line Numbers
  1. netbeans_default_options="-J-Dcom.sun.aas.installRoot=\"C:\Sun\AppServer\" -J-client -J-Xss2m -J-Xms256m -J-XX:PermSize=768m -J-XX:MaxPermSize=768m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true"
Can anyone provide any advice/guidance/suggestions/help
Mar 17 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.