ConcurrentModificationException in jsp

Hi
I my application, sometimes only I have this ConcurrentModificationException
2009-06-18 09:09:24,115 DEBUG: myapp.web.web.ctrl.ContentController(564) - Setting form session attribute [myapp.web.ctrl.ContentController.FORM.cmd] to: myapp.cmd.ContentCommand@54854bb0
2009-06-18 09:09:24,118 ERROR: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mobile].[jsp](711) - Servlet.service() for servlet jsp threw exception
java.util.ConcurrentModificationException
     at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
     at java.util.AbstractList$Itr.next(AbstractList.java:343)
     at org.apache.taglibs.standard.tag.common.core.ForEachSupport$SimpleForEachIterator.next(ForEachSupport.java:108)
     at org.apache.taglibs.standard.tag.common.core.ForEachSupport.next(ForEachSupport.java:130)
     at javax.servlet.jsp.jstl.core.LoopTagSupport.doAfterBody(LoopTagSupport.java:266)
     at org.apache.jsp.WEB_002dINF.views.content_jsp._jspx_meth_c_005fforEach_005f18(content_jsp.java:9310)
     at org.apache.jsp.WEB_002dINF.views.content_jsp._jspx_meth_c_005fif_005f59(content_jsp.java:9166)
     at org.apache.jsp.WEB_002dINF.views.content_jsp._jspx_meth_c_005fif_005f58(content_jsp.java:9107)
     at org.apache.jsp.WEB_002dINF.views.content_jsp._jspService(content_jsp.java:1562)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
     at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:240)
     at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:258)
     at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1174)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
     at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
     at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
     at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
     at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
     at java.lang.Thread.run(Thread.java:619)The problem here is it happens in jsp code. I can debug this kind of exception in Java code but do not know how to deal this exception in jsp file.
Could you please provide a suggestion
Many thanks

