Ava.lang.IllegalArgumentException: No bean specified
config
<form-beans>
<form-bean name="FileUpload" type="roseindia.net.StrutsUploadForm"/>
</form-beans>
<action-mappings>
<action path="/FileUpload" type="roseindia.net.StrutsUploadAction" name="FileUpload" scope="session" validate="true" input="/pages/FileUpload.jsp">
<forward name="success" path="/pages/uploadsuccess.jsp"/>
</action>
<action path="/popsup" type="roseindia.net.StrutsUploadAction" name="FileUpload" scope="session" validate="true" parameter="parameter" input="/pages/uploadsuccess.jsp">
<forward name="success" path="/pages/uploadsuccess.jsp"/>
</action>
</action-mappings>
my first jsp is <B>FileUpload.jsp<B> like this
<html:form action="/FileUpload" method="post" enctype="multipart/form-data">
<html:file property="theFile"/>
<html:submit>Upload File</html:submit>
</html:form>
after clicking the Upload file button, the <B>uploadSuccess.jsp<B> looks like this
<html:form action="/popsup?parameter="show" method="post">
<html:select property="valueObj.id">
<html:optionsCollection property="objectList" value="id" label="fullName" name="FileUpload"/>
</html:select>
<html:submit/>
</html:form>
The correspondin form beans are
public class StrutsUploadForm extends ActionForm
{ //assume all the methods are publlic
FormFile theFile;
ArrayList objectList;
valueObject valueObj;
FormFile getTheFile() {
return theFile;
void setTheFile(FormFile theFile) {
this.theFile = theFile;
void setValueObj(valueObject valueObj){
this.valueObj = valueObj;
valueObject getValueObj(){
return this.valueObj;
void setObjectList(ArrayList objectList){
this.objectList = objectList;
ArrayList getObjectList(){
return this.objectList;
my value Object is
public class valueObject
String id;
String firstName;
String lastName;
String fullName;
valueObject(String id,String firstName,String lastName){
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
void setId(String id){
this.id=id;
String getId(){
return this.id;
void setFirstName(String firstName){
this.firstName = firstName;
String getFirstName(){
return firstName;
void setLastName(String lastName){
this.lastName = lastName;
String getLastName(){
return lastName;
getFullName(){
return firstName+lastName;
and my action class is
public class StrutsUploadAction extends Action
public ActionForward execute(..){
StrutsUploadForm myForm = (StrutsUploadForm)form;
if(!"show".equals(request.getParameter("parameter"))){
valueObject v1 = new valueObject("3","Babu","Prasad");
myForm.setValueObj(v1);
ArrayList valueList = new ArrayList();
valueList.add(new valueObject("1","vijay","ks"));
valueList.add(new valueObject("2","Ram","Kumar"));
valueList.add(v1);
valueList.add(new valueObject("4","Raju","sundaram"));
valueList.add(new valueObject("5","Kamal","Batch"));
valueList.add(new valueObject("6","Ragu","varan"));
myForm.setObjectList(valueList);
}else{
System.out.println("myFORM OBJECTS "+myForm.getValueObj().getId());
return mapping.findForward("success");
But i try to select one of the value form the combo box and submit the uploadsuccess.jsp ,i am getting the following error
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
root cause
java.lang.IllegalArgumentException: No bean specified
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Could you give us the code of your JSP where you think things might go wrong ?
Similar Messages
-
Ava/lang/IllegalArgumentException: Missing protocol separator--pls help
hi guys
i have encounter this error in my coding.i 'm a novice in j2me programming, so pls help me .thanks
Uncaught exception java/lang/IllegalArgumentException: Missing protocol separator.
i think the error is somewhere in that code.
try{
SocketConnection sc = (SocketConnection) Connector.open("socket://localhost:5678",Connector.READ_WRITE);
String uri = "file:c:/commands.txt";
System.out.println("r");
InputConnection conn = (InputConnection)Connector.open( uri,Connector.READ );
int ch;
InputStream in = sc.openInputStream();
OutputStream out=sc.openOutputStream();
while( ( ch = in.read() ) != -1 ){
System.out.print( (char) ch );
out.close();
in.close();
sc.close();
catch(ConnectionNotFoundException e ){}
catch(IOException ioe){}i would really appreciate it if someone would advise me on it.thanksChange the "file:c:/..." to "file://c:/..."
-
IllegalArgumentException: No Skin Specified
The first time I start my application with a fresh session I receive the following error.
Refreshing the screen seems to solve it but what is causing it? I have included a stack trace.
I have checked the adf-faces-config and adf-faces-skins.xml files and they look fine (also included).
java.lang.IllegalArgumentException: No Skin specified.
at oracle.adfinternal.view.faces.skin.SkinStyleProvider.getSkinStyleProvider(SkinStyleProvider.java:51)
at oracle.adfinternal.view.faces.renderkit.core.StyleContextImpl._getDefaultStyleProvider(StyleContextImpl.java:89)
at oracle.adfinternal.view.faces.renderkit.core.StyleContextImpl.<init>(StyleContextImpl.java:31)
at oracle.adfinternal.view.faces.renderkit.core.CoreAdfRenderingContext.getStyleContext(CoreAdfRenderingContext.java:172)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.StyleSheetRenderer.encodeAll(StyleSheetRenderer.java:73)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:271)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.HeadRenderer.encodeBegin(HeadRenderer.java:70)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeBegin(CoreRenderer.java:139)
at oracle.adf.view.faces.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:593)
at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:572)
at oracle.adf.view.faces.webapp.UIXComponentTag.encodeBegin(UIXComponentTag.java:108)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:459)
at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85)
at com.ibm._jsp._layout._jspService(_layout.java:127)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:241)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:501)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1034)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997)
at com.ibm._jsp._index._jspService(_index.java:68)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
java.lang.NullPointerException
at oracle.adfinternal.view.faces.renderkit.AdfRenderingContext.getTranslatedString(AdfRenderingContext.java:70)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.GlobalVariablesScriptlet.outputScriptletContent(GlobalVariablesScriptlet.java:49)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptletImpl(Scriptlet.java:111)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptlet(Scriptlet.java:52)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.XhtmlUtils.addLib(XhtmlUtils.java:124)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputDependency(Scriptlet.java:144)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.AliasedScriptlet.outputScriptletImpl(AliasedScriptlet.java:112)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptlet(Scriptlet.java:52)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.XhtmlUtils.addLib(XhtmlUtils.java:124)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputDependency(Scriptlet.java:144)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.DefaultTimeZoneScriptlet.outputScriptletImpl(DefaultTimeZoneScriptlet.java:41)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptlet(Scriptlet.java:52)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.XhtmlUtils.addLib(XhtmlUtils.java:124)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.HeadRenderer._writeCookieScript(HeadRenderer.java:124)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.HeadRenderer.encodeBegin(HeadRenderer.java:72)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeBegin(CoreRenderer.java:139)
at oracle.adf.view.faces.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:593)
at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:572)
at oracle.adf.view.faces.webapp.UIXComponentTag.encodeBegin(UIXComponentTag.java:108)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:459)
at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85)
at com.ibm._jsp._layout._jspService(_layout.java:127)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
=== ADF Faces Config.xml ===
<?xml version="1.0" encoding="windows-1252"?>
<adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
<skin-family>myskin</skin-family>
</adf-faces-config>
===== adf-faces-skins.xml ====
<?xml version="1.0" encoding="ISO-8859-1"?>
<skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
<skin>
<id>
myskin.desktop
</id>
<family>
myskin
</family>
<render-kit-id>
oracle.adf.desktop
</render-kit-id>
<style-sheet-name>
/css/myskinSkin.css
</style-sheet-name>
</skin>
</skins>Hi,
does the same proble occur with the default skin as well? The Nullpointer exception seems to indicate an issue with the custom skin
Frank -
Java.lang.IllegalArgumentException: Cannot invoke beans
in 1 jsp page
<logic:iterate id="msgg" name="messages">
<tr>
<td>${msgg.messageNumber}</td>
<td>${msgg.from[0]}</td>
** <td><html:link action="msgbody?message=${msgg.message}">${msgg.subject}</html:link> </td>
<td>${msgg.sentDate}</td>
</tr>
</logic:iterate>
${msgg.message} which will return javax.mail.Message object
By clicking in the link(above shown as **) it will go to msgbody action and should set
message property of bean with javax.mail.Message object
for msg body action my bean is
package beans;
import javax.mail.Message;
import org.apache.struts.action.ActionForm;
public class MsgBn extends ActionForm {
private Message message;
public Message getMessage() {
return message;
public void setMessage(Message message) {
this.message = message;
i am getting following exception plz suggest me solutions
java.lang.IllegalArgumentException: Cannot invoke beans.MsgBn.setMessage - argument type mismatch
org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1778)
org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)Of course it's a String. It's being passed as a request parameter. Request parameters are always Strings.
It looks like something needs to be held in the session maybe? -
Invoking web service from EJB3 throw java.lang.IllegalArgumentException
I used JAX-WS to develop a web service and deployed it on webloigc 10.3.5. The web service was invoked from web application and it worked fine. However, when I tried to invoke the web service from a stateless session bean, java.lang.IllegalArgumentException was thrown out and complained that "*interface gov.fema.web.nimcast.service.client.UpdateEmailPortType is not visible from class loader*". I tried following three ways to solve the problem
1. put the web service client artifacts under APP-INF/classes of the EAR
2. bundle the web service client artifacts into a jar file and put it under APP-INF/lib of the EAR
3. put the web service client artifacts into the same jar file of the EJB
However, none of the above approaches worked out, every time same exception thrown out.
I used following commands in my ant script to generate the web service client artifacts
<path id="deploypathref">
<fileset dir="${wl.server}">
<include name="server/lib/weblogic.jar"/>
<include name="server/lib/weblogic_sp.jar"/>
<include name="server/lib/xqrl.jar"/>
<include name="server/lib/webservices.jar"/>
<include name="../modules/features/weblogic.server.modules_10.3.3.0.jar"/>
</fileset>
</path>
<taskdef name="clientgen"
classname="weblogic.wsee.tools.anttasks.ClientGenTask" >
<classpath refid="deploypathref"/>
</taskdef>
<clientgen
wsdl="http://${wls.hostname}:${wls.port}/nimscast/UpdateEmailService?WSDL"
destDir="${path.service}/src"
packageName="gov.fema.web.nimcast.service.client"
type="JAXWS"/>
<javac
srcdir="${path.service}/src" destdir="${path.assembly}/ear/APP-INF/classes"
includes="**/*.java"/>
and following is the detail information from the stack trace:
Caused By: java.lang.IllegalArgumentException: interface gov.fema.web.nimcast.service.client.UpdateEmailPortType is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at weblogic.wsee.jaxws.spi.ClientInstance.createProxyInstance(ClientInstance.java:143)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:855)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
at javax.xml.ws.Service.getPort(Service.java:92)
at gov.fema.web.nimcast.service.client.UpdateEmailService.getUpdateEmailPortTypePort(Unknown Source)
at gov.fema.prepcast.beans.UserManagement.updateUserEmailInNimscast(UserManagement.java:622)
at gov.fema.prepcast.beans.UserManagement.changeUserProfileInfo(UserManagement.java:324)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy144.changeUserProfileInfo(Unknown Source)
at gov.fema.prepcast.beans.UserManagement_dinn8k_UserManagementLocalImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
at gov.fema.prepcast.beans.UserManagement_dinn8k_UserManagementLocalImpl.changeUserProfileInfo(Unknown Source)
at gov.fema.prepcast.actions.secret.UpdateUserAction.saveProfileInfo(UpdateUserAction.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Edited by: 938276 on Jul 25, 2012 7:55 AMNo you haven't, because
Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType a relevant class can still not be found and Java really is not going to lie to you; this class is not on your application's classpath so it is either missing or put in the wrong place. Note that missing classes can be caused by you forgetting to properly redeploying your application - its usually something silly like that. Figure out what you did wrong and correct your mistake.
The fact that you have to mention that you "setup the classpath" is questionable; in web applications you don't touch the classpath at all. So what exactly did you do? -
EJB3.0:JPA :java.lang.IllegalArgumentException
Im pretty new to this, so Im trying to post everything you need to understand my problem,try to be more clear, i'm in lack of ideas in this problem, even it sounds like a classic
/*Bean class*/
public class BookCatalogBean implements Serializable, BookCatalogInterface {
@PersistenceContext(unitName="EntityBean")
// @PersistenceContext
EntityManager em;
protected BookBank book;
protected Collection <BookBank> pmnList;
public void addBook(String title, String author, double price) {
// Initialize the form
if (book == null)
book = new BookBank(title, author, price);
em.persist(book);
public Collection <BookBank>getAllBooks() {
System.out.println("BookCatalogInterface.java:getAllBooks");
pmnList=em.createQuery("from BookBank book ").getResultList();
System.out.println("BookCatalogInterface.java:getAllBooks...111:"+pmnList);
return pmnList;
/*and this is another class BookBank.java */
package entity.library;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Collection;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name="BookBank")
public class BookBank implements Serializable {
long id;
/*variable declaration*/
public BookBank() {
super();
public BookBank(String title, String author, double price) {
super();
this.title = title;
this.author = author;
this.price = price;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
// Getter and setter methods for the defined properties..
and I am getting error :-
BookCatalogInterface.java:getAllBooks
javax.ejb.EJBException: EJB Exception: ; nested exception is:
java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [from entity.library.ConfPmno conf ], line 1, column 0: unexpected token [from].
Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );]); nested exception is: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [from entity.library.ConfPmno conf ], line 1, column 0: unexpected token [from].
Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );])
java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [from BookBank book ], line 1, column 0: unexpected token [from].
Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );])
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:93)
at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:91)
at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:80)
at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:26)
at $Proxy140.createQuery(Unknown Source)
at entity.library.ConfPmnoBean.getAllBooks(ConfPmnoBean.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proc
persistent.xml :-
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="EntityBean" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>DB_DS</jta-data-source>
<non-jta-data-source>DB_DS</non-jta-data-source>
<properties>
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="eclipselink.logging.level" value="FINEST"/>
</properties>
</persistence-unit>
</persistence>
I am not able to resolve the issue,getting error while calling getAllBooks method(createQuery line) of BookCatalogBean.java file.
Any help is much appreciated,Please suggest solutionTry using:
em.createQuery("select book from BookBank book").getResultList();instead of
em.createQuery("from BookBank book ").getResultList();The "from Entity e" only works for the Hibernate query language not the JPA query language.
Also in your persistence.xml, define only one data-source: a jta-data-source or a non-jta-data-source. -
Exception in method: ejbPostCreate: java.lang.IllegalArgumentException
Hi,
when i ported our application from 6.1(SP3) to 7.0(SP1),
I am getting the java.lang.IllegalArgumentException.
I am attaching the relevent stack trace
<Info> <EJB> <010051> <EJB Exception during invoc
ation from home: com.ibsplc.gulfshare.reservation.booking.ejb.ReservationManager
EJB_5uuvrj_LocalHomeImpl@1824d6 threw exception: javax.ejb.TransactionRolledback
LocalException: EJB Exception:; nested exception is: java.lang.IllegalArgumentException:
Illegal attempt to assign a removed bean to a CMR field. The EJB with primary
key 'com.ibsplc.gulfshare.reservation.booking.ejb.ReservationPK@1920' has been
removed and cannot be assigned to this CMR field.
javax.ejb.TransactionRolledbackLocalException: EJB Exception:; nested exceptionis:
java.lang.IllegalArgumentException: Illegal attempt to assign a removed bean to
a CMR field.Hi satheesh,
am kamal. am also getting the same exception
" nested exception is: java.lang.IllegalArgumentException: [EJB:010133]Illegal attempt to assign a removed bean to a CMR field. The EJB with primary key '1' has been removed and cannot be assigned to this CMR field."
in my case am using two entity beans one for customer-order and the other for customer-Address. am creating the address bean within ejbPostcreate of order.
while running the client am getting the exception "Illegal attempt to assign a removed bean to a CMR field"
have you found any solution for it. can you pls hlp me on this. am held up whith this problem.
regards,
kamal. -
JDeveloper design-time exception (java.lang.IllegalArgumentException)
Using JDev 11.1.1.3; to speed up the chart renders in pages, we've switched the chart from dynamic-size to fixed-size which brings the chart in 1 - 2 seconds quicker which is good, but in order to continue supporting expand/reduce functionality (requested by user via af:commandImageLink press) the width on the chart is set via EL or managed-bean. Either way, now when we load up the page in JDeveloper we get ...
13/09/2010 4:27:19 PM oracle.adfinternal.view.faces.bi.renderkit.imageView.ImageViewRenderer
WARNING: Exception in parsing the inlineStyle.
java.lang.IllegalArgumentException: Invalid length: #{viewScope.AdminActivity.trend1Width}
at oracle.adfinternal.view.faces.bi.util.CSSStyleUtils.parseLength(CSSStyleUtils.java:645)
... appearing in the Messages - Log view for each chart when switching the editor to Design mode.
Is there some way to turn this off, or is it considered a bug to be fixed, or should we (despite the fact the run-time works) consider this bad design. (NB: client rates performance highly and the improvement delivered here important).
Thanks,Hi,
exception:java.lang.IllegalArgumentException.1 .This means that u passed an illegal or inappropriate argument to some method.
page first loads then the error appears, if I go to
next page and come back to the initial page, then the
applet works!2. This means that the value of the argument u are passing changes between init,start,stop of the Applets methods.
3.So u should be checking the values of the arg are passing .
Hope it helps
Cheers! -
Hi all.
I was encounterd this titiles exception.
The IllegualArgumentException, what's argument?
What is this meaning?
I updated a .reload file's time stump.
and the following messages.
The EJBC would not create the stub(?) java file under the <instance>/generated/ejb/j2ee-apps directory.
I woud not like re-deploy from the ear file.
help. please help.
[01/Apr/2005:18:28:35] INFO ( 8665): DPL5109: EJBC - START of EJBC for [hz]
[01/Apr/2005:18:28:35] INFO ( 8665): CORE3282: stdout: Remote message: Processing beans ....
[01/Apr/2005:18:28:42] INFO ( 8665): DPL5107: EJBC - Generated code for EJBLocalHOme, EJBLocalObject implementations for [hz]
[01/Apr/2005:18:28:42] INFO ( 8665): DPL5110: EJBC - END of EJBC for [hz]
[01/Apr/2005:18:28:43] INFO ( 8665): 78 total files, 78 files added to jar file
zaimuDV@zaimuaps:hz_1/
zaimuDV@zaimuaps:hz_1/ [01/Apr/2005:18:31:54] WARNING ( 8665): Deployment Error
com.iplanet.ias.deployment.backend.IASDeploymentException: java.lang.IllegalArgumentException: File source doesn't exist
at com.iplanet.ias.deployment.backend.AppDeployer.deploy(AppDeployer.java:110)
at com.iplanet.ias.deployment.backend.AppDeployer.doRequest(AppDeployer.java:50)
at com.iplanet.ias.server.ApplicationManager.reload(ApplicationManager.java:259)
at com.iplanet.ias.server.ReloadMonitor.run(ReloadMonitor.java:145)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
[01/Apr/2005:18:31:54] INFO ( 8665): Total Deployment Time: 202823 msec, Total EJB Compiler Module Time: 7162 msec, Portion spent EJB Compiling: 3%
Breakdown of EJBC Module Time: Total Time for EJBC: 7162 msec, CMP Generation: 0 msec (0%), Java Compilation: 5961 msec (83%), RMI Compilation: 0 msec (0%),
[01/Apr/2005:18:31:54] WARNING ( 8665): CORE5017: Error occurred while redeploying application
com.iplanet.ias.deployment.backend.IASDeploymentException: Deployment Error -- java.lang.IllegalArgumentException: File source doesn't exist
at com.iplanet.ias.deployment.backend.AppDeployer.doRequest(AppDeployer.java:58)
at com.iplanet.ias.server.ApplicationManager.reload(ApplicationManager.java:259)
at com.iplanet.ias.server.ReloadMonitor.run(ReloadMonitor.java:145)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
Caused by: com.iplanet.ias.deployment.backend.IASDeploymentException: java.lang.IllegalArgumentException: File source doesn't exist
at com.iplanet.ias.deployment.backend.AppDeployer.deploy(AppDeployer.java:110)
at com.iplanet.ias.deployment.backend.AppDeployer.doRequest(AppDeployer.java:50)
... 4 moreResolved.
There was a symbolic link file in deployed dir.
maybe this cause a failure pre backup. -
Java.lang.IllegalArgumentException: -1 ERROR what is ?
I get this error... when I was coding. I dont know what it can be. Any1 knows ?
java.lang.IllegalArgumentException: -1
at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptbase.IndexedItemsIterator.advanceIndex(IndexedItemsIterator.java:104)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.GridLayoutAdapter$Cells.doNext(GridLayoutAdapter.java:363)
at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptbase.IndexedItemsIterator.next(IndexedItemsIterator.java:54)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutRowFragment(GridLayoutRenderer.java:385)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutFragment(GridLayoutRenderer.java:310)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.render(GridLayoutRenderer.java:71)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1115)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.render(GroupRenderer.java:61)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutCellFragment(GridLayoutRenderer.java:739)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutRowFragment(GridLayoutRenderer.java:388)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutFragment(GridLayoutRenderer.java:310)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.render(GridLayoutRenderer.java:71)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:516)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:61)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:50)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:558)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:349)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:257)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:159)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:430)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:659)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)This error occurs if you have specified wrong colSpan settings for the GridLayout "cells".
In a later release, there will be a check layer that gives you a more meaningful error message.
Armin -
ConverNumber - java.lang.IllegalArgumentException
When I clear the inputText field (using spaces, or backspace, or delete), submit the data a java.lang.IllegalArgumentException is returned.
Bean:
private double itemPrice_1 = 0.0;
public double getItemPrice_1() {
return itemPrice_1;
public void setItemPrice_1(double itemPrice_1) {
this.itemPrice_1 = itemPrice_1;
Jsp:
<h:inputText id="itemPrice_1"
value="#{saveOrder.itemPrice_1}"
maxlength="50"
tabindex="3"
size="25"
>
<f:convertNumber type="number" pattern="###,##0.00"/>
</h:inputText>double post
answered elsewhere -
Java.lang.IllegalArgumentException: Session: null does not exist
These days I am getting an exception (java.lang.IllegalArgumentException: Session: null does not exist) when I restart the weblogic managed server. I have a work around to get away with this error. I completely delete the dataspace from ALDSP console and redeploy the artifacts jar file. This is a tedious process. Can anyone suggest a permanent fix to resolve this issue.
ALDSP version: 3.01
Weblogic Server: 9.2.2
Thanks.Hey ,Can you please help me?can you tell me how you resolved this issue.Our production is down due to
java.lang.IllegalArgumentException: Session: null does not exist.
at com.bea.dsp.management.persistence.primitives.ServerPersistencePrimitives.getDataspaceRoot(ServerPersistencePrimitives.java:118)
at com.bea.dsp.management.persistence.primitives.ServerPersistencePrimitives.getDataspaceRoot(ServerPersistencePrimitives.java:73)
at com.bea.dsp.management.activation.ActivationService.dataSpaceAlreadyExists(ActivationService.java:342)
at com.bea.dsp.management.activation.ActivationService.setRequestHandlerClassLoader(ActivationService.java:206)
at com.bea.ld.server.bootstrap.RequestHandlerListener.postStart(RequestHandlerListener.java:46)
Truncated. see log file for complete stacktrace.
Its urgent plz -
Java.lang.IllegalArgumentException when trying to create debug setting
Hello all,
I have just performed an install of EHP1 on a W2K3 EE machine, and I'm trying to setup to debug my Web Dynpro app on the Java server. I have defined the system instance correctly SAP AS Java in the Window --> Preferences --> SAP AS Java section. My Web Dynpro app deploys and runs without problems.
However, when I use Run -> Open Debug Dialog and then click on "Run on Server" and use the "New launch configuration" option, I get a message box stating "java.lang.IllegalArgumentException (check log file)".
So I switch to Plug-in Development perspective and take a look at the log file. The exception appears in the list of messages; double-clicking the exception provides this data:
Severity: Error
Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".
Exception Stack Trace:
java.lang.IllegalArgumentException
at org.eclipse.wst.server.core.internal.ResourceManager.getServer(ResourceManager.java:758)
at org.eclipse.wst.server.core.ServerCore.findServer(ServerCore.java:286)
at org.eclipse.wst.server.ui.internal.RunOnServerLaunchConfigurationTab.initializeFrom(RunOnServerLaunchConfigurationTab.java:105)
at org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom(AbstractLaunchConfigurationTabGroup.java:86)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:143)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:784)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:658)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:676)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:637)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:613)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:975)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$4.selectionChanged(LaunchConfigurationsDialog.java:570)
at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1133)
at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:387)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:391)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:333)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:82)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:90)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Session Data:
eclipse.buildId=M20080221-1800
I've done some hunting around the internet for this error and I did find a problem that looks quite similar under a JBOSS forum: https://jira.jboss.org/jira/browse/JBIDE-3689 ("Creating new run configuration of type Run in Server fails with exception, jbds eclipse.buildId=1.1.0.GA"). The information presented there is almost exactly what I'm seeing:
<cut>
Steps to Recreate:
1. From Run menu, select "Open Run Dialog..." or "Open Debug Dialog..."
2. Right click on "Run on Server"
3. Select "New"
What you see is an "Error" dialog of Reason "java.lang.IllegalArgumentException".
The error log records the following:
Error
Thu Jan 29 08:13:48 PST 2009
Problems occurred when invoking code from plug-in: "org.eclipse.jface".
</cut>
In the JBOSS case, the response is:
<cut>
It is is a known bug in WTP 2.x and in WTP 3.x this option does not exist anymore thus you should just use Run As -> Run in Server.
Marked as out of date since latest version of WTP 3 has the fix.
</cut>
I have the EHP1 installed on a couple other servers where this is not happening. Anyone run into this before?
Alternatively, anyone know how I can check the WTP of the SAP-specific eclipse released as the EHP1 developer studio?
Thanks very much,
AndyHi Andy,
I think there is a very siple proces which you need to follow for debug. Please have a look:-
Please check you mentioned the correct server and instance name. As you are saying that all you applications are running fine therefore I think you would have mentioned all the required parameters correctly.
After checking all these things, follow the steps below:-
1) From the menu in NWDS -> Click on the Debug symbol. Select "Open Debug Dialoug".
2) Right click on the "Remote Java Application" and select New.
3) Clickon the Source tab. Check whether you application is included under the Defualt folder. Only those projects will be debugged which are under this folder.
4) If you application is not there. Click on Add-> Java Project -> Select your Project - > OK. Doing this will add your project in debug instance.
5) Go to Connect tab. Mention the Host name (Same as server name you have mentioned under Window --> Preferences --> SAP AS Java ) AND the Message server port. Please note that this server port is diffrent from the http port.
6) Just click on Debug.
I hope after all these steps debug should work. If not please revert back.
Thanks and Regards,
Pravesh -
Hi.
Im trying to upgrade the weblogic version from 10 to 12 for my application.
Im getting below mentioned error while deploying ear file in weblogic 12 which works fine with version10.
" java.lang.IllegalArgumentException:[HTTP:101164] User defined class com.ab.util.session object is not a listener as it doesnt implement the correct interface."
Deployment is getting failed because of this error.
If i comment out listener, deployment is success.HI Timo,
Old Weblogic version: 10.3.3
New weblogic version:12.1.1
Using Struts frame work.
SessionObject class:
public class SessionObject implements HttpSessionBindingListener{
public void valueBound( HttpSessionBindingEvent event)
public voind valueUnbound (HttpSessionBindingEvent event)
web.xml:
<listener>
<listener-class>com.ab.util.SessionObject</listener-class>
<listener>
I want to know that why im getting " java.lang.IllegalArgumentException:[HTTP:101164] User defined class com.ab.util.session object is not a listener as it doesnt implement the correct interface" error while deploying the ear file under version 12.1.1 when it is working fine with version 10.3.3.
Should i make any changes in web.xml or should i include any jars??? -
Mail Receiver Error: java.lang.IllegalArgumentException: can't parse argum
Hi everybody,
I get the error in mail receiver CC:
java.lang.IllegalArgumentException: can't parse argument number
My Payload looks like this:
<?xml version="1.0" encoding="utf-8" ?>
- <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>The subject</Subject>
<From>mailadress</From>
<To>mailadress</To>
<Content_Type>multipart/mixed; boundary="AaBb--984dfgeSSd3532"</Content_Type>
- <Content_Description>
<attachment filename="Filename.txt">content_of_attachment</attachment>
</Content_Description>
<Content_Disposition>attachment</Content_Disposition>
<Content>Constant</Content>
</ns1:Mail>
Any ideas?
Regards
MarioHi Mario..
Go thru this thread for it.
Error Catagory : XI_J2EE_ADAPTER_MAIL
Regards
Maybe you are looking for
-
DVI Signal Not Working Properly in Hp 2010i Monitor
Hi Team, My Name is Rubhan and i Purchased a Hp2010i 20" LCD Monitor 3 weeks back. I just installed an ATI Radeon 4670 HD Graphics Card in my System which comes with a DVI Port(Default), Since there was no DVI Cables Supplied by the Manufacturer, i
-
How to make new images available?
Hi all, I have been asked to take a html mockup/skin and integrate it into SUN Portal server 7.2. I have not used any Java portal technology before although I am skilled in JBoss/Tomcat etc. My initial attempt is just to get the banner replaced in de
-
IPhoto 8.0.3 can't setup link to Flickr Pro account
I just installed iPhoto '09 and am attempting to use the built-in flickr integration. When I click on the Flickr button, I get a popup that says: Do you want to set up iPhoto to publish to Flickr? I click, Setup, Safari opens and I login with my pass
-
Reading character * at command line argument?
import java.util.regex.Matcher; import java.util.regex.Pattern; public class FindDemo { public static void main(String[] args) { Matcher m = Pattern.compile("[aeiouAEIOU]*(\*)[atcgAGCT]*").matcher( "agctaEvening is full of the linnet's wings"); if (m
-
Fact to Dimension Content Mapping
Hi ... I have 2 dimensions and a fact. Once I created hierarchy in BMM, the detail level ( lowest level) of dimension is set in Fact table. ( Content tab) I have question what will happen 1) If we do not set lowest level in Dimension Content Tab ( We