struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Jerry" <tom.snow.je...@gmail.com>
Subject Re: exception
Date Thu, 07 Sep 2006 05:33:26 GMT
This is the entire stack....

SEVERE: Error creating form bean of class code.LoginForm
java.lang.NullPointerException
    at org.apache.struts.config.FormBeanConfig.createActionForm(
FormBeanConfig.java:212)
    at org.apache.struts.util.RequestUtils.createActionForm(
RequestUtils.java:292)
    at org.apache.struts.util.RequestUtils.createActionForm(
RequestUtils.java:191)
    at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:477)
    at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)
    at jsp_servlet.__index._jspService(__index.java:216)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:996)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
ServletStubImpl.java:463)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
ServletStubImpl.java:315)
    at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(
WebAppServletContext.java:6452)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
WebAppServletContext.java:3661)
    at weblogic.servlet.internal.ServletRequestImpl.execute(
ServletRequestImpl.java:2630)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
<Sep 7, 2006 9:49:05 AM IST> <Error> <HTTP> <BEA-101017>
<[ServletContext(id=23669321,name=registeruser,context-path=/registeruser)]
Root cause of ServletException.
javax.servlet.jsp.JspException: Exception creating bean of class
code.LoginForm: {1}
    at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:487)
    at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)
    at jsp_servlet.__index._jspService(__index.java:216)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:996)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
ServletStubImpl.java:463)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
ServletStubImpl.java:315)
    at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(
WebAppServletContext.java:6452)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
WebAppServletContext.java:3661)
    at weblogic.servlet.internal.ServletRequestImpl.execute(
ServletRequestImpl.java:2630)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

On 9/7/06, Tom Jerry <tom.snow.jerry@gmail.com> wrote:
>
> I am using Weblogic 8.1 SP3
>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> <html:html locale="true">
>     <head>
>         <title><bean:message key="index.title "/></title>
>         <html:base/>
>     </head>
>
>     <body>
>         <html:form action="/login">
>             <bean:message key="prompt.login"/>
>             <html:text property="login"/>
>             <br/>
>             <bean:message key="prompt.password"/>
>             <html:password property="password"/>
>             <br/>
>             <html:submit>
>             <bean:message key="index.login"/>
>             </html:submit>
>         </html:form>
>     </body>
> </html:html>
>
> I am NOT using bean:define. In fact.. bean:message works... still that
> exception of creating bean comes :(
>
> On 9/7/06, paz.periasamy@axa.com.au <paz.periasamy@axa.com.au> wrote:
>
> >
> > Tom,
> >
> > Can you post the JSP code?
> >
> > Are you using WebLogic Portal 4.0 or WebLogic Server 6.1 SP5 version???
> > If so, Struts bean:define doesnt work in that version of software based on
> > my experience.
> >
> > Thanks and regards,
> > Pazhanikanthan. P (Paz)
> >
> > Consultant for AXA,
> > Senior Software Engineer,
> > HCL Australia Services Pty. Ltd.
> > Off   : +61-3-9618-4085
> > Mob : +61-0411-354-838
> >
> >
> >
> > *"Tom Jerry" <tom.snow.jerry@gmail.com> *
> >
> > 07/09/2006 02:21 PM
> > Please respond to "Struts Users Mailing List"
> >
> >         To:        "Struts Users Mailing List" <user@struts.apache.org>
> >         cc:
> >         Subject:        Re: exception
> >
> >
> > Error 500--Internal Server Error
> >
> > javax.servlet.jsp.JspException: Exception creating bean of class
> > code.LoginForm: {1}
> >                 at org.apache.struts.taglib.html.FormTag.initFormBean(
> > FormTag.java:487)
> >                 at org.apache.struts.taglib.html.FormTag.doStartTag(
> > FormTag.java:457)
> >                 at jsp_servlet.__index._jspService(__index.java:216)
> >                 at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
> >                 at
> > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(
> > ServletStubImpl.java:996)
> >                 at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet(
> > ServletStubImpl.java:419)
> >                 at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet(
> > ServletStubImpl.java:463)
> >                 at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet(
> > ServletStubImpl.java:315)
> >                 at
> > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
> > (WebAppServletContext.java:6452)
> >                 at
> > weblogic.security.acl.internal.AuthenticatedSubject.doAs(
> > AuthenticatedSubject.java:321)
> >                 at weblogic.security.service.SecurityManager.runAs(
> > SecurityManager.java:118)
> >                 at
> > weblogic.servlet.internal.WebAppServletContext.invokeServlet(
> > WebAppServletContext.java:3661)
> >                 at weblogic.servlet.internal.ServletRequestImpl.execute(
> > ServletRequestImpl.java:2630)
> >                 at weblogic.kernel.ExecuteThread.execute(
> > ExecuteThread.java:219)
> >                 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java
> > :178)
> >
> >
> >
> > On 9/6/06, David Friedman <humble@ix.netcom.com> wrote:
> > >
> > > What is the full stack trace in your application server logs?
> > >
> > > -----Original Message-----
> > > From: Tom Jerry [mailto:tom.snow.jerry@gmail.com]
> > > Sent: Wednesday, September 06, 2006 12:48 PM
> > > To: user@struts.apache.org
> > > Subject: exception
> > >
> > >
> > > Why do I get an "exception in creating bean" ????
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> >
> > _____________________________________________________________________
> > This e-mail has been scanned for viruses by MCI's Internet Managed
> > Scanning Services - powered by MessageLabs. For further information
> > visit http://www.mci.com
> >
> >
> >
> >
> >
> > *********************************************************************************
> > Important Note
> > This email (including any attachments) contains information which is
> > confidential and may be subject to legal privilege.  If you are not
> > the intended recipient you must not use, distribute or copy this
> > email.  If you have received this email in error please notify the
> > sender immediately and delete this email. Any views expressed in this
> > email are not necessarily the views of AXA.   Thank you.
> >
> > **********************************************************************************
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message