The problem here is it happens in jsp code. I can debug this kind of exception in Java code but do not know how to deal this exception in jsp file.This is a lesson to be learnt. It is one of the reasons why it is not a good idea to place java code in jsp.
I my application, sometimes only I have this ConcurrentModificationExceptionRead the following link to find out when ConcurrentModificationException is thrown
[http://java.sun.com/j2se/1.5.0/docs/api/java/util/ConcurrentModificationException.html|http://java.sun.com/j2se/1.5.0/docs/api/java/util/ConcurrentModificationException.html] .

Similar Messages

  • ConcurrentModificationException from jsp

    Loadtesting 5.1, SP4 - I got a few of these:
              Thu Aug 17 16:36:06 GMT+00:00 2000:<E> <ServletContext-General> Servlet
              failed with Exception
              java.lang.ClassCastException:
              com.sun.java.util.collections.ConcurrentModificationException
              at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Compiled
              Code)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)
              at weblogic.servlet.jsp.OneOffJspLoader.loadClass(Compiled Code)
              at java.lang.ClassLoader.loadClass(Compiled Code)
              at jsp_servlet.archives.to.mwt_wild._jspService(Compiled Code)
              at weblogic.servlet.jsp.JspBase.service(Compiled Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
              Code)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled
              Code)
              at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              This was as the load testing was ramping up - though all the jsps were
              already compiled.
              

    Chris -
              We have also seen this problem while load testing with WLS5.1 SP4. The SP5
              release notes state this has been fixed (although I have not confirmed it
              yet with our own testing):
              ISSUE 31868:
              Fixed ConcurrencyModificationException.
              I am guessing that "Concurrency" is a typo and should read "Concurrent".
              For details see:
              http://www.weblogic.com/docs51/classdocs/README2.html#CR031868
              -Mark
              Chris Fullerton <[email protected]> wrote in message
              news:[email protected]...
              > Loadtesting 5.1, SP4 - I got a few of these:
              >
              > Thu Aug 17 16:36:06 GMT+00:00 2000:<E> <ServletContext-General> Servlet
              > failed with Exception
              > java.lang.ClassCastException:
              > com.sun.java.util.collections.ConcurrentModificationException
              > at
              > weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Compiled
              > Code)
              > at
              > weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)
              > at
              > weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)
              > at weblogic.servlet.jsp.OneOffJspLoader.loadClass(Compiled Code)
              > at java.lang.ClassLoader.loadClass(Compiled Code)
              > at jsp_servlet.archives.to.mwt_wild._jspService(Compiled Code)
              > at weblogic.servlet.jsp.JspBase.service(Compiled Code)
              > at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
              > at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
              > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              > Code)
              > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              > Code)
              > at
              > weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
              > Code)
              > at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled
              > Code)
              > at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              > at weblogic.kernel.ExecuteThread.run(Compiled Code)
              >
              > This was as the load testing was ramping up - though all the jsps were
              > already compiled.
              

  • Session Problems(ConcurrentModificationException)

    Hi,
    I am facing some problems with session here.
    I get a java.util.ConcurrentModificationException whenever i try to empty the shopping cart.
    Could somebody pls kindly advise?
    Thanks in advance
    below is the code:
    <% String item = request.getParameter("itemName");
    if(item != null && item.equals("emptyCart")) {
    java.util.Enumeration attributeNames = session.getAttributeNames();
    while(attributeNames.hasMoreElements()) {
    String attributeName = (String)attributeNames.nextElement();
    session.removeAttribute(attributeName);
    } else if(item != null) {
    String attributeName = item + "CD";
    session.setAttribute(attributeName, item);
    %>

    Similar qus answered int his forum ..
    refer
    http://forum.java.sun.com/thread.jsp?thread=244532&forum=45&message=897268

  • ConcurrentModificationException

    Hi
    In my web application,
    am getting following exceptions
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654)
    at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:435)
    (and)
    ConcurrentModificationException
    If any one intrested let me know under which circumstances this exception will thrown and how to solve this....
    thanks & Regards
    Dhinesh kumar R

    One possibility is that one of your servlets or JSPs has a Collection as instance member that one request is modifying while another is iterating over it. If this is the case then you need to understand that Servlets should not have instance members unless you take steps to make sure that they are accessed in a thread safe manner. My rule is that I NEVER have instance members in Servlets or JSPs.

  • ConcurrentModificationException in RequestContextImpl class

    Am currently getting a ConcurrentModificationException thrown by the
    notifyRequestCompletionListeners method of the RequestContextImpl
    class.
    The context is:
    A JSP includes two JSP fragments, containing tiled views bound to
    primary models and surrounded by jato:context tags, to
    enable/disable the display of one or the other.
    The observed behavior is as follow:
    a) Despite a JSP fragment doesn't need to be displayed (i.e.
    beging<>Display method returns false), the associated tiled view is
    though instanciated.
    How come childs are instantiated though not used ?
    I thought JATO instanciates resources only when needed - or is it
    maybe because the JSP fragments are statically bound - translation-
    time includes ?.
    b) While in notifyRequestCompletionListeners method of the
    RequestContextImpl class, a requestComplete() triggers the
    instantiation of a tiled view, which sets a primary model in its
    constructor, which is added to the request context. This triggers
    the ConcurrentModificationException. The exception happens when the
    tiled view contains a HREF (commenting the HREF out in the
    registerChildren method, hides the problem).
    How is it that instances are created during the
    notifyRequestComplitionListeners method, and why only when the tiled
    view contains HREF ?

    Jacquess--
    I don' t have a lot of time right now, but some comments until I have more
    time:
    I am getting a ConcurrentModificationException thrown by the
    notifyRequestCompletionListeners method.
    The context is a JSP including two JSP fragments surrounded
    by "content" tags and containing tiled views with HREF childs.
    The observed behavior is as follow:
    a) Although a JSP fragment is not displayed, i.e. begin<>Display
    method returns false, the corresponding tiled view class is though
    instantiated.The question is when is it instantiated? I would expect it to be
    instantiated on the subsequent request back to the server, but not during
    the response/rendering phase (when the content tag comes into play). The
    built-in mapRequestParameters() logic is not smart enough to skip mapping
    values for registered containers. You may be able to encode a value in the
    page that indicates the non-displayed views and avoids registering them for
    that request. To do this, would want to use the optional constructor for
    the ViewBean that takes a RequestContext:
    public class MyViewBean extends ViewBeanBase
    public MyViewBean(RequestContext context)
    super(PAGE_NAME);
    registerChild("text1",TextField.class);
    if (context.getRequest().getParameter(TILEDVIEW1_SHOWN)!=null)
    registerChild("tiledView1",MyTiledView.class);
    registerChild("text2",TextField.class);
    Get the idea? This is just a thought, I haven't thought it through
    completely. In the future, would could perhaps encode this information
    transparently for you and take advantage if it during parameter mapping.
    I thought JATO instantiates childs only when needed ?
    Is it because the JSP fragments are translation time includes ?
    b) While iterating over the request completion listeners in the
    notifyRequestCompletionListeners method, a new completion listener is
    added, causing the ConcurrentModificationException. The completion
    listener, which is the primary model of a tiled view, is added when
    registering a child that is a HREF bound to this primary model.
    Commenting out the registration of the HREF child in the tiled view
    hides the problem.Patient: "Doctor, my arm hurts when I do this."
    Doctor: "So don't do that."
    Are you saying the registration is happening automatically and unavoidably
    as a result of some JATO behavior, or are you intentionally adding a
    listener during notification?
    Should not all required childs be instantiated before the
    notifyRequestCompletionListeners method is called ?Generally, yes, though if your listener makes a getChild() call on a child
    that wasn't previously instantiated, it would cause that child to be
    created.
    Why does a HREF trigger the instantiation of a model and not a static
    text child for instance ?
    For more information about JATO, including download information, pleasevisit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • ConcurrentModificationException when using jcifs.smb.SmbSession.logon

    We recently migrated our intranet from Apache to the WAS 640 environment (SP14).  We are getting the following intermittent error when users initially navigate to the intranet:
    [code]#1.5#00096B6B4AFD004700000064004E800C00040C4C8A3AD7CD#1139422783002#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#pcbp.com/PCBPOnline_APP#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#J2EE_GUEST#786####79cd709098cf11da81e400096b6b4afd#SAPEngine_Application_Thread[impl:3]_12##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet [jsp] finished with error.
    The error is: java.util.ConcurrentModificationException: null
    Exception id: [00096B6B4AFD004700000062004E800C00040C4C8A3AD587]#
    #1.5#00096B6B4AFD004700000065004E800C00040C4CA09ADC09#1139423158393#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#pcbp.com/PCBPOnline_APP#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#J2EE_GUEST#786####598db69098d011daa8a700096b6b4afd#SAPEngine_Application_Thread[impl:3]_12##0#0#Error##Plain###Processing HTTP request to servlet [jsp] finished with error. The error is: java.util.ConcurrentModificationException
         at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java(Inlined Compiled Code))
         at java.util.LinkedList$ListItr.next(LinkedList.java(Compiled Code))
         at jcifs.smb.SmbTransport.getSmbSession(SmbTransport.java(Compiled Code))
         at jcifs.smb.SmbSession.logon(SmbSession.java(Compiled Code))
         at jcifs.smb.SmbSession.logon(SmbSession.java(Inlined Compiled Code))
         at com.pcbp.util.NTLMSecurity.doFilter(NTLMSecurity.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))[/code]
    If the user presses refresh or navigates to the url again, the problem disappears.  It happens to one particular user every morning, the first time he tries to open the intranet.  Other user's it only happens to every once in a while.  Has anyone experienced this error before and if so, is there a fix for it?

    The error "jcifs.smb.SmbException: Connection refused: connect" is the root cause here, looks like for some reason your jcifs client can't connect to the server and that is causing the app server to show an 500 internal server error message.
    Rob
    Team JDev

  • JSP to call EBusiness Suite report

    We are running 11.5.9 on 9i looking for some direction on creating a jsp to run and display output of a report. Looking to reproduce the "Print Quote" action that is in the Qouting module - with other reports.
    Would like to know which version of JDeveloper we should use as well as any sugestions on how to accomplish this.

    Hi,
    I also want to work on crystal report but i dont have the ReportViewerBean.jar and ReportViewer.jar. So, please tell from where will i get those jar files.
    Thanks in advanced.

  • Exception-Error when excecuting JSP-File in Crystal reports for Eclipse

    Hi,
    I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
    Coud anyone help me?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
    An error occurred at line: 7 in the generated java file
    Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
    An error occurred at line: 8 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
    An error occurred at line: 9 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
    An error occurred at line: 10 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
    An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
    ReportClientDocument cannot be resolved to a type
    10:      try catch (ReportSDKExceptionBase e)
    60:      
    An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
    e cannot be resolved
    55:
    56:
    57:      } catch (ReportSDKExceptionBase e)
    60:      
    61: %>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    Apache Tomcat/5.5.26
    Bericht1.jsp:
    <%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.reports.sdk.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
    com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
         // This sample code calls methods from the JRCHelperSample class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the JRCHelperSample class.
         try {
              String reportName = "Bericht1.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                   // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                        // Create the CrystalReportViewer object
                        CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                        //     set the reportsource property of the viewer
                        IReportSource reportSource = clientDoc.getReportSource();                    
                        crystalReportPageViewer.setReportSource(reportSource);
                        // set viewer attributes
                        crystalReportPageViewer.setOwnPage(true);
                        crystalReportPageViewer.setOwnForm(true);
                        // Apply the viewer preference attributes
                        // Process the report
                        crystalReportPageViewer.processHttpRequest(request, response, application, null);
                   // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Thanks
    Arnold

    According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
    To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.

  • .How can I add data from one list to other in Jsp Page

    Hi..I have three multiple selection ListBox..I want to add the selected item from 2 list boxes to 3rd list box how can i do that..do i need to write javascript? If possible then suggest me some link where i can get help?
    Thanks
    Regards
    Chintan

    Yep, Javascript.
    Unless you want to post the data to the server and then rewrite the page (ie. jsp/servlets) then you are going to need to use a client side script to modify the page.
    Javascript. You need to get the onClick() event of one list box and get the item that was clicked. then you can rewrite the 3rd list box.
    If possible, try doing a search on google. Or do you want someone to hold your hand.

  • How to use single JSP page for multiple users.

    Hi ,
    I am doing messenger kind of program using JSP and tomcat server.
    When i type message it is showing in the some div. If some other person request for the same page by giving my IP address and jsp page, he should able to see what i have typed on page so far.
    how can i do that one . can any one guide me .
    Thanks in advance.

    SuneelGoodatJava wrote:
    Hi ,
    I am doing messenger kind of program using JSP and tomcat server.
    When i type message it is showing in the some div. If some other person request for the same page by giving my IP address and jsp page, he should able to see what i have typed on page so far.
    how can i do that one . can any one guide me .
    Thanks in advance.HTTP is a request/response protocol. You can't do what you're suggesting without "pushing" what you type to all the other users. That's not the way HTTP works. Maybe an applet and servlet.
    %

  • How to print new line in jsp page

    hi
    how to print new line in jsp page
    thanks

    \n - new line character is in java specific not HTML
    specific.Well, if the correct line separator sequence (by far not always \n) would be used, it does add a new line to the HTML output. Too bad that you don't want to see HTML but formatted text. The BR tag is a formatting element for the displayed text, not a line break in HTML. ;)

  • How to Get Portlet Namespace in a JSP attribute

    Hi All,
    The id of any component in a JSF application (with JSR168 portlets) takes the form
    'view'+'<portlet:namespace/>'+':'+'formname:componentidname';
    I need this id to be used for certain validations.
    Currently I am using it as below :-
    <h:intputText required="#{ ! empty param['viewns_7_CGAH47L000NAF0I04I42ND10P7_:form:login']}"/>
    Presently I have hardcoded the portlet namespace 'ns_7_CGAH47L000NAF0I04I42ND10P7_' by looking into the html source of the rendered page.
    Is there any way by which i can automatically get this portlet namespace within the param tag in the jsp.
    I know for a fact that within javascript tags, it can be used as <portlet:namespace/> as shown below :-
    <script type="text/javascript">
    function doSomething()
    buttonId= 'view' + '<portlet:namespace/>'+':'+'formName:buttonId';
    document.getElementById(buttonId).disabled = true;
    </script>
    Kindly treat this on high priority.
    Thanks and Regards,
    Darshan Shroff

    Perhaps so.
    I need to use it within param as below
    <h:inputText value="#{bean.userid}"
    required="#{!empty param['viewns_7_CGAH47L00GLRE0I0BCOUKS00I5_:form:login']}" />
    Here 'viewns_7_CGAH47L00GLRE0I0BCOUKS00I5_:form:login' is actually
    'view' + '<portlet:namespace/>'+':'+'formName:buttonId';
    I am just trying to check the presence of the client ID in the request paramameter map inorder to attain action dependent requiredness.
    Kindly tell me how i could access it within param.
    Thanks & Regards,
    Darshan Shroff

  • Clicking on jsp page does not open it in visual editor.

    All "open jsp tags in visual editor" checkbox is on for all libraries.
    Jdeveloper version is 10131 build 3914
    Message
    BME-99003: An error occurred, so processing could not continue.
    Cause
    The application has tried to de-reference an invalid pointer. This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
    java.lang.NullPointerException
         at oracle.jdevimpl.webapp.design.util.InvisibleJspElementsUtil.applyInvisibleJSPElements(InvisibleJspElementsUtil.java:108)
         at oracle.jdevimpl.webapp.design.util.InvisibleJspElementsUtil.applyInvisibleJSPElements(InvisibleJspElementsUtil.java:78)
         at oracle.jdevimpl.webapp.design.util.InvisibleJspElementsUtil.applyInvisibleJSPElements(InvisibleJspElementsUtil.java:47)
         at oracle.jdevimpl.webapp.design.view.DesignTimeFixedViewDocument.rebuildTree(DesignTimeFixedViewDocument.java:162)
         at oracle.jdevimpl.webapp.model.content.dom.view.proxy.ProxyViewDocument.initialize(ProxyViewDocument.java:80)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.rebuildViewDocument(AbstractWebAppEditor.java:686)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.rebuildViewDocument(HtmlEditor.java:621)
         at oracle.jdevimpl.webapp.editor.jsp.JspEditor.rebuildViewDocument(JspEditor.java:209)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.createDocuments(AbstractWebAppEditor.java:1206)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.open(AbstractWebAppEditor.java:393)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.open(HtmlEditor.java:172)
         at oracle.jdevimpl.webapp.editor.jsp.JspEditor.open(JspEditor.java:113)
         at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:239)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:147)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:90)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:275)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1261)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1196)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditorInFrame(EditorManagerImpl.java:1077)
         at oracle.ideimpl.editor.EditorManagerImpl.openDefaultEditorInFrame(EditorManagerImpl.java:1036)
         at oracle.adfdt.controller.util.CommonUtils.showEditor(CommonUtils.java:575)
         at oracle.adfdt.controller.jsf.diagram.shape.PageNode.gotoPage(PageNode.java:355)
         at oracle.adfdt.controller.jsf.diagram.shape.PageNode.invokeAction(PageNode.java:292)
         at oracle.adfdt.controller.jsf.diagram.registry.RPageNode.editContents(RPageNode.java:210)
         at oracle.bm.diagrammer.track.SelectionTracker.keyPressed(SelectionTracker.java:1338)
         at oracle.bm.diagrammer.track.ModularTracker.processEvent(ModularTracker.java:253)
         at oracle.bm.diagrammer.track.SelectionTracker.processEvent(SelectionTracker.java:148)
         at oracle.bm.diagrammer.track.TrackerStack.processEvent(TrackerStack.java:375)
         at oracle.bm.diagrammer.BaseDiagramView$53.processEvent(BaseDiagramView.java:733)
         at oracle.bm.diagrammer.PageView$PageViewPanel.fireEvent(PageView.java:2933)
         at oracle.bm.diagrammer.PageView$PageViewPanel.processEvent(PageView.java:3111)
         at java.awt.Component.dispatchEventImpl(Component.java:4407)
         at java.awt.Container.dispatchEventImpl(Container.java:2042)
         at java.awt.Component.dispatchEvent(Component.java:4237)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1828)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:952)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:824)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
         at java.awt.Component.dispatchEventImpl(Component.java:4279)
         at java.awt.Container.dispatchEventImpl(Container.java:2042)
         at java.awt.Window.dispatchEventImpl(Window.java:2405)
         at java.awt.Component.dispatchEvent(Component.java:4237)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Action
    If further errors occur, you should restart the application.
    Also, report the problem on the JDeveloper forum on otn.oracle.com, or contact Oracle support, giving the information from this message.
    ________________________________________________________________________________

    one more thing...the code runs properly on localhost... i tested it on my pc n it was fine..both in firefox and IE...
    i guess there is a specific syntax i need to follow (strict syntax) but i dunno what it is...:(

  • Remote system JSP project not working in eclipse

    Hi
    I am developing a JSP project. My files are on a remote server and I want to configure it in Eclipse 3.3 with Lomboz. The problem is After adding the project it gives a warning that xml files can't be validated.The exact warning is
    The file cannot be validated as the XML Schema "\192.168.1.10\gunjan_share\workspace\Project1\WebContent\WEB-INF\web.xml (The system cannot find the path specified)" that is specified as describing the syntax of the file cannot be located.
    Due to this error JSP pages are not getting compiled.
    Plz help me
    Thanks

    Extracted from Note 1067696.1:
    You need to either adapt your code to remove the scriptlets in your JSP page,
    or you can use the following Java option to disable OJSP:
    -Dadfvdt.disableOjspDeployment=true
    You can add this option -Dadfvdt.disableOjspDeployment=true in your file "ide.conf" in the directory "<Middleware_Home>\jdeveloper\ide\bin"
    For your Production environment, you can have your Managed WLS ignoring the OJSP mode by adding the Java Option -Dadfvdt.disableOjspDeployment=true
    * in the "startManagedWebLogic" (if you want to limit it to a specific Managed Server)
    * or "setDomainEnv" (for all managed servers in a domain).

  • Error message for a JSP-BC4 Application

    Hi,
    I have created a simple BC4J-JSP application using the wizards in Jdeveloper. I used the emp-dept table from scott.
    Then I created a .ear file and uploaded that to an OC4J instance using ias 902 enterprise manager. The main.html comes normally. But when I am trying to click on the left hand navigator the following error message is coming:
    Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /JSP_BC4J_TEST1/common/bc4j.xcfg in the classpath
    Error Message: JBO-33001: Cannot find the configuration file /JSP_BC4J_TEST1/common/bc4j.xcfg in the classpath
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /JSP_BC4J_TEST1/common/bc4j.xcfg in the classpath
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:372)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
         at DeptView_Browse._jspService(_DeptView__Browse.java:58)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:535)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:152)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
         at java.lang.Thread.run(Thread.java:484)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /JSP_BC4J_TEST1/common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:237)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:192)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:348)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
         at DeptView_Browse._jspService(_DeptView__Browse.java:58)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:535)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:152)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
         at java.lang.Thread.run(Thread.java:484)
    Thanks,
    Ritendra.

    I think too, that is a time machine problem.
    I have 4 volume partions (3 hard disk) at this mac. I use only the time machine as backup system. Only one. Before I install Snow Leopard I use the latest MacOS X 10.5.8. Always the newest version of MacOS.
    Perhaps I describe it: Under 10.5.8 I use the time machine backup volume at an external firewire drive, always the same. I switch off this firewire drive often. In this case (the drive isn`t connect) the icon of this partition"Pro10.4" was changed to the time machine volume icon, but the time machine does nothing at this partition.
    After the installation of 10.6 I cannot access to this "Pro10.4" volume. I get the same error message if I want to open the external drive volume of my time machine backup. There is no problems with my other two partition. Of course my old V10.5.8 is at one of this partition. If I start my mac from a other partition (time machine is off), I have no problem with all partitions.
    I change the name of "Pro10.4", but nothing is changing. The time machine protect the backup volume under V10.6. Unfortunately it choose an other partition, if it don`t find my external drive. How can I reset this state of my "Pro10.4"?
    Thanks
    Uwe

Maybe you are looking for

  • Hyperlink data to specific data not the whole table

    On a table, I have a hyperlink on one of the columns. When I click on the data on that column, another page displays a table with all the data including the data that is clicked. I like to be able to click on the hyperlinked data and another page ope

  • Need help interpreting an Apache error message

    I hope my Apache/Tomcat questions of late aren't off topic - I am trying to get them to work together so that Tomcat will handle Java servlet. I'm one of collection of newbies trying to troubleshoot the fact that we can't do anything with servlets ev

  • Error message: "itunes could back the iphone because an error occured"

    Error message: "itunes could back the iphone because an error occured" when i am syncing my iphone with itunes. It seems that itunes manage to syn my contacts up till photos then the error message occured. can anyone help? Thanks

  • [SOLVED] KDE switches activities when opening a new File

    First off, I've been using KDE Plasma Workspaces for a few months now, and for the most part am largely satisfied.  Thanks to both the developers of KDE and to the contributors on Arch who made setting everything up a breeze. One thing that does anno

  • How to make a button to search something in sql

    I am trying to make a button that can search for something like for example if like say i type yes, it will show me things that is under yes.But I am not sure how to make the code work as I cannot change the php code as it is under the requirement th