Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

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

If i completely remove the annotation it throws weblogic.application.ModuleException: java.io.EOFException: Response had end of stream after 0 bytes
3 days 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.?
3 days 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.  
5 days 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 week 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 week 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 week 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

2 weeks 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) {
;;;
}
2 weeks 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 .
2 weeks ago
My Application run on 1.6 SE. I migrated to 12c R2 which uses 1.8 by default. I get the error
weblogic.application.ModuleException: java.lang.IllegalArgumentException: Could not find method or setter for attribute cute on class xxx with preferred type java.util.HashMap
How do i fix it
3 weeks ago