java - Web Service and method with parameters -


i'm using eclipse create webservice manage vehicle. have problem method want use in webservice. sofware return me error when select method need.

here error :

iwab0398e error in generating wsdl java: java.lang.illegalstateexception: error looking paramter names in bytecode: unexpected bytes in file (i past full trace @ end of message)

i don't know why error happens. after few test, notice happens when try use parameters in method.

by exemple have same error method 1 :

public string test(string lol) {         return "a";     } 

but not 1 :

public string test() {     return "a"; } 

it seems i'm missing important point can't find information. can guide me ?

here full error trace if can :

iwab0398e error in generating wsdl java: java.lang.illegalstateexception: error looking paramter names in bytecode: unexpected bytes in file

java.lang.illegalstateexception: error looking paramter names in bytecode: unexpected bytes in file  @ org.apache.axis.utils.bytecode.classreader.readcpool(classreader.java:353)  @ org.apache.axis.utils.bytecode.paramreader.<init>(paramreader.java:75)  @ org.apache.axis.utils.bytecode.paramreader.<init>(paramreader.java:55)  @ org.apache.axis.utils.bytecode.paramnameextractor.getparameternamesfromdebuginfo(paramnameextractor.java:58)  @ org.apache.axis.description.javaservicedesc.getparamnames(javaservicedesc.java:1429)  @ org.apache.axis.description.javaservicedesc.createoperationformethod(javaservicedesc.java:1254)  @ org.apache.axis.description.javaservicedesc.createoperationsforname(javaservicedesc.java:1150)  @ org.apache.axis.description.javaservicedesc.getsyncedoperationsforname(javaservicedesc.java:1112)  @ org.apache.axis.description.javaservicedesc.loadservicedescbyintrospectionrecursive(javaservicedesc.java:962)  @ org.apache.axis.description.javaservicedesc.loadservicedescbyintrospection(javaservicedesc.java:896)  @ org.apache.axis.description.javaservicedesc.loadservicedescbyintrospection(javaservicedesc.java:846)   @ org.apache.axis.description.javaservicedesc.getoperations(javaservicedesc.java:410)  @ org.apache.axis.wsdl.fromjava.emitter.writeporttype(emitter.java:1016)  @ org.apache.axis.wsdl.fromjava.emitter.getwsdl(emitter.java:484)  @ org.apache.axis.wsdl.fromjava.emitter.emit(emitter.java:331)  @ org.apache.axis.wsdl.fromjava.emitter.emit(emitter.java:430)  @ org.apache.axis.tools.ant.wsdl.java2wsdlanttask.execute(java2wsdlanttask.java:243)  @ org.eclipse.jst.ws.internal.axis.consumption.core.command.java2wsdlcommand.executeanttask(java2wsdlcommand.java:180)  @ org.eclipse.jst.ws.internal.axis.consumption.core.command.java2wsdlcommand.execute(java2wsdlcommand.java:95)  @ org.eclipse.jst.ws.internal.axis.creation.ui.command.bucodegenoperation$bottomupwsmodifyoperation.execute(bucodegenoperation.java:125)  @ org.eclipse.ui.actions.workspacemodifyoperation.lambda$0(workspacemodifyoperation.java:107)   @ org.eclipse.core.internal.resources.workspace.run(workspace.java:2240)  @ org.eclipse.core.internal.resources.workspace.run(workspace.java:2267)  @ org.eclipse.ui.actions.workspacemodifyoperation.run(workspacemodifyoperation.java:128)  @ org.eclipse.jst.ws.internal.axis.creation.ui.command.bucodegenoperation.execute(bucodegenoperation.java:88)  @ org.eclipse.wst.command.internal.env.core.fragment.commandfragmentengine.runcommand(commandfragmentengine.java:419)  @ org.eclipse.wst.command.internal.env.core.fragment.commandfragmentengine.visittop(commandfragmentengine.java:359)  @ org.eclipse.wst.command.internal.env.core.fragment.commandfragmentengine.moveforwardtonextstop(commandfragmentengine.java:254)  @ org.eclipse.wst.command.internal.env.ui.widgets.simplecommandenginemanager$6.run(simplecommandenginemanager.java:294)  @ org.eclipse.jface.operation.modalcontext.runincurrentthread(modalcontext.java:437)  @ org.eclipse.jface.operation.modalcontext.run(modalcontext.java:353)  @ org.eclipse.jface.wizard.wizarddialog.run(wizarddialog.java:993)  @ org.eclipse.wst.command.internal.env.ui.widgets.simplecommandenginemanager.runforwardtonextstop(simplecommandenginemanager.java:264)  @ org.eclipse.wst.command.internal.env.ui.widgets.wizardpagemanager.runforwardtonextstop(wizardpagemanager.java:91)  @ org.eclipse.wst.command.internal.env.ui.widgets.wizardpagemanager.getnextpage(wizardpagemanager.java:154)  @ org.eclipse.wst.command.internal.env.ui.widgets.simplewizardpage.getnextpage(simplewizardpage.java:136)  @ org.eclipse.jface.wizard.wizarddialog.nextpressed(wizarddialog.java:869)  @ org.eclipse.jface.wizard.wizarddialog.buttonpressed(wizarddialog.java:419)  @ org.eclipse.jface.dialogs.dialog$2.widgetselected(dialog.java:618)  @ org.eclipse.swt.widgets.typedlistener.handleevent(typedlistener.java:249)  @ org.eclipse.swt.widgets.eventtable.sendevent(eventtable.java:84)  @ org.eclipse.swt.widgets.display.sendevent(display.java:5219)  @ org.eclipse.swt.widgets.widget.sendevent(widget.java:1340)  @ org.eclipse.swt.widgets.display.rundeferredevents(display.java:4553)  @ org.eclipse.swt.widgets.display.readanddispatch(display.java:4143)  @ org.eclipse.jface.window.window.runeventloop(window.java:818)  @ org.eclipse.jface.window.window.open(window.java:794)  @ org.eclipse.ui.internal.handlers.wizardhandler$new.executehandler(wizardhandler.java:269)  @ org.eclipse.ui.internal.handlers.wizardhandler.execute(wizardhandler.java:290)  @ org.eclipse.ui.internal.handlers.handlerproxy.execute(handlerproxy.java:295)   @ org.eclipse.ui.internal.handlers.e4handlerproxy.execute(e4handlerproxy.java:90)  @ sun.reflect.generatedmethodaccessor100.invoke(unknown source)  @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)  @ java.lang.reflect.method.invoke(method.java:498)  @ org.eclipse.e4.core.internal.di.methodrequestor.execute(methodrequestor.java:55)  @ org.eclipse.e4.core.internal.di.injectorimpl.invokeusingclass(injectorimpl.java:282)  @ org.eclipse.e4.core.internal.di.injectorimpl.invoke(injectorimpl.java:264)  @ org.eclipse.e4.core.contexts.contextinjectionfactory.invoke(contextinjectionfactory.java:132)  @ org.eclipse.e4.core.commands.internal.handlerservicehandler.execute(handlerservicehandler.java:152)  @ org.eclipse.core.commands.command.executewithchecks(command.java:494)  @ org.eclipse.core.commands.parameterizedcommand.executewithchecks(parameterizedcommand.java:488)  @ org.eclipse.e4.core.commands.internal.handlerserviceimpl.executehandler(handlerserviceimpl.java:210)  @ org.eclipse.ui.internal.handlers.legacyhandlerservice.executecommand(legacyhandlerservice.java:353)  @ org.eclipse.ui.internal.actions.commandaction.runwithevent(commandaction.java:155)  @ org.eclipse.jface.action.actioncontributionitem.handlewidgetselection(actioncontributionitem.java:565)  @ org.eclipse.jface.action.actioncontributionitem.lambda$4(actioncontributionitem.java:397)  @ org.eclipse.swt.widgets.eventtable.sendevent(eventtable.java:84)  @ org.eclipse.swt.widgets.display.sendevent(display.java:5219)  @ org.eclipse.swt.widgets.widget.sendevent(widget.java:1340)  @ org.eclipse.swt.widgets.display.rundeferredevents(display.java:4553)   @ org.eclipse.swt.widgets.display.readanddispatch(display.java:4143)  @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine$4.run(partrenderingengine.java:1121)  @ org.eclipse.core.databinding.observable.realm.runwithdefault(realm.java:336)  @ org.eclipse.e4.ui.internal.workbench.swt.partrenderingengine.run(partrenderingengine.java:1022)  @ org.eclipse.e4.ui.internal.workbench.e4workbench.createandrunui(e4workbench.java:150)   @ org.eclipse.ui.internal.workbench$5.run(workbench.java:687)  @ org.eclipse.core.databinding.observable.realm.runwithdefault(realm.java:336)  @ org.eclipse.ui.internal.workbench.createandrunworkbench(workbench.java:604)  @ org.eclipse.ui.platformui.createandrunworkbench(platformui.java:148)  @ org.eclipse.ui.internal.ide.application.ideapplication.start(ideapplication.java:138)  @ org.eclipse.equinox.internal.app.eclipseapphandle.run(eclipseapphandle.java:196)  @ org.eclipse.core.runtime.internal.adaptor.eclipseapplauncher.runapplication(eclipseapplauncher.java:134)  @ org.eclipse.core.runtime.internal.adaptor.eclipseapplauncher.start(eclipseapplauncher.java:104)  @ org.eclipse.core.runtime.adaptor.eclipsestarter.run(eclipsestarter.java:388)  @ org.eclipse.core.runtime.adaptor.eclipsestarter.run(eclipsestarter.java:243)  @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)  @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)  @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)  @ java.lang.reflect.method.invoke(method.java:498)  @ org.eclipse.equinox.launcher.main.invokeframework(main.java:673)  @ org.eclipse.equinox.launcher.main.basicrun(main.java:610)  @ org.eclipse.equinox.launcher.main.run(main.java:1519)  @ org.eclipse.equinox.launcher.main.main(main.java:1492) 


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -