This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!

Shilpa Sathyan

Greenhorn
+ Follow
since May 01, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shilpa Sathyan


   @WebServiceRef
   public String execute(HashMap<String, String> ctrlInfo, String strXMLMsg) {

           if (strOp.equals("ALLOCATE_FACILITY")) {
           strRetVals = generateFacilityNum(strXMLMsg);//webservice method
       }


   public String generateFacilityNum(String strXMLMsg) {

       String response =
           disbComFunc.generateCallWebService(strXMLMsg, usrContext,

       return response;
   }
}

   public String generateCallWebService(String strXMLMsg, UserContext usrContext, String webServiceCall) {
       
       HashMap<String, String> intr_Err_Hm = new HashMap<String, String>();
       LmWebSrvcHandler intrHndlr = new LmWebSrvcHandler();
       intrHndlr.usrContext = usrContext;
       intr_Err_Hm = intrHndlr.callWebService(strXMLMsg, webServiceCall);
       String response = intr_Err_Hm.get("RESP");
       return response;
   }

//webservice Handler
public HashMap<String, String> callWebService(String xmlParms,String event_Nm) {

                lmWebSrvcIntr = service.getPort(portqname, LmWebSrvcIntr.class);
               try {
           
                  if(event_Nm.equals("ALLOCATE_FACILITY"))
                   resp = lmWebSrvcIntr.allocateFacilityRequest(xmlParms);
}


//webservice Interface

@WebService(targetNamespace = "URL")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
            parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)

public interface LmWebSrvcIntr {

   @WebMethod(operationName = "AllocateFacilityRequest",action="URL")
   @WebResult(targetNamespace = "URL",name = "AllocateFacilityRequestResult")
   public String allocateFacilityRequest(@WebParam(targetNamespace ="URL",name = "xmlParams")String xmlParams);
   
}
3 weeks ago
Here it goes
I have a bean class where the abstract method 'execute' is being called.
The same is overrided in booknew class. Here the execute method calls some webservice methods and hence annotated with @WebServiceRef. This was how it worked in 1.6 SE
So on startup it throws could not find method or setter for attribute "cute" in booknew class. I donot have any attribute called cute first of all.
It is using SOAP webservices
4 weeks ago
It is trying to inject a @webserviceref to that method.
4 weeks ago
While running the application

Stack Trace

weblogic.application.ModuleException: java.io.EOFException: Response had end of stream after 0 bytes
at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:123)
at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:212)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:207)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:57)
at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:114)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:262)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:66)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:90)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:274)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:507)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:53)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:202)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:52)
at weblogic.management.deploy.internal.ConfiguredDeployments$2.doItem(ConfiguredDeployments.java:741)
at weblogic.management.deploy.internal.parallel.BucketInvoker$2.run(BucketInvoker.java:95)
at weblogic.work.ContextWrap.run(ContextWrap.java:46)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
Caused By: java.io.EOFException: Response had end of stream after 0 bytes
at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:312)
at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:232)
at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:554)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:688)
at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:42)
at java.net.URL.openStream(URL.java:1045)
at weblogic.wsee.jaxws.spi.WLSProvider.createReader(WLSProvider.java:284)
at weblogic.wsee.jaxws.spi.WLSProvider.resolveWSDL(WLSProvider.java:257)
at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:173)
at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:150)
at javax.xml.ws.Service.<init>(Service.java:77)
at com.jmr.lm.dsbr.Service.<init>(Service.java:71)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at weblogic.wsee.jaxws.ServiceRefProcessorImpl.createService(ServiceRefProcessorImpl.java:289)
at weblogic.wsee.jaxws.ServiceRefProcessorImpl.createTargetRef(ServiceRefProcessorImpl.java:130)
at weblogic.wsee.jaxws.ServiceRefProcessorImpl.bindServiceRef(ServiceRefProcessorImpl.java:420)
at weblogic.application.naming.EnvironmentBuilder.bindServiceRef(EnvironmentBuilder.java:1179)
at weblogic.application.naming.EnvironmentBuilder.bindServiceReferences(EnvironmentBuilder.java:1146)
at weblogic.application.naming.EnvironmentBuilder.bindServiceReferences(EnvironmentBuilder.java:1518)
at weblogic.application.naming.EnvironmentBuilder.bindEnvEntriesFromDDs(EnvironmentBuilder.java:2118)
at weblogic.application.naming.EnvironmentBuilder.bindEnvEntriesFromDDs(EnvironmentBuilder.java:2089)
at weblogic.ejb.container.deployer.EJBDeployer.activate(EJBDeployer.java:865)
at weblogic.ejb.container.deployer.EJBModule.activate(EJBModule.java:447)
at weblogic.application.internal.ExtensibleModuleWrapper$ActivateStateChange.next(ExtensibleModuleWrapper.java:317)
at weblogic.application.internal.ExtensibleModuleWrapper$ActivateStateChange.next(ExtensibleModuleWrapper.java:313)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:121)
at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:212)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:207)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:57)
at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:114)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:262)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:66)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:90)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:274)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:507)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:53)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:202)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:52)
at weblogic.management.deploy.internal.ConfiguredDeployments$2.doItem(ConfiguredDeployments.java:741)
at weblogic.management.deploy.internal.parallel.BucketInvoker$2.run(BucketInvoker.java:95)
at weblogic.work.ContextWrap.run(ContextWrap.java:46)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
>
4 weeks ago
If i completely remove the annotation it throws weblogic.application.ModuleException: java.io.EOFException: Response had end of stream after 0 bytes
1 month ago
This was working properly in 1.6 SE .Now had i migrated my code to 1.8 this error pop up while running the application. I tried changing the method name to 'setexecute' as though it is expecting a setter method. But the error was could not find method or setter for attribute "execute". If @WebServiceRef is not the right annotation what would i try otherwise.?
1 month ago
I have 3 java classes: a remote interface,client interface and a bean class which delegates method calls to the original classes. The abstract method execute() does the job. Here the execute() method in my booknew class has a @WebserviceRef annotation.  There is no attribute called 'cute' to generate setter method.  
1 month ago
public class bookNew extends CommandInf //abstract class with method name execute {
 
   public bookNew() {
       super()  ;
   }

   private static final String className = "bookNew";

   @WebServiceRef
   public String execute(HashMap<String, String> ctrlInfo, String strXMLMsg) {

   ....
}
1 month ago
It is not cute attribute. I have a method execute in my class .Same method name is declared in an abstract class which is called in a bean class.
1 month ago


<May 9, 2019 4:21:31,540 PM IST> <Warning> <EJB> <BEA-012035> <The Remote interface method: public abstract java.lang.String com.xxx.common.xmlwrapper.JDBCWrapperEJB.executeSelectSqls(java.util.HashMap,com.xxx.common.util.UserContext) in EJB JDBCWrapperEJB contains a parameter of type com.xxx.common.util.UserContext which is not serializable. Though the EJB JDBCWrapperEJB has call-by-reference set to false, this parameter is not serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is serializable.>
<May 9, 2019 4:21:32,892 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1212644072273576" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.IllegalArgumentException: Could not find method or setter for attribute cute on class com.xxx.lm.bookNew with preferred type java.util.HashMap"
weblogic.application.ModuleException: java.lang.IllegalArgumentException: Could not find method or setter for attribute cute on class com.xxx.lm.bookNew with preferred type java.util.HashMap
at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:123)
at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:212)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:207)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
Truncated. see log file for complete stacktrace
Caused By: java.lang.IllegalArgumentException: Could not find method or setter for attribute cute on class com.xxx.lm.bookNew with preferred type java.util.HashMap
at weblogic.utils.reflect.ReflectUtils.getMethodOrFieldForSetter(ReflectUtils.java:340)
at weblogic.j2ee.injection.BaseComponentContributor.findTargetMethodOrField(BaseComponentContributor.java:278)
at weblogic.j2ee.injection.BaseComponentContributor.parseInjectionTarget(BaseComponentContributor.java:266)
at weblogic.j2ee.injection.BaseComponentContributor.parseInjectionTarget(BaseComponentContributor.java:239)
at weblogic.j2ee.injection.BaseComponentContributor.addServiceRef(BaseComponentContributor.java:203)
Truncated. see log file for complete stacktrace
weblogic.application.ModuleException: java.lang.IllegalArgumentException: Could not find method or setter for attribute cute on class com.xxx.lm.bookNew with preferred type java.util.HashMap
at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:123)
at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:212)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:207)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
Truncated. see log file for complete stacktrace
Caused By: java.lang.IllegalArgumentException: Could not find method or setter for attribute cute on class com.xxx.lm.bookNew with preferred type java.util.HashMap
at weblogic.utils.reflect.ReflectUtils.getMethodOrFieldForSetter(ReflectUtils.java:340)
at weblogic.j2ee.injection.BaseComponentContributor.findTargetMethodOrField(BaseComponentContributor.java:278)
at weblogic.j2ee.injection.BaseComponentContributor.parseInjectionTarget(BaseComponentContributor.java:266)
at weblogic.j2ee.injection.BaseComponentContributor.parseInjectionTarget(BaseComponentContributor.java:239)
at weblogic.j2ee.injection.BaseComponentContributor.addServiceRef(BaseComponentContributor.java:203)
Truncated. see log file for complete stacktrace

[04:21:33 PM] Deployment cancelled.


1 month ago
NO .. I dont have any attribute called cute. I think it is expecting setters for the 'exe'cute method name. Now if i change the method name to setwebserviceConfig() ..I get the error Could not find method or setter for attribute webserviceConfig on class xxx with preferred type java.util.HashMap

1 month ago
public class classname extends abstractClass{
   public classname () {
       super();
   }

   private static final String className = "classname";

   @WebServiceRef
   public String execute(HashMap<String, String> ctrlInfo, String strXMLMsg) {
;;;
}
1 month ago
There is no method called cute in my class. The method name is 'execute' which is an abstract method called from my class. This method also has an annotation @WebServiceRef. THe applications runs fine in 1.6 SE .
1 month ago