Regarding : ClasscastException in MI application

Dear All,
We are migrating the MI2.5 application to NWM7.1. In this phase we are encountering a exception as
Error: 500
Internal Servlet Error:
java.lang.ClassCastException: java.math.BigDecimal
Pls suggest what might be the cause, I am also trying to debug it & find the reason.
The detailed trace is as shown below..
Thanks
Saptak.

Trace....
Internal Servlet Error:
java.lang.ClassCastException: java.math.BigDecimal
     at com.sap.tc.mobile.cfs.pers.jdbc.types.JavaLangIntegerTypeHandler.readField(JavaLangIntegerTypeHandler.java:54)
     at com.sap.tc.mobile.cfs.pers.jdbc.core.SelectDataProcessor.readField(SelectDataProcessor.java:181)
     at com.sap.tc.mobile.cfs.pers.impl.spi.DefaultClassProxy.mdReadFields(DefaultClassProxy.java:64)
     at com.sap.tc.mobile.cfs.pers.jdbc.core.JDBCObjectIterator.loadData(JDBCObjectIterator.java:252)
     at com.sap.tc.mobile.cfs.pers.jdbc.core.JDBCObjectIterator.read(JDBCObjectIterator.java:229)
     at com.sap.tc.mobile.cfs.pers.jdbc.core.JDBCObjectIterator.next(JDBCObjectIterator.java:208)
     at com.sap.tc.mobile.cfs.compat.smartsync.data.SyncBoListImpl.(SyncBoListImpl.java:58)
     at com.sap.tc.mobile.cfs.compat.smartsync.data.SyncBoDataFacadeImpl.getSyncBos(SyncBoDataFacadeImpl.java:333)
     at com.efl.BP.dataaccess.DataAccess.getHeaderValues(DataAccess.java:290)
     at com.efl.BP.dataaccess.DataAccess.getHeaderValues(DataAccess.java:101)
     at com.efl.BP.Controllers.IssueSparesToTechnicians.getTechnicianStock(IssueSparesToTechnicians.java:127)
     at com.efl.BP.Controllers.IssueSparesToTechnicians.showTechniciansIssueSparesForms(IssueSparesToTechnicians.java:75)
     at com.efl.BP.Controllers.IssueSparesToTechnicians.saveTechniciansIssueSparesForms(IssueSparesToTechnicians.java:275)
     at com.efl.BP.Controller.doHandleEvent(Controller.java:316)
     at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetThreadSafe(AbstractMEHttpServlet.java:279)
     at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:552)
     at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doPost(AbstractMEHttpServlet.java:571)
     at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:193)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
     at org.apache.tomcat.core.Handler.service(Handler.java:287)
     at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
     at java.lang.Thread.run(Unknown Source)

Similar Messages

  • Regarding Sun Java System Application Server Issue with JVM

    Regarding Sun Java System Application Server Issue with JVM
    Hi
    I have installed SJSAS9.1 on solaris system. I m trying to deploy war file which i compiled in windows enviorment by jdk1.5.0_05. Every time i got the following error :
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
    PWC6199: Generated servlet error:
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler is doing
    [javac] -deprecation Output source locations where deprecated APIs are used
    [javac] -classpath Specify where to find user class files
    [javac] -sourcepath Specify where to find input source files
    [javac] -bootclasspath Override location of bootstrap class files
    [javac] -extdirs Override location of installed extensions
    [javac] -d Specify where to place generated class files
    [javac] -encoding Specify character encoding used by source files
    [javac] -source Provide source compatibility with specified release
    [javac] -target Generate class files for specific VM version
    [javac] -help Print a synopsis of standard options
    note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
    I have cheked jvm version on both system the only difference is :
    Solaris points to jdk 1.5.0_09
    Windows point to jdk1.5.0_05
    Even i tried to run blank jsp also but again i got the same error.
    Can any help me to sort out the problem or give me any idea so i can do something by my own.
    Thanks in Advance
    Gagan

    Do you have ANT installed and available?
    Thanks,
    Kedar

  • Problem with ClassCastException in web application

    Hello,
              I'm trying to deploy a web application in WLS 5.1 and I'm getting the
              "dreaded" ClassCastException every time when JSP tries to read a bean
              from the request or session. Under my architecture (actually it's just
              the regular "model 2" ) bean is populated by a servlet, set on the
              request and then retrieved by JSP (servlet forwards to JSP). Everything
              work fine when I register servlets in weblogic.properties, but
              ClassCastException is thrown on any attempt to read from the request if
              the same JSPs and servlets are deployed as web application.
              Has anybody come across the same problem?
              Thanks in advance for help.
              Alexander
              

    Hello,
              This is all well and good as a temporary bug, but it's totally unrealistic for
              the future. Two points:
              * The ClassLoader doesn't need to be discarded, it just needs to be cleared.
              * Other servlet engines seem to be able to handle this.
              Hope it's on its way to resolution!
              TDoan wrote:
              > Alexander:
              >
              > I had some problem with ClassCastException, and recently I found out what it
              > was that causing it. I'm sure if this is the same problem you are having,
              > but please read the following paragraph.
              >
              > I cutted this from http://www.weblogic.com/docs51/classdocs/API_servlet.html
              > ClassCastException and HTTP Sessions
              >
              > You might encounter a ClassCastException while developing servlets that use
              > HTTP sessions. This could happen as a result of the following set of events:
              >
              > a.. You store a reference to a custom class, myFoo, in an HTTP session.
              >
              > b.. While in mid-session, you change your servlet (or JSP or JHTML),
              > causing it to be reloaded. In fact, it is necessary for it to be reloaded by
              > a completely new class loader, and the old class loader that had previously
              > loaded it must be discarded.
              >
              > c.. Because your custom class myFoo is also located under the servlet
              > classpath, it too is reloaded by the new class loader.
              >
              > d.. Now, when you retrieve myFoo from the HTTP session, you cast it to the
              > expected type, but you recieve a ClassCastException. The exception is thrown
              > even if class myFoo has not changed. Because it has been loaded by a
              > different class loader, it is regarded by the JVM as incompatible.
              > Note: If you are using session persistence, the class contents must be
              > serialized, and you will not encounter this exception.
              >
              > Here are some suggested work-arounds to this problem:
              >
              > a.. Do not place your class myFoo in the servlet classpath. Instead, place
              > it in the system classpath or the weblogic.class.path, which are accessible
              > by WebLogic Server. The class will not be reloaded when the servlet is
              > modified. This drawback to this solution is that you cannot prototype the
              > myFoo class, because you must restart the server in order to reload the
              > class after it is modified.
              >
              > b.. If you need to prototype the class, you can write a wrapper method
              > within it to store and retrieve its contents to and from the session. You do
              > not access the class directly from the session, but instead call it is
              > wrapper methods to store or populate it is contents from the session. As
              > long as you use standard Java class types to store the class contents, they
              > will not be reloaded when the servlet is reloaded. This approach has
              > performance drawbacks because your wrapper methods would need to set or get
              > multiple name=value pairs for each class's attributes.
              >
              > c.. Another work-around is to catch the ClassCastException, and replace
              > the old class that is stored in the session with a newly instantiated class,
              > or remove it from the session. Unfortunately, you lose the session data that
              > was previously stored in the class, so you must write your application to
              > handle this scenario. This is the easiest solution to the problem-remember
              > that you should not be storing critical information in an HTTP session, but
              > rather storing it in a database.
              > Note: The ClassCastException generally occurs while you are developing
              > your servlets, and should not be an issue in a stable production system. If
              > you are upgrading your system online, you might wish to warn your customer
              > base.
              >
              > Hope it helps,
              > Tin
              >
              > "Alexander Ananiev" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hello,
              > >
              > > I'm trying to deploy a web application in WLS 5.1 and I'm getting the
              > > "dreaded" ClassCastException every time when JSP tries to read a bean
              > > from the request or session. Under my architecture (actually it's just
              > > the regular "model 2" ) bean is populated by a servlet, set on the
              > > request and then retrieved by JSP (servlet forwards to JSP). Everything
              > > work fine when I register servlets in weblogic.properties, but
              > > ClassCastException is thrown on any attempt to read from the request if
              > > the same JSPs and servlets are deployed as web application.
              > > Has anybody come across the same problem?
              > >
              > > Thanks in advance for help.
              > > Alexander
              > >
              

  • ClassCastException in Portal application in WL 7.0 SP5

    Hi,
    We have migrated an existing portal based web application from SP2 to SP5. In
    the migrated application we are expereincing following classcastexception.
    java.lang.ClassCastException: com.bea.portal.appflow.internal.PortalRequestImpl
    at com.bea.portal.appflow.PortalAppflowFactory.getPortalRequest(Ljavax.servlet.http.HttpServletRequest;)Lcom.bea.portal.appflow.PortalRequest;(PortalAppflowFactory.java:105)
    at com.bea.portal.render.servlets.jsp.RenderHelper.getPortalState(Ljavax.servlet.http.HttpServletRequest;)Lcom.bea.portal.model.PortalState;(RenderHelper.java:129)
    at jsp_servlet._framework.__portal._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(portal.jsp:20)
    at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1094)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:437)
    at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:20)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:319)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(PortalWebflowServlet.java:182)
    at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(WebflowServlet.java:294)
    at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1094)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:437)
    at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:20)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)
    at com.cis.iwp.security.AuthorizationFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(AuthorizationFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)
    at com.bea.p13n.tracking.clickthrough.ClickThroughEventFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(ClickThroughEventFilter.java:156)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:5632)
    at weblogic.security.service.SecurityServiceManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityServiceManager.java:685)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3213)
    at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2555)
    at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:251)
    at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:219)
    at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    Has anybody experienced any such problem on weblogic 7.0 sp5?
    Thanks & Regards,
    -Aparna

    Hi Mrutyunjay
    This is a common problem often seen in EP 5.0. The only possible solution is to apply SP5 Patch 1 with the latest Hotfix. You can download the same from the Service Marketplace.
    For further details refer to SAP Note number 627637.
    Please let us know if that fixed your problem.
    Warm Regards
    Priya.

  • Regarding Creation of  specific  Application scenario..

    Hii All,
    I am having a requirement where i have to create a application in which in FIRST view i m having a dropdown menu,from where i have select one parameter from dropdown menu, say for example there is list of countries in a drop down menu.when i select say India i will get a tabular data say "<b>name of state</b> ","<b>population</b>","<b>male:female ratio</b>" and etc.
    and i should get this tabular data corresponding to default country defined.When i will change the country from dropdown menu,I will get all detail(tabular data) corresponding to that country.
    and when i click on any item specified in "<b>name of state</b>" i.e one of the column of tabular data,it should display another table(some x, y , z colums) corresponding to that state .
    Can anyone help me out on how many bapiwrappers needs to be used for the above application and how will be the structure.
    Do i need to use a create, change bapiwrapper for dropdown menu or what??
    Thanks in advance
    Devendra Kumar Phate.

    hello deven,
    are you creating an application for MI client or an ABAP
    application?
    if you already have your data structure available in ABAP,
    i don't think that you should re-create one that will cater
    to the UI on your client application. if you are using the
    MI Tomcat runtime, you can make use of the web control events
    like onChange, to retrieve the corresponding data from
    data repository using the selected value. you can make use
    of XMLHttpRequest and DOM manipulation thru JavaScript;
    in this case, there no need for the whole page to be
    reloaded; only the delta data would be exchanged. you have
    however to create the corresponding handlers in your MI
    app that will return these XML elements (e.g. your state
    details) that will be inserted into your browser's DOM tree.
    hope this gives you an idea.
    regards
    jo

  • Please help me regarding Secure RMI Applet Application

    Hi Friends..
    Currently i use Java Card 2.2.1..
    I'm learning about SecureRMIDemo application that shipped with JCDK 2.2.1..
    Assume that i've loaded the SecureRMIApplet.cap successfully, and i've created the Secure RMI Client using SmartCardIO..
    And then i tried to do any process provided by Purse interface, such as debit, credit, setAccountNumber, etc..
    But i got this error message :
    java.rmi.RemoteException: Signature mismatch
         at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.throwError(Unknown Source)
         at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.throwException(Unknown Source)
         at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.getObject(Unknown Source)
         at com.sun.javacard.ocfrmiclientimpl.JCRemoteRefImpl.parseAPDU(Unknown Source)
         at com.sun.javacard.ocfrmiclientimpl.JCRemoteRefImpl.invoke(Unknown Source)
         at com.sun.javacard.samples.SecureRMIDemo.SecurePurseImpl_Stub.setAccountNumber(Unknown Source)
         at testRMIClient.SecureRMIClienrt.main(SecureRMIClienrt.java:27)Yes, i know that, that error message required to ensure that the application run in the Security context..
    But for me, who just getting started to Java Card Security, it becomes a problem... :(
    The message error tells that the Signature is mismatch..
    And then how to set this Signature before do any process in the SecureRMI Client application?..
    Since there's no way to set the Signature through Purse interface..
    Please help me regarding this..
    Thanks in advance..

    Thanks Shane for your reply..
    does it mean i've to send APDU?.. Because in the MySecurityService class code there's method that checks the CLA and INS byte..
    Or can i send an APDU Object while we're using the Java Card RMI Application mode?..
    Actually, in my opinion, i would say that if we use RMI mode, we don't need APDU Command anymore..
    Please correct me if i'm wrong..
    Thanks in advance..

  • Java.lang.ClassCastException in struts application

    Hi,
    In application after I perform an insert(data into the DB) operation, the application must then display a list . Currently this is not happening. I can perform the insert operation successfully , but after that i get the following exception:
    java.lang.ClassCastException: org.theclass.candidate.view.SearchForm
         org.theclass.candidate.view.CandidateListAction.execute(CandidateListAction.java:41)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         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:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I dont understand where to look for errors.
    This is my web.xml file :
    <web-app>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Usual Welcome File List -->
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <!-- Struts Tag Library Descriptors -->
    <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    </web-app>
    struts-config.xml:
    <struts-config>
         <form-beans>
              <form-bean
              name="candidateForm"
              type="org.theclass.candidate.view.CandidateForm"/>
         <form-bean
              name="listForm"
              type="candidate.ListForm"/>
              <form-bean
              name="searchForm"
              type="org.theclass.candidate.view.SearchForm"/>
         </form-beans>
    <global-forwards>
         <forward
              name="List"
              path="/jsp/list.jsp"/>
         <forward
              name="candidatelist"
              path="/CandidateList"/>
         <forward
              name="Add"
              path="/jsp/addcandidate.jsp"/>
    </global-forwards>
    <action-mappings>
         <action path="/Add"
              name="candidateForm"
              type="org.theclass.candidate.view.AddCandidateAction"
              validate ="true"
              input="/jsp/addcandidate.jsp">
              <forward name="success" path="/CandidateList.do"/>
         </action>
         <action path="/CandidateList"
              type="org.theclass.candidate.view.CandidateListAction"
              name="searchForm"
              scope="request" >
              <forward name="failure" path="/jsp/list.jsp"/>
              <forward name="success" path="/jsp/candidatelist.jsp"/>
         </action>
         <action path="/Edit"
              type="org.theclass.candidate.view.GetCandidateAction"
              name="candidateForm"
              scope="request"
              validate="false" >
              <forward name="success" path="/jsp/editcandidate.jsp"/>
              <forward name="error" path="/CandidateList.do"/>
         </action>
         <action path="/View"
              type="org.theclass.candidate.view.GetCandidateAction"
              name="candidateForm"
              scope="request"
              validate="false" >
              <forward name="success" path="/jsp/viewcandidate.jsp"/>
              <forward name="error" path="/CandidateList.do"/>
         </action>
         <action path="/EditCandidate"
              type="org.theclass.candidate.view.EditCandidateAction"
              name="candidateForm"
              scope="request"
              input="/jsp/editcandidate.jsp"
              validate="true" >
              <forward name="success" path="/CandidateList.do"/>
              <forward name="error" path="/jsp/editcandidate.jsp"/>
         </action>
         <action path="/ViewCandidate"
              name="candidateForm"
              scope="request"
              input="/jsp/viewcandidate.jsp"
              validate="true" >
              <forward name="success" path="/CandidateList.do"/>
              <forward name="error" path="/jsp/viewcandidate.jsp"/>
         </action>
    <action path="/List"
              name="searchForm"
              type="org.theclass.candidate.view.CandidateListAction"
              input="/jsp/list.jsp">
              <forward name="success" path="/jsp/candidatelist.jsp"/>
         </action>
    </action-mappings>
    <!-- Controller Configuration -->
    <controller
    processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
    <!-- Message Resources Definitions -->
    <message-resources parameter="ApplicationResources"/>
    <!-- comment following if struts1.0.x -->
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config"
         value="/WEB-INF/tiles-defs.xml" />
    <set-property property="moduleAware" value="true" />
    <set-property property="definitions-parser-validate" value="true" />
    </plug-in>
    <!-- end comment if struts1.0.x -->
         <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
              <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
    </plug-in>
    <plug-in className="org.theclass.candidate.view.HibernatePlugin">
    <!-- <set-property property="configFilePath" value="/WEB-INF/src/hibernate.cfg.xml" /> -->
         <set-property property="configFilePath" value="/hibernate.cfg.xml" />
    <set-property property="storeInServletContext" value="true" />
         </plug-in>
    </struts-config>
    Please tell me where am i going wrong. I am running out of time.
    I use struts 1.2.9, JDK 5,tomcat 5.5.17. In CandidateListAction class i have hibernate query language statements(HQL)

    Take a look at the stack trace, it shows you exactly where the error is coming from:
    java.lang.ClassCastException: org.theclass.candidate.view.SearchForm
    org.theclass.candidate.view.CandidateListAction.execute(CandidateListAction.java:41)Line 41 in your CandidateListAction.
    Probably it is failing on a cast of your action form.
    Taking a closer look at your struts-config, you are "chaining" actions.
    Your AddCandidateAction uses the candidateForm, and forwards to CandidateListAction.do
    Your CandidateListAction uses the searchForm.
    That will be the cause of your class cast exception.
    <action path="/Add"
      name="candidateForm"
      type="org.theclass.candidate.view.AddCandidateAction"
      validate ="true"
      input="/jsp/addcandidate.jsp">
      <forward name="success" path="/CandidateList.do"/>
    </action>
    <action path="/CandidateList"
    type="org.theclass.candidate.view.CandidateListAction"
    name="searchForm"
    scope="request" >
    <forward name="failure" path="/jsp/list.jsp"/>
    <forward name="success" path="/jsp/candidatelist.jsp"/>
    </action>Check out: http://struts.apache.org/1.x/faqs/newbie.html#chaining
    Solutions?
    - don't chain actions ;-)
    - use the same action form for both actions (possible?)
    - make the actionForward a "redirect" one. That means a new request, and losing any request parameters/attributes but should prevent this class cast exception.
    Hope this helps,
    evnafets

  • Regarding login through secude application.

    I am having windows SNC (authentication) and i am trying to login through secude application to SAP.
    Even then it is asking for username and password for logging to SAP.
    My collegaue is also having same rights , but he is not being asked for username and password.
    Can you please tell me why?

    Call your IT support team.. this is not a SAP issue.
    Also, Read the "Rules of Engagement"
    Regards
    Juan

  • Proble regarding running a java application

    hi guys
    i'm new to java environment .
    when i'm running a java application in a console ,
    it is not able to give output in other directories.it is working only in c:\j2sdk\bin.
    i think its the problem of setting classpath.
    can any one help me hw to run java program in any folder.

    You need to add that directory to your PATH. Follow
    the installation instructions more completely.Howdy sheriff Warnerja! How's life in the Schmuckville Home of the Ball-less? Any leads regarding the dot flasher case? I see you're on the PATH.
    Sheriff Warnerja of Schmuckville sensed an indecency plot.
    Here was someone exposing her private dot.
    He went on the trail,
    but of no avail:
    He didn't know where to find that intimate spot!

  • Need Help regarding a simple mobile application

    Hello friends,
    I am bit newbee to J2ME technology.
    I have basic understanding about MIDLETS.
    Friends,i am designing an instant messenger using midlet.
    Could anyone send some idea's of how to design a CHAT application.IF some one can give a small code of implementing it could be really helpful....
    Looking for your help!!!
    Thanks In Advance !!!
    Regards,
    RAHUL

    You have been no help but I will post again hoping someone else can reply....
    Here is a more exact detailing of what I am trying to do:
    I am hosting a text file here:
    http://www.geocities.com/biocx/entertainer.txt
    And when I open up MMAPI Demo and go to simple player, and then URL and paste this in, it plays the simple rtttl/midi file. It is doing this through RingToneConverter.
    Now all I want to do, and this is the part I need help with, is while it is playing, I want the notes to be displayed on screen. Can anyone help me with this! I have tried and every time is gives me a problem saying that the RingToneConverter Class isn't abstract and I cannot print to screen...
    If someone could help me with this, it would be greatly appreciated.
    Thank you,
    Mike

  • Query regarding accessing of Webdynpro application from a non-SAP system.

    Hi,
      I have developed a webdynpro application and I want the users from non-SAP systems to access it from their browser. User will not have to enter the username and password of the SAP system. How will I achieve this? Any suggestions?

    Hi Anirban,
    you can assign a user in the service of your web dynpro application.
    Call transaction SICF and open the service to your web dynpro application.
    Within the tab "logon data" you can enter a user/password.
    You should not assign a dialoug user.
    For productive environment, have a look at all the other options like SSL
    and maybe you have to do some more configuration to make it secure!!!
    Keep in mind, that all "internet" users are working now with the same SAP user/authorization.
    Kind Regards,
    Andreas

  • Regarding Oracle ADF Enterprise Application Development - Made Simple book

    Hi guys,
    I am trying to do Sten Vesterli's Oracle ADF Enterprise Application Development - Made Simple
    book. But I am stuck setting up OTPC. When I am trying to run "tpcinstaller.jar" and give my database connection information I am given a TPC-90019 error.
    The log file says it is a "ORA-01882: timezone region not found" error.
    My timezone is 'Asia/Calcutta'.
    This is what tpcinstaller log file contains,
    -------------------------------------------------------------------------------------log_file
    oracle.alminternal.version.Version: file:/C:/install/tpcinstaller.jar!/META-INF/version.xml
    11.1.1.4.37.59.23
    Launched from jar:file:/C:/install/tpcinstaller.jar!/oracle/alminternal/installer/Installer.class
    Found installer jar file /C:/install/tpcinstaller.jar
    Installer jar file name: /C:/install/tpcinstaller.jar
    Created temporary directory: tpctemp
    Execute command[tpctemp]: [D:\Oracle\Middleware\jdk160_21\bin\jar.exe, -xf, /C:/install/tpcinstaller.jar, lib]
    Extracting files ...
    Launching installer wizard, it may take a minute or so, please wait ...
    Execute command[tpctemp\lib]: [D:\Oracle\Middleware\jdk160_21\bin\java.exe, -classpath, annotations.jar;commons-io-1.2.jar;dms.jar;forms-1.0.6.jar;ideimpl.jar;idert.jar;javatools-nodeps.jar;javatools.jar;javax-ide.jar;javax.persistence_1.0.0.0_2-0-0.jar;jewt4.jar;oicons.jar;ojdbc6dms.jar;ojdl.jar;ojmisc.jar;oracle.ide.jar;oracle.ide.webbrowser.jar;oracle.ide.webupdate.jar;org.eclipse.persistence_1.0.0.0_2-1.jar;share.jar;TimingFramework.jar;uic.jar;xercesImpl.jar;xmlparserv2.jar;/C:/install/tpcinstaller.jar, oracle.alminternal.installer.Installer, -W]
    Temporary directory: connector created
    C:\install\tpctemp\lib\otpc created
    Jan 5, 2013 11:38:33 PM oracle.alminternal.installer.ideimpl.webbrowser.ProxyAddin loadProxyNative
    WARNING: Unable to default HTTP proxy: Native support is not available.
    :::settingsInitialized = false
    jdbc.url = jdbc:oracle:thin:@localhost:1521:xe
    jdbc.user = BOOK
    jdbc.password = BOOK
    SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-01882: timezone region not found
    -------------------------------------------------------------------------------------log_file
    Regards !
    Sameera
    Edited by: samme4life on Jan 5, 2013 9:10 PM

    I have the same problem, when I delete row and after that I use refresh button in internet explorer. What I do is I drag and drop button "removeEntity" and edit it in backing beans adding new bindigs that commit changes and referesh page. Code:
    public String commandButton2_action1() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("removeEntity");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    OperationBinding commit1 = bindings.getOperationBinding("Commit");
    commit1.execute();
    OperationBinding requery = bindings.getOperationBinding("findAllRezerwacja1");
    requery.execute();
    return null;
    In page definition I added "Commit" action and code with methodAction is:
    <methodAction id="removeEntity" InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="removeEntity"
    RequiresUpdateModel="true" Action="999">
    <NamedData NDName="entity"
    NDValue="${bindings.findAllRezerwacja2.currentRow.dataProvider}"
    NDType="java.lang.Object"/>
    </methodAction>
    <action id="Commit" IterBinding="findAllRezerwacja1Iter"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" RequiresUpdateModel="true"
    Action="2"/>
    Can sb tell is there is normal that when I delete row in table, and after it I refresh manually by IE page is normal that I get error messages. I this is the same situation using Back in IE. Deleting row that is commited to database works fine, but the problem is with manually refreshing page?
    Next question is about using Delete action from node instead of removeEntity, what is the difference? As you can see, I use removeEntitity method. Choosing Delete action instead doesnt works. Why? Rest of the code is the same but instead of dropping method removeEntity I drop Delete action
    Sorry for my English, its not my native.
    Thank in advance

  • Regarding MAM 2.5 application

    Hi,
    I have downloaded MAM 2.5 application from service place.
    I have uploaded the MAM25.war taken from 51031176\MBS_MAM_2.5_SR2\MBS_MAM_2.5_SoftwareObjects\Client in the cd to the webconsole. On downloading the app to the device. Only the User view manager is enabled and not order management and other scenarios. Arent they enabled
    by default.
    I tried to built the MAM25_Eclipse.war from 51031176\MBS_MAM_2.5_SR2\MBS_MAM_2.5_SoftwareObjects\Client_eclipse as MAMApplication.war file and uploaded it to webconsole.
    After downloading to the device and on clicked gives page not found error.
    Is the application name 'MAMApplication' given in the web console wrong.
    Regards
    Raja Sekhar

    Hi Jo,
    Please find the contents of the web.xml file below
    <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE web-app (View Source for full doctype...)>
    - <web-app>
    - <filter>
      <filter-name>FilterRedirector</filter-name>
      <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
      </filter>
    - <filter-mapping>
      <filter-name>FilterRedirector</filter-name>
      <url-pattern>/FilterRedirector</url-pattern>
      </filter-mapping>
    - <servlet>
      <servlet-name>MAMStart</servlet-name>
      <jsp-file>/mam_start.jsp</jsp-file>
      </servlet>
    - <servlet>
      <servlet-name>ServletRedirector</servlet-name>
      <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
      </servlet>
    - <servlet>
      <servlet-name>JspRedirector</servlet-name>
      <jsp-file>/jspRedirector.jsp</jsp-file>
      </servlet>
    - <servlet>
      <servlet-name>front</servlet-name>
      <servlet-class>com.sap.mbs.mam.application.web.FrontServlet</servlet-class>
    - <init-param>
      <param-name>application</param-name>
      <param-value>com.sap.mbs.mam.application.MAMApplication</param-value>
      </init-param>
    - <init-param>
      <param-name>config</param-name>
      <param-value>core.configure</param-value>
      </init-param>
    + <init-param>
      <param-name>list_definition</param-name>
      <param-value>WEB-INF/ListDef.xml</param-value>
      </init-param>
    - <init-param>
      <param-name>resource</param-name>
      <param-value>MAMText</param-value>
      </init-param>
    - <init-param>
      <param-name>errorPage</param-name>
      <param-value>/error_page.jsp</param-value>
      </init-param>
      </servlet>
    - <servlet>
      <servlet-name>MainServlet</servlet-name>
      <servlet-class>com.sap.mbs.mam.test.servlet.DataViewer</servlet-class>
      </servlet>
    - <servlet-mapping>
      <servlet-name>MainServlet</servlet-name>
      <url-pattern>/MainServlet</url-pattern>
      </servlet-mapping>
    - <servlet-mapping>
      <servlet-name>front</servlet-name>
      <url-pattern>*.do</url-pattern>
      </servlet-mapping>
    - <servlet-mapping>
      <servlet-name>MAMStart</servlet-name>
      <url-pattern>start</url-pattern>
      </servlet-mapping>
    - <servlet-mapping>
      <servlet-name>ServletRedirector</servlet-name>
      <url-pattern>/ServletRedirector</url-pattern>
      </servlet-mapping>
    - <servlet-mapping>
      <servlet-name>JspRedirector</servlet-name>
      <url-pattern>/JspRedirector</url-pattern>
      </servlet-mapping>
    - <taglib>
      <taglib-uri>/list</taglib-uri>
      <taglib-location>/WEB-INF/List.tld</taglib-location>
      </taglib>
    - <taglib>
      <taglib-uri>/tabstrip</taglib-uri>
      <taglib-location>/WEB-INF/tabstrip.tld</taglib-location>
      </taglib>
    - <taglib>
      <taglib-uri>/uvm</taglib-uri>
      <taglib-location>/WEB-INF/uvm.tld</taglib-location>
      </taglib>
    - <taglib>
      <taglib-uri>/search</taglib-uri>
      <taglib-location>/WEB-INF/search.tld</taglib-location>
      </taglib>
      </web-app>
    Please let me know the application name shud be in the web console.
    Regards
    Raja Sekhar

  • Regarding downloading file on application server ?

    i am using open data set and close data set to create file on application server.
    the program is compiling fine, but when i execute it, it throws a dump saying
    DATASET_NOT_OPEN  , it says that the file is not open.
    when i check value of sy-sub-rc it is 8. no file on server.
    i want to create a dynamic file name, like i want to append the sy-cdate to the file name, so that when i schedule my program every day, i will create a new file.
    what is the t-code to look at directories on app server. i tried al11, but couldnt find mine..but the basis said they had already created a folder for me there.
    - Points will be awarded for inputs.
    Message was edited by:
            ravi a

    Hi,
    May be you don't have write permission for the corresponding folder on the application server. thats why you could not create file on that folder.so ask you basis people for read/write permission on the that destination folder..
    For creating dynamic file , you can use logical file and physical file concept..
    for each interface maintain a logical file name in a ztable and ask your basis people to maintain a physical file path on application server for each logical file name.(using FILE Txn).
    first get the logical file name from ztable then get corresponding physical path onapplication server using FM 'FILE_GET_NAME' and finally concatenate the sydatun to physical file name...
    DATA: l_file_folder TYPE string,
            l_logical_file TYPE fileintern,
      CLEAR: file1.
    *<b> First get the logical file name from table zabc021</b>
      SELECT SINGLE log_file " Actual file location
                         INTO l_logical_file
      FROM zabc021
      WHERE interface = p_interface
        AND inorout = 'O'. "outbound interface
    <b>* Get the physical file name from the logical file name</b>
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
      CLIENT                        = SY-MANDT
          logical_filename              = l_logical_file
       IMPORTING
         file_name                     = l_file_folder
       EXCEPTIONS
         file_not_found                = 1
         OTHERS                        = 2
      IF sy-subrc = 0.
    <b>* In actual situation the file name should come from FILE txn</b>
        CONCATENATE l_file_folder
        p_interface '_' sydatum4(2) sydatum6(2) '.DAT' INTO file1.
      ELSE.
        CLEAR file1.
        MESSAGE s999 WITH 'No logical file maintained with name ' l_logical_file.
        EXIT.
      ENDIF.
    now file1 is the file name.
    I hope this info is useful to you...
    Reward if needful

  • Regarding writing file in application server with ISO8859 characters

    Hello Experts,
      I have a requirement that i need to write my file which read from the data base in ISO8859 characters in the application server.
    Is there any FM or any particular code conver normal data base data to ISO8859 characters ?
    Please give me some advise.
    Thanks,
    Suresh

    Hello Suresh,
    You DONOT have to do any conversion. You need to use the CODE PAGE addition with your OPEN DATASET stmt.
    Can you specify as to which Character Set you need to download? (e.g., Cyrillic, Greek, Polish etc)
    You can have a look into the SAP Note 73606 for details.
    BR,
    Suhas
    Edited by: Suhas Saha on Dec 19, 2008 7:27 AM

Maybe you are looking for

  • Video Frame Capture

    Can you capture individual video frames for sharing or printing using Premiere Elements?

  • Text justification in text box

    I have just built a website in iweb and have included a table that has a coloumn of words to the very right of the text box. These look justified in iweb but become ragged in appearance when published. Can anyone suggest how I can avoid/correct this

  • Trigger Vendor master idoc automatically

    Hi Experts, When i save idoc vendor master (CREMAS05) , how can i trigger the idoc and send it to XI system automatically ? I tried running the report RSEOUT00 with the idoc details but message displayed is 'no idoc ready for processing'. Regards, Sy

  • Not able to connect to my network since upgrade 2 days ago

    Hello, 1 of my machines is unable to connect wirelessly to my network now. It usually is on NetworkManager, and fails at the "setting address" stage. I switched to manual setup to see where it fails and this I what I have: ip link set dev wl works rf

  • Compiling AXI DMA linux drivers in SDK.

    Hi guys, I think I'm doing something wrong and It's making me crazy. I've got: Vivado 2015.2 w/ SDK. Zynq zc702. Tested in Linux 14.04 and Windows 7. And I want to use the axi dma drivers in a Linux application so that I downloaded the axidma_test.c