Java.lang.IllegalStateException with ADF Code Corner's 73 tutorial

Hi Frank,
I am working on JDEV PS2. I was going through your "73. Hands on – Creating a search form using a POJO WS and the Web Service Data Control" tutorial.
At the last step I added Sorting and Filtering to the table. When I searched last name with string "ZA" then I am getting below exception:
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
java.lang.IllegalStateException
     at oracle.jbo.uicli.binding.JUSearchBindingCustomizer.getViewCriteria(JUSearchBindingCustomizer.java:2106)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl.getFilterCriteria(FacesCtrlSearchBinding.java:1271)
     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer._getFilterCriteria(BaseColumnRenderer.java:1469)
     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.decodeInternal(BaseColumnRenderer.java:727)
     at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1121)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:715)
     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.decodeColumns(BaseTableRenderer.java:1731)
     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.decodeInternal(TableRenderer.java:127)
     at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1121)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:715)
     at org.apache.myfaces.trinidad.component.UIXTable.decode(UIXTable.java:137)
     at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:188)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:39)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:109)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:112)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
Anyone encountered this? With my actual application also I am facing the same issue. I believe this exception occurs when we add "Filtering" to the results table and also if we try to search with some data which is not there in the results table.
It would be appreciate if someone can guide me on this issue.
Thanks
Mahesh
Edited by: Mahesh.C on Mar 17, 2011 11:27 AM

I got similar error after I clicked on the pencil to rebind the table and set the propeties and clicked OK.
I am using 11.1.1.5. What I noticed is in the pageDef the <AttrNames> tag under the <tree had all the items were deleted.
So I undid the changes and got them back.
This doesn't explain the java.lang.IllegalStateException but on running got:
java.lang.NullPointerException
o.adfdtinternal.view.rich.binding.provider.ADFTableRebindModelProvider.getDefinition(ADFTableRebindModelProvider.java:29)
But it does indicate an issue with the step.
Regards

Similar Messages

  • Java.lang.UnsupportedClassVersionError with ADF and Websphere

    I'm trying to get an app running with ADF/Tomahawk/MyFaces/Facelets going on Websphere 6.0. However Websphere is running with a 1.4.2 JVM instead of 1.5 so I get an error when it comes to the ADF NavigationHandlerImpl which has been built with Java 1.5. Is there a Java 1.4 version of ADF faces I should have downloaded somewhere?
    Hints appreciated.
    Regards, Murray
    ==<logs below >=================================
    [5/4/06 13:15:47:816 GMT] 00000011 FacesConfigur I Reading config /WEB-INF/faces-config.xml
    [5/4/06 13:15:48:236 GMT] 00000011 WebApp E LinkageError while defining class: oracle.adfinternal.view.faces.application.NavigationHandlerImpl
    Could not be defined due to: oracle/adfinternal/view/faces/application/NavigationHandlerImpl (Unsupported major.minor version 49.0)
    This is often caused by having a class defined at multiple
    locations within the classloader hierarchy. Other potential causes
    include compiling against an older or newer version of the class
    that has an incompatible method signature.
    Dumping the current context classloader hierarchy:
    ==> indicates defining classloader
    ==>[0]
    com.ibm.ws.classloader.CompoundClassLoader@7d4e3ab9
    Local ClassPath: C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\classes;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\activation-1.0.2.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-facelets.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-faces-api-ea20-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-faces-impl-ea20-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\aui.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\common-annotations.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-beanutils-1.7.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-codec-1.3.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-collections-3.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-digester-1.6.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-el-1.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-fileupload-1.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-io-1.2.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-lang-2.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-logging-1.0.4.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\el-api.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\el-ri.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jsf-facelets1014.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jsp-api.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jstl-1.1.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\log4j-1.2.13.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-impl-files.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-layer-interfaces.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-layer-standalone.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\myfaces-api-1.1.3-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\myfaces-impl-1.1.3-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\portlet.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\serializer.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\tomahawk-1.1.2-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xalan.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xercesImpl.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xml-apis.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xpp3_min-1.1.3.4.O.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xstream-1.1.3.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xstream-with-attributes.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war;
    Delegation Mode: PARENT_FIRST
    [1] com.ibm.ws.classloader.JarClassLoader@630356666 Local Classpath: Delegation mode: PARENT_FIRST
    [2] com.ibm.ws.classloader.ProtectionClassLoader@2333faba
    [3] com.ibm.ws.bootstrap.ExtClassLoader@7f427ab8
    [4] sun.misc.Launcher$AppClassLoader@7f4cbab8
    [5] sun.misc.Launcher$ExtClassLoader@7f30bab8
    ---Original exception---
    java.lang.UnsupportedClassVersionError: oracle/adfinternal/view/faces/application/NavigationHandlerImpl (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:576)
         at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:414)
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:260)
         at org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:131)
         at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
         at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:521)
         at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:448)
         at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:131)
         at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)
         at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:49)
         at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1355)
         at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:371)
         at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
         at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
         at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
         at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
         at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
         at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:1678)
         at com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(ComponentImpl.java:304)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)

    Hi,
    you will have to compile the application with JDK 1.4 in this case. This should work for JSF and ADF Faces.
    Frank

  • Java.lang.NullPointerException with ADF Module

    Hi,
    I am trying to build simple application like "How to Build a Simple UIX Search Form
    But my view is
    =====================================================
    SELECT EmIssue.ID,
    EmIssue.INITIATIVE_ID,
    EmIssue.NAME,
    EmIssue.DESCRIPTION
    FROM EM_ISSUE EmIssue
    =====================================================
    And I added new method at AppModuleImpl
    It is
    ViewObject Issue = findViewObject("EmIssueView1");
    System.out.println("***In setBindVars*****");
    String WhereClause = " EmIssue.NAME like '%issue%'";
    Issue.setWhereClause(WhereClause);
    System.out.println("***END setBindVars*****");
    Issue.executeQuery();
    =====================================================
    And the system raises error with java.lang.NullPointerException at line
    String WhereClause = " EmIssue.NAME like '%issue%'";
    Could any one tell me where is error in my code
    Thanks

    It is unlikely that NPE was raised on
    String WhereClause = " EmIssue.NAME like '%issue%'";
    It's more likely that NPE was thrown from
    Issue.setWhereClause(WhereClause);
    This would happen if Issue is null, which means that the findViewObject() method couldn't find a VO named "EmIssueView1". Make sure that the VO name is spelled corectly. Names are case sensitive.
    Thanks.
    Sung

  • Getting java.lang.IllegalStateException error with response.getOutputStream

    Hi,
    I am writer a JSP site for displaying JFreeChart. The main JSP page gets some parameters then the second page out put the chart as binary data with a Java class.
    I've located the part which generated the error, as follows:
    Code:
    OutputStream os = response.getOutputStream(); <--- this line cause the error
    response.setContentType("image/png");
    ChartUtilities.writeChartAsPNG(os, chart, 400, 300);
    (other than it, the JSP does nothing with response or out)
    Error:
    Servlet.service().for servlet jsp threw exception java.lang.IllegalStateException
    at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:62)
    at org.apache.jsp.build005f005.seriesChart_jsp.jspService(org.apache.jsp.build_005f005.seriesChart_jsp:110)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWarpper.java:325)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    I've searched this forum and google and seeking for solution for thousands times. But sadly, ways such as adding out.reset(); doesn't work.
    Would any one has some suggestion for me? Your help is very appreciated. Thanks!

    A similar question / answers from jGuru.com
    Question I used getOutputStream() of response object in JSP. Below is the code for download a file in JSP.
    %>
    <%@ page import="java.util.*,
                        java.io.*"
    %>
    <%@ page language="java"
              session="false"
              contentType="text/html; charset=8859_1"
    %>
    <%
         //read the file name.
         File fFile = new File ("D:/Ibs/outdir/batchres.conf");
         String stFileName = "batchres.conf";
         //the content type set as excel
         response.setContentType ("application/excel");
         //the header and also the Nameis set by which user will be prompted to save
         response.setHeader ("Content-Disposition", "attachment;filename=\""+stFileName+"\"");
         //Open an input stream to the file and post the file contents thru the
         //servlet output stream to the client m/c
         InputStream isStream = null;
         ServletOutputStream sosStream = null;
         try
              //response.flushBuffer();
              isStream = new FileInputStream(fFile);
              sosStream = response.getOutputStream();
              int ibit = 256;
              while ((ibit) >= 0)
              ibit = isStream.read();
              sosStream.write(ibit);
         catch (IOException ioeException)
    sosStream.flush();
    sosStream.close();
    isStream.close();
    %>
    If run this code in Tomcat i am getting following error.. �<h1>Error: 500</h1> <h2>Location: /imu/jsp/ibUTLCmnDownloadView.jsp</h2>Internal Servlet Error:
    java.lang.IllegalStateException: getOutputStream() has already been called
         at org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(Unknown Source)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(Unknown Source)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(Unknown Source)
         at jsp.ibUTLCmnDownloadView_12._jspService(ibUTLCmnDownloadView_12.java, Compiled Code)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
         at org.apache.tomcat.core.Handler.invoke(Unknown Source)
         at org.apache.tomcat.core.Handler.service(Unknown Source)
         at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
         at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown Source)
         at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown Source)
         at JP.co.Hitachi.soft.IBS.Common.Servlet.ibUTLCmnDownloadScrGenServlet.doPost(ibUTLCmnDownloadScrGenServlet.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
         at org.apache.tomcat.core.Handler.invoke(Unknown Source)
         at org.apache.tomcat.core.Handler.service(Unknown Source)
         at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
         at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
         at org.apache.tomcat.core.ContextManager.service(Unknown Source)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:479)
    Answer
    Don't know if this will help--your code worked as is on my system (J2SDK 1.4.1, Tomcat 4.1.12, Linux)--but you're setting the content-type twice, and to two different values. In the page directive, you specify contentType="text/html; charset=8859_1", and then in the scriptlet, you do a response.setContentType ("application/excel");. Try changing the one in the page directive and deleting the one in the scriptlet. The servlet container may be calling getOutputStream() when it sees the text MIME type so it can prepare the out built-in variable.
    Also, according to the J2EE design patterns, JSP's should only be used to produce text output. Any binary output (such as Excel files) should be produced with servlets--otherwise, the JSP becomes one big scriptlet (like this one).
    If you still want to do this with a JSP, you might want to take out your try ... catch block since you're not doing anything with it. Doing so will allow you to let the servlet container handle the errors (i.e. specify error pages in the web application deployment descriptor). Either that, or at least put the close() and flush()calls in it since they can throw IOExceptions, too. :)
    Finally, you should never close the servlet's output stream. Leave that up to the servlet container.
    Is this item helpful? yes no Previous votes Yes: 2 No: 3
    To transfer file from client to server using jsp programs
    chalpati Rao, Aug 11, 2004 [replies:1]
    How to Download File using JSP program
    Re: To transfer file from client to server using jsp programs
    Saravanan Mani, Aug 24, 2004
    Try restarting the server.It worked for me (ie.you did all the code changes mentioned in the previous reply)
    Breakline problems
    David Machado, Jan 27, 2005 [replies:1]
    Hi! Maybe a problem with breaklines. Try this: ------------------------------------------------------
    %><%@ // don't send breakline here!!!
    page import="java.util.*,
    java.io.*"
    %><%@ // don't send breakline here too!!!
    page language="java"
    session="false"
    contentType="text/html; charset=8859_1"
    %><% // finally, don't send breakline here!!!
    //read the file name.
    File fFile = new File ("D:/Ibs/outdir/batchres.conf");
    String stFileName = "batchres.conf";
    //the content type set as excel
    response.setContentType ("application/excel"); // twice???
    //the header and also the Nameis set by which user will be prompted to save
    response.setHeader ("Content-Disposition", "attachment;filename=\""+stFileName+"\"");
    //Open an input stream to the file and post the file contents thru the
    //servlet output stream to the client m/c
    InputStream isStream = null;
    ServletOutputStream sosStream = null;
    try
    //response.flushBuffer();
    isStream = new FileInputStream(fFile);
    sosStream = response.getOutputStream();
    int ibit = 256;
    while ((ibit) >= 0)
    ibit = isStream.read();
    sosStream.write(ibit);
    catch (IOException ioeException)
    sosStream.flush();
    sosStream.close();
    isStream.close();
    %> // make sure that's no breakline an no spaces at the end!!
    Re: Breakline problems
    Aarthi Sivaram, Apr 19, 2005
    In the above code sosStream = response.getOutputStream(); must be removed. Use 'out' instead of sosStream i.e. out.write(""+ibit); If you look at the Java code generated for your JSP, you can find JspWriter out = null ... .. JspWriter calls response.getOutputStream(), thats why when u call getOutputStream, u get IllegalStateException. 'out' variable is available for direct use in all JSP's, like 'request'. So that can be directly used to write.
    A quick and working workaround
    Leslie Leng, May 20, 2005 [replies:1]
    I am not going to discuss the theory behind, as others gurus mentioned before me, are valid.
    In short, getOutputStream() could not be used more than once, and also it will conflict with JSPWriter's out.
    So, the quick workaround would be, at the end of the JSP page, add the following:
    out.clear();
    out = pageContext.pushBody();
    in example:
    catch(Exception e){
    System.out.print(e);
    out.clear();
    out = pageContext.pushBody();
    %>
    Re: A quick and working workaround
    ajit Pandey, Jul 15, 2005
    Thanks a ton Leslie ,it worked(Production issue) :) credit goes to you....indebted

  • Set Process Options  with Studio 10.3.1 : 'java.lang.IllegalStateException'

    Hello,
    I am creating a "Set Process Options" activity like in the demo "Expense Reimbursement" of Studio 10.3.1.
    When storing the options, I get this error :
    The task could not be successfully executed.
    Reason: 'java.lang.IllegalStateException: The component must be invoked on a server-side method.'.
    Causé(e) par: The component must be invoked on a server-side method.
    fuego.lang.ComponentExecutionException: The task could not be successfully executed.
    Reason: 'java.lang.IllegalStateException: The component must be invoked on a server-side method.'.
         at fuego.xobject.runtime.components.XObjectInputImpl$1.commit(XObjectInputImpl.java:98)
         at fuego.web.execution.InteractiveInvocation.finish(InteractiveInvocation.java:116)
    etc...
    The error seems to be caused by Fuego.Server.storePropertyFor since I don't get the last "logMessage".
    I created objects, methods, and screenflow similar to those in the demo.
    Comparing with the log generated by the demo, the difference is :
    demo :
    ProcessOptions.commitOptions : xml :<xobject.BusinessComponents.ProcessOptions xmlns="http://bea.com/albpm/DynamicXml/version/2.0">
    (etc...)
    Process read unlock: '/ExpenseReimbursement#Default-1.0' [HasWriteLock=false, ReadLockers=1]
    Execution Servlet action type:REDIRECT
    ExecutionDispatcher.actionId: REDIRECT
    Executor.execId: 10000
    Executor.getForwardComponent: fuego.xobject.runtime.components.XObjectHtmlRuntimeController
    etc...
    mine :
    i don't get the "Process read unlock" message and I get :
    Executor.execId: 0
    Is there any parameter to configure in the engine preferences to make it work ?
    or what did I forget in the code ?
    What could I do to fix that ?
    Thanks !
    Here is the last code lines arround the error :
    logMessage("OptionsEtRéférentiels.enregistrerOptions : nomApplication :"+nomApplication);
    if (nomApplication == null) {
         nomApplication = "TPV1";
    logMessage("OptionsEtRéférentiels.enregistrerOptions : nomApplication :"+nomApplication);
    String xml = DynamicXml.createXmlTextFor(this);
    logMessage("OptionsEtRéférentiels.enregistrerOptions : xml :"+xml);
    Fuego.Server.storePropertyFor(application: nomApplication, name: "OptionsXML", value: xml);
    logMessage("OptionsEtRéférentiels.enregistrerOptions : enregistré");

    Hi,
    I think it might be something simple to fix.
    Open the Expense Reimbursement project again. Open either of the two methods in the Catalog's BusinessComponents.ProcessOptions that store and retrieve the Fuego.Server properties.
    On the right side (to the right of the Variables tab), open the Properties tab. Note that both of these methods have their "Server Side Method" properties set to "Yes".
    Make sure that your BPM Object's method's Server Side Method" property is set to "Yes" and I think you should be Okie Dokie.
    Dan

  • Servlet failed with Exception java.lang.IllegalStateException: Response already committed

    Hi,
    can someone help with this issue. I've been getting this error in my logs since for the past 3 days and I don't know how to resolve it.
    os-aix-64 bit
    wls:10.3
    ####<Aug 25, 2014 11:36:18 AM GMT+05:30> <Error> <HTTP> <XXX-XXXXXX-XX> <examplesServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1408946778196> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@2ee12ee1 - appName: 'consoleapp', name: 'console', context-path: '/console', spec-version: '2.5'] Servlet failed with Exception
    java.lang.IllegalStateException: Response already committed
            at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1553)
            at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:838)
            at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:136)
            at com.bea.netuix.nf.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:50)
            at com.bea.netuix.servlets.controls.content.NetuiContent.handleRedirect(NetuiContent.java:234)
            at com.bea.netuix.servlets.controls.content.NetuiContent.handlePreRenderResponseState(NetuiContent.java:630)
            at com.bea.netuix.servlets.controls.content.StrutsContent.handlePreRenderResponseState(StrutsContent.java:224)
            at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:310)
            at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:727)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:146)
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
            at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
            at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
            at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
            at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
            at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:211)
            at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:196)
            at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.bea.console.utils.MBeanUtilsInitSingleFileServlet.service(MBeanUtilsInitSingleFileServlet.java:54)
            at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    TIA,
    Vamsi

    Can someone please help me with this issue.

  • JSP compilation failed with java.lang.IllegalStateException: zip file close

    Hi,
    I have a web app successfully deployed on Weblogic7.0 and HP UX 11.0, which uses jdk 1.3.1_02
    In this application, when i invoke a jsp (this exception occurs on any jsp not to any specific jsp), i found the following exception trace on wl-domain.log file and server crashes: -
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(Unknown Source)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.upToDate(ChangeAwareClassLoader.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java, Compiled Code)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java, Compiled Code)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can anyone help me in figuring out this problem urgently?
    thanks in advance
    manoj

    Hi Manoj.I am also getting the same problem in the weblogicserver version-6.1 SP2.It is also using the jdk 1.31.
    here is my stack trace.Help i smuch appreciated.!!
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:197)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:106)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:45)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:265)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:156)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:65)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at com.slfc.framework.service.ServiceMessageFactory.createServiceResult(ServiceMessageFactory.java:58)
         at sunlife.nexus.admin.SecPro.establishSupportSession(Unknown Source)
         at sunlife.nexus.admin.Page_secPro_extAppLoader.processPageRequest(Unknown Source)
         at sunlife.wis.servlets.WISServlet.redirect(WISServlet.java:63)
         at sunlife.wis.servlets.WISServlet.doExec(WISServlet.java:107)
         at sunlife.wis.servlets.WISServlet.doGet(WISServlet.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • Getting error Servlet failed with Exception java.lang.IllegalStateException

    Hi
    I am getting this error throughout the server when i am trying to download a pdf from that page.
    Im attaching the error console
    2011 5:10:26 PM CEST> <Error> <HTTP> <aczocc08x.vfcz.dc-ratingen.de> <ShopSrv1_1_pre> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1306163426535> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@172d19e - appName: 'OCC', name: '/shop', context-path: '/shop'] Servlet failed with Exception
    java.lang.IllegalStateException: Cannot resize buffer - 76438 bytes have already been written (Servlet 2.3, sec. 5.1)
         at weblogic.servlet.internal.ServletResponseImpl.setBufferSize(ServletResponseImpl.java:338)
         at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74)
         at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110)
         at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:40)
         at jsp_servlet._checkout._order.__cart_thank_45_you._jspService(__cart_thank_45_you.java:644)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at vodafone.servlet.security.HttpsEnforcingFilter.doFilter(HttpsEnforcingFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at atg.servlet.pipeline.TailPipelineServlet.service(TailPipelineServlet.java:90)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:202)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:279)
         at vodafone.dynamo.servlet.LocaleRedirector.service(LocaleRedirector.java:75)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:279)
         at atg.servlet.dafpipeline.RecordingServlet.service(RecordingServlet.java:280)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.http.CookieBufferServlet.service(CookieBufferServlet.java:97)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.ExpiredPasswordServlet.service(ExpiredPasswordServlet.java:356)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:206)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:565)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2442)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:602)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:461)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.servlets.ServletHelper.service(ServletHelper.java:34)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.dynamo.servlet.DefaultCatalogFixer.service(DefaultCatalogFixer.java:54)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.profile.VodafoneSSOProfileRequestServlet.service(VodafoneSSOProfileRequestServlet.java:231)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:480)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.session.SessionSynchronizationServlet.service(SessionSynchronizationServlet.java:38)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:561)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1100)
         at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:782)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:231)
         at atg.filter.dspjsp.PageFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    >
    Anyone has any idea or faced this issue before please guide me what is the cause, i have got a feeling that this may be because server has run out of memory.

    i havn't written anything before calling set buiffer sizeSo why does the exception message say the opposite?
    I can see that error may be because of a jsp named cart_thank-you.jspSo can I. So have a look at it. It is writing something before the other thing is calling setBufferSize().
    you can see that in erro logSo can you.

  • PLEASE HELP ME!!! java.lang.IllegalStateException

    I need Help, im encountering this Exception and i dont know what to do, can any Help me to resolve this problem.... Any help is greatly appreciated
    /HERE'S MY CODE-----------------------------------------
    String fileName = "Sample";
    System.out.println("Download Word Document");
    System.out.println(session.getAttribute("data"));
    // set the header details
    int id = Integer.parseInt(String.valueOf(session.getAttribute("data")));
    System.out.println("ID is: " + id);
    try {//set the header details
    ph.gov.da.finalstandards.daos.DAOFacade.file(id);
    response.setContentType("application/msword");
    //response.setHeader("Content-Disposition", "attachment; filename=" + fileName);
    //set the content type to related file
    javax.servlet.ServletOutputStream o = response.getOutputStream();
    InputStream inStream = new BufferedInputStream(new FileInputStream(
    "c:\\tempWordOutput.doc"));
    // set buffer size. Each attempt to read the file will use
    // specified number of bytes
    byte[] buf = new byte[4 * 1024];
    int bytesRead = 0;
    while ((bytesRead = inStream.read(buf)) != -1) {
    o.write(buf, 0, bytesRead);
    o.write(id);
    o.flush();
    o.close();
    } catch (Exception e) {
    e.printStackTrace();
    %>
    [4/20/07 9:26:13:265 CST] 7f007f0 SystemErr R java.lang.IllegalStateException
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at java.lang.Throwable. (Throwable.java)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.legacy.impl.PortletResponseImpl.setHeader(PortletResponseImpl.java:475)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at org.apache.jsp._finalPage._jspService(finalPage.jsp :63)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:364)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:700)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:798)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/20/07 9:26:13:531 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/20/07 9:26:13:546 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1030)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.struts.base.BaseImplUtil.include(BaseImplUtil.java:1229)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.portlets.struts.WpsStrutsUtil.include(WpsStrutsUtil.java:1888)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.portlets.struts.WpsStrutsViewJspCommand.includeURL(WpsStrutsViewJspCommand.java:170)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.portlets.struts.WpsStrutsViewJspCommand.execute(WpsStrutsViewJspCommand.java:145)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeCommand(WpsStrutsUtil.java:1223)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeCommand(WpsStrutsUtil.java:1141)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeSavedCommand(WpsStrutsUtil.java:1067)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.portlets.struts.WpsStrutsPortlet.doService(WpsStrutsPortlet.java:1121)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.portlets.struts.WpsStrutsPortlet.doView(WpsStrutsPortlet.java:1162)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at org.apache.jetspeed.portlet.PortletAdapter.service(PortletAdapter.java:154)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at org.apache.jetspeed.portlet.Portlet._dispatch(Portlet.java:744)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at org.apache.jetspeed.portlet.Portlet.access$100(Portlet.java:88)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at org.apache.jetspeed.portlet.Portlet$Context.callPortlet(Portlet.java:899)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.legacy.cmpf.impl.PortletFilterManager.doFilter(PortletFilterManager.java:253)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at org.apache.jetspeed.portlet.Portlet.dispatch(Portlet.java:636)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at org.apache.jetspeed.portlet.Portlet.doGet(Portlet.java:510)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet.service(CacheablePortlet.java:352)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at org.apache.jetspeed.portlet.Portlet.service(Portlet.java:491)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/20/07 9:26:13:562 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1030)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.callMethod(PortletInvokerImpl.java:466)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:135)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1378)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:386)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:428)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:102)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.pe.pc.PortletContainer.renderPortlet(PortletContainer.java:95)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.composition.PortletHolder.render(PortletHolder.java:87)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.tags.PortletRenderTag.doStartTag(PortletRenderTag.java:151)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at org.apache.jsp._Control._jspService(Control.jsp :176)
    [4/20/07 9:26:13:578 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:364)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:700)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:798)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1025)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.skins.Default.render(Default.java:70)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:75)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.wps.composition.elements.Component.render(Component.java:906)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.wps.composition.elements.Control.render(Control.java:210)
    [4/20/07 9:26:13:593 CST] 7f007f0 SystemErr R at com.ibm.wps.composition.Composition.render(Composition.java:2747)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at org.apache.jsp._UnlayeredContainer_2D_V._jspService(UnlayeredContainer-V.jsp :12)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:364)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:700)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:798)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1025)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
    [4/20/07 9:26:13:625 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.skins.Default.render(Default.java:70)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:75)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.composition.elements.Component.render(Component.java:906)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.composition.elements.SingleEntryContainer.render(SingleEntryContainer.java:207)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.tags.CompositionRenderTag.doStartTag(CompositionRenderTag.java:318)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at org.apache.jsp._LayeredContainer._jspService(LayeredContainer.jsp :176)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:364)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:700)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:798)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1025)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.skins.Default.render(Default.java:70)
    [4/20/07 9:26:13:640 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:75)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.composition.elements.Component.render(Component.java:906)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.composition.elements.SingleEntryContainer.render(SingleEntryContainer.java:207)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.tags.CompositionRenderTag.doStartTag(CompositionRenderTag.java:318)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at org.apache.jsp._Home._jspService(Home.jsp :2)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:364)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:700)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:798)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1025)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.screens.Default.render(Default.java:73)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.ScreenTemplate.render(ScreenTemplate.java:64)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.tags.ScreenRenderTag.doStartTag(ScreenRenderTag.java:69)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at org.apache.jsp._Default._jspService(Default.jsp :572)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:656 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:364)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:700)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:798)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1025)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.themes.Default.render(Default.java:129)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.templates.ThemeTemplate.render(ThemeTemplate.java:71)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:817)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.wps.engine.Servlet.doGet(Servlet.java:484)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/20/07 9:26:13:671 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/20/07 9:26:13:687 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/20/07 9:26:13:687 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [4/20/07 9:26:13:687 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/20/07 9:26:13:687 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/20/07 9:26:13:687 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/20/07 9:26:13:687 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/20/07 9:26:13:687 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
    [4/20/07 9:26:13:687 CST] 7f007f0 SystemErr R at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:186)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1021)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:198)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:214)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java)
    [4/20/07 9:26:13:703 CST] 7f007f0 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)

    Regarding with downloading of file, do i need to use apache's HWPF to generate Word File???

  • Java.lang.IllegalStateException: duplicate Id for a component

    Hi everyone,
    please I'm really having a serious issue on the duplicate id for a component in view.
    I have a page of which I used the <jsp:include> tag to add to some pages of my application.
    The page have the following code snippet in it
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
    <%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
    <f:subview id="footerView">
          <table width="80%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr>
              <td>
                   <h:outputLink id="homeLink" value="#{facesContext.externalContext.requestContextPath}/index.jsf"
                                 rendered="#{facesContext.viewRoot.viewId != '/index.jsp'}">                                                  
                        <h:outputText value="Home |"/>                              
                    </h:outputLink>
              </td>
             </tr>
          </table>
    </f:subview>The problem is that I always get this exception :
        java.lang.IllegalStateException: duplicate Id for a component footerView:homeLink
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:326)
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:348)
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:348)
         org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:236)
            .........This exception always occurs whenever I tried invoking an action or event call in like the ones listed
    below in any of the enclosing page..
    <h:selectOneRadio immediate="true" required="true" id="optionsRadio" value="#{myBean.optionType}" layout="lineDirection"valueChangeListener="#{eventBean.updateOptionTypeEvent}">                                        
         <f:selectItems value="#{listManagerBean.staticListDataMap['OPTION_TYPE']}"/>
         <a4j:support ajaxSingle="true" ignoreDupResponses="true" immediate="true" event="onblur"/>                         
    </h:selectOneRadio>
    OR
    <a4j:commandButton type="submit" value="Submit Now!" action="#{bean.someAction}"/>
          <h:commandButton type="submit" value="Click Me"/>Yet there is no other component in view with the said id "footerView:homeLink".
    So I'm really at a loss on what to do.
    Any help will be greatly appreciated.

    Hi, I have the same issue.
    In my case I have a page that includes one page with richfaces components and if another link is clicked, it includes anotherone without richfaces.
    But both included pages contain some identical subpages.
    Everytime I call the page with the richfaces components and then the other one I get
    java.lang.IllegalStateException: duplicate Id for a component webSourceSetupForm:executionTab:executionTable:executionDayList
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:442)
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:464)This worked fine before I added richfaces....
    The id is even different in both cases. in on it is webSourceSetupForm:executionTab:executionTable:executionDayList in the other jdbcSourceSetupForm:executionTab:executionTable:executionDayList
    Did you find a solution to the problem?
    Anyone has any idea?
    Thank you,
    Mathis

  • WLS 8.1 + MyFaces 1.1 = java.lang.IllegalStateException ?

    We are seeing an Exception from time to time on WLS 8.1 in a JSF application that looks like this:
    <Aug 1, 2008 8:02:36 AM CDT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=1781688286,name=as_oo_webapp,context-path=/as_oo_webapp)] Root cause of ServletException.
    java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.
    A typical config looks like this;
    <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java(Compiled Code))
    We are using MyFaces 1.1 for JSF. We think this is a known issue with MyFaces 1.1 and WLS, but we are not sure - and we are not sure if there is any solution.
    Any advice would be appreciated!!
    thanks

    Hi,
    we found the problem. One missing entry in one META-INF. We don´t know, why this
    was no problem with WLS 6.1 / 7.0.
    Greetings
    "Thilo Fischer" <[email protected]> wrote:
    >
    Hi there,
    we are moving from WLS 6.1 / 7.0 to WLS 8.1 and we have a BIG problem:
    We get
    everywhere java.lang.NoClassDefFoundErrors on the server.
    Our Project consists of more than 20 subprojects (1 EJB, 3 WEB, the rest
    utility-projects)
    plus some libraries (struts etc.), which are all bundeled into our EAR.
    In our
    EAR the projects make references to all needed projects/libraries via
    META-INF.
    This workls flawless on WLS 6.1 / WLS 7.0 but crashes under 8.1.
    Must we declare these references in another way, not via META-INF?
    Any suggestions ?
    Kind regards
    Thilo Fischer

  • Java.lang.IllegalStateException:Can't Obtain format

    Hi,
    I am trying to run an image manipulation program on a Tomcat server. When the program deals with PNG images it is fine but everytime it trying to do anything with JPEG2000 images it throws the java.lang.IllegalStateException:Can't Obtain format error. I have placed all the relevent jars in the shared/lib folder of my Tomcat installation and so it shouldn't have any problem finding the format but it is. Can anyone help?

    I wrote the program myself using javax.imageio.* and javax.media.jai.* libraries. It's just a program that converts from TIFF to JPEG2000. It works well when I run it locally but as soon as I deploy it on Tomcat it throws the error.
    <code>
    import java.awt.image.renderable.ParameterBlock;
    import java.io.File;
    import java.io.RandomAccessFile;
    import java.util.Iterator;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageWriter;
    import javax.imageio.stream.ImageOutputStream;
    import javax.media.jai.JAI;
    import javax.media.jai.RenderedOp;
    import com.sun.media.imageio.plugins.jpeg2000.J2KImageWriteParam;
    import com.sun.media.jai.codec.FileSeekableStream;
    import com.sun.media.jai.codec.ImageCodec;
    import com.sun.media.jai.codec.ImageEncoder;
    import com.sun.media.jai.codec.PNGEncodeParam;
    import com.sun.media.jai.codec.SeekableOutputStream;
    import com.sun.media.jai.codec.TIFFDecodeParam;
    public class ImageConverter {
         public ImageConverter(){
         public File TIFFtoJPEG2000(File original){
              File toReturn = new File ("Tmp.jp2");
              toReturn.deleteOnExit();
              try{
                   FileSeekableStream stream = new FileSeekableStream(original);
                   TIFFDecodeParam decodeParam = new TIFFDecodeParam();
                   decodeParam.setDecodePaletteAsShorts(true);
                   ParameterBlock params = new ParameterBlock();
                   params.add(stream);
                   RenderedOp image1 = JAI.create("tiff", params);
                   ImageOutputStream ios = ImageIO.createImageOutputStream(toReturn);
                   J2KImageWriteParam encodeParam = new J2KImageWriteParam();
                   encodeParam.setFilter(J2KImageWriteParam.FILTER_53);
                   Iterator writers = ImageIO.getImageWritersByFormatName("jpeg2000");
                   ImageWriter writer = (ImageWriter)writers.next();
                   writer.setOutput(ios);
                   writer.write(image1);
              } catch (Exception e){
                   e.printStackTrace();
              return toReturn;
         public File TIFFtoPNG(File original){
              File toReturn = new File("Tmp.png");
              toReturn.deleteOnExit();
              try{
                   FileSeekableStream stream = new FileSeekableStream(original);
                   TIFFDecodeParam decodeParam = new TIFFDecodeParam();
                   decodeParam.setDecodePaletteAsShorts(true);
                   ParameterBlock params = new ParameterBlock();
                   params.add(stream);
                   RenderedOp image1 = JAI.create("tiff", params);
                   SeekableOutputStream out = new SeekableOutputStream(new RandomAccessFile(toReturn, "rw"));
                   PNGEncodeParam encodeParam = PNGEncodeParam.getDefaultEncodeParam(image1);
                   ImageEncoder encoder = ImageCodec.createImageEncoder("PNG", out, encodeParam);
                   encoder.encode(image1);
              } catch (Exception e){
                   e.printStackTrace();
              return toReturn;
    </code>

  • Java.lang.IllegalStateException

    I am working with typical Model1 JSPs for web interface,Where I am facing 'java.lang.IllegalStateException' problem,In which scenarios it could occur.
    Thanks
    Ashok Kumar

    HI Ashok,
    Can u send some sample of your code or exception so we could have a look.
    thanks,
    Sachin Dere

  • Java.lang.IllegalStateException when trying to get a entity bean

    hi all,
    I wrote a simple container managed entity bean and deployed it. When i call the find all method of the entity bean following is the log trace of my exception
    com.sun.enterprise.resource.JdbcXAConnection$JdbcConnection@13974ba TX optimistic: false referenceCount =1 for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINER ( 1496): SQL statement<select t0."USER_ID", t0."LOGIN_NAME", t0."PASSWORD", t0."FIRST_NAME", t0."LAST_NAME", t0."EMAIL", t0."ADDRESS1", t0."ADDRESS2", t0."POSTALCODE", t0."CITY", t0."COUNTRY", t0."STATE", t0."ACCOUNT_STATUS", t0."CREATE_DATE", t0."MODIFY_DATE", t0."CREATED_BY", t0."MODIFIED_BY" from "EXPENSE_USER" t0> with no input values
    [22/Jul/2003:23:35:54] FINE ( 1496): <-> DBVendorType.getSpecialDBOperation():com.sun.jdo.spi.persistence.support.sqlstore.database.oracle.OracleSpecialDBOperation@1a92d3a.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking key field iD as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore.acquire() for PersistenceManagerImpl.cacheLock.
    [22/Jul/2003:23:35:54] FINER ( 1496): SQLStoreManager.getPersistenceConfig(), classType = com.expense.ejb.entity.container.UserBean1689033004_JDOState.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore constructor() for SQLStateManager.
    [22/Jul/2003:23:35:54] FINE ( 1496): --> SqlStateManager.applyUpdates(), field = iD.
    [22/Jul/2003:23:35:54] FINEST ( 1496): iD = 1.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore.release() for PersistenceManagerImpl.cacheLock.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore.acquire() for SQLStateManager.
    [22/Jul/2003:23:35:54] FINEST ( 1496): loginName = root.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field loginName as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): password = root.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field password as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): firstName = super user.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field firstName as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): lastName = null.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field lastName as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): email = root@expen.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field email as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): address1 = xxx .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field address1 as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): address2 = xxx .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field address2 as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): postalCode = 12345 .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field postalCode as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): city = xxxx .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field city as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): country = usa .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field country as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): state = ca .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field state as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): accountStatus = null.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field accountStatus as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): convertValue: 7/22/03 11:07 PM From: java.sql.Timestamp To: class java.lang.Long.
    [22/Jul/2003:23:35:54] FINEST ( 1496): createDate = 7/22/03 11:07 PM.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore.release() for SQLStateManager.
    [22/Jul/2003:23:35:54] FINEST ( 1496): --- TransactionImpl.releaseConnection(): TX optimistic: false Inside Commit: false referenceCount: 0 for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): --- TransactionImpl.closeConnection() com.sun.enterprise.resource.JdbcXAConnection$JdbcConnection@13974ba for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): ---PersistenceManagerImpl.popCurrentWrapper() > current: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper@2606b8 prev: null.
    [22/Jul/2003:23:35:54] FINE ( 1496): Exception in forceDestroyBean()
    java.lang.IllegalStateException: Primary key not available
         at com.sun.ejb.containers.EntityContextImpl.getPrimaryKey(EntityContextImpl.java:157)
         at com.sun.ejb.containers.EntityContainer.forceDestroyBean(EntityContainer.java:1252)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1792)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1608)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:529)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:133)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread.currentThread()Tran[  Transaction:
    status = STATUS_ACTIVE
    Transaction Object = Transaction@17774593
    threads = 1
    ].afterCompletion: status = STATUS_ACTIVE, sync = null, STATUS_ROLLEDBACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread[service-j2ee,5,main] Tran[   Transaction:
    status = STATUS_ACTIVE
    Transaction Object = Transaction@17774593
    threads = 1
    ].setStatus: STATUS_ACTIVE => STATUS_ROLLING_BACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread[service-j2ee,5,main] Tran[   Transaction:
    status = STATUS_ROLLING_BACK
    Transaction Object = Transaction@17774593
    threads = 1
    ].internalRollback:status = STATUS_ROLLING_BACK ,txType: CMT for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread[service-j2ee,5,main] Tran[   Transaction:
    status = STATUS_ROLLING_BACK
    Transaction Object = Transaction@17774593
    threads = 1
    ].setStatus: STATUS_ROLLING_BACK => STATUS_ROLLEDBACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): ---PersistenceManagerImpl.afterCompletion() process: true.
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread[service-j2ee,5,main] Tran[   Transaction:
    status = STATUS_ROLLEDBACK
    Transaction Object = Transaction@17774593
    threads = 1
    ].forget:status = STATUS_ROLLEDBACK ,txType: CMT for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): ---SQLPersistenceManagerFactory.releasePersistenceManager() PM:com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c for JTA Tx: com.sun.ejb.containers.PMTransactionImpl@2.
    [22/Jul/2003:23:35:54] FINEST ( 1496): ---SQLPersistenceManagerFactory.releasePersistenceManager() PM:com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c for JTA Tx: null.
    [22/Jul/2003:23:35:54] FINEST ( 1496): <--SQLPersistenceManagerFactory.returnToPool().
    [22/Jul/2003:23:35:54] FINE ( 1496): EJB5018: Some unmapped exception occurred : [{0}]
    javax.ejb.EJBException: nested exception is: java.lang.ClassCastException
    java.lang.ClassCastException
         at com.expense.ejb.entity.container.UserBean1689033004_JDOState.jdoSetField(UserBean1689033004_JDOState.java:969)
         at com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc.setValue(FieldDesc.java:337)
         at com.sun.jdo.spi.persistence.support.sqlstore.ResultDesc.setFields(ResultDesc.java:749)
         at com.sun.jdo.spi.persistence.support.sqlstore.ResultDesc.getResult(ResultDesc.java:635)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.executeQuery(SQLStoreManager.java:648)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.retrieve(SQLStoreManager.java:500)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.retrieve(PersistenceManagerImpl.java:989)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(QueryImpl.java:634)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.execute(QueryImpl.java:455)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl.ejbFindAll(UserBean1689033004_ConcreteImpl.java:1249)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:128)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    javax.ejb.EJBException: nested exception is: java.lang.ClassCastException
         at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:1893)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1796)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1608)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:529)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:133)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.acces
    [22/Jul/2003:23:35:54] FINE ( 1496): EJB5019: Some application or system exception occurred : [UserBean]
    [22/Jul/2003:23:35:54] FINE ( 1496):
    [22/Jul/2003:23:35:55] SEVERE ( 1496): StandardWrapperValve[usertest]: Servlet.service() for servlet usertest threw exception
    javax.ejb.EJBException: nested exception is: java.lang.ClassCastException
    java.lang.ClassCastException
         at com.expense.ejb.entity.container.UserBean1689033004_JDOState.jdoSetField(UserBean1689033004_JDOState.java:969)
         at com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc.setValue(FieldDesc.java:337)
         at com.sun.jdo.spi.persistence.support.sqlstore.ResultDesc.setFields(ResultDesc.java:749)
         at com.sun.jdo.spi.persistence.support.sqlstore.ResultDesc.getResult(ResultDesc.java:635)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.executeQuery(SQLStoreManager.java:648)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.retrieve(SQLStoreManager.java:500)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.retrieve(PersistenceManagerImpl.java:989)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(QueryImpl.java:634)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.execute(QueryImpl.java:455)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl.ejbFindAll(UserBean1689033004_ConcreteImpl.java:1249)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:128)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    javax.ejb.EJBException: nested exception is: java.lang.ClassCastException
         at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:1893)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1796)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1608)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:529)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:133)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.c
    [22/Jul/2003:23:36:15] FINE ( 1496): SingleSignOn[server1]: SSO expiration started. Current entries: 0
    [22/Jul/2003:23:36:15] FINE ( 1496): SingleSignOn[server1]: SSO cache will expire 0 entries.
    [22/Jul/2003:23:37:15] FINE ( 1496): SingleSignOn[server1]: SSO expiration started. Current entries: 0
    [22/Jul/2003:23:37:15] FINE ( 1496): SingleSignOn[server1]: SSO cache will expire 0 entries.
    following is the ejb-jar.xml part of this entity bean
    <entity>
    <ejb-name>UserBean</ejb-name>
    <local-home>com.expense.ejb.entity.container.LocalUserHome</local-home>
    <local>com.expense.ejb.entity.container.LocalUser</local>
    <ejb-class>com.expense.ejb.entity.container.UserBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>userSchema</abstract-schema-name>
    <cmp-field>
    <field-name>loginName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>password</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>iD</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>firstName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>email</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>lastName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>address1</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>address2</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>postalCode</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>city</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>state</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>country</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>accountStatus</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>createdBy</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>modifiedBy</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>modifyDate</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>createDate</field-name>
    </cmp-field>
    <primkey-field>iD</primkey-field>
    <query>
    <query-method>
    <method-name>findByLoginName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql> select object(l) from userSchema l WHERE l.loginName = ?1</ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findByCreateDate</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </query-method>
    <ejb-ql>select object(l) from userSchema l where l.createDate = ?1 </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findByModifyDate</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </query-method>
    <ejb-ql>select object(l) from userSchema as l where l.modifyDate between ?1 and ?2</ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params>
    </method-params>
    </query-method>
    <ejb-ql>SELECT OBJECT(L) FROM userSchema L </ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>UserBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    can anyone suggest me on howto solve this problem

    I suspect that there is a type mismatch somewhere in the CMP fields (there is a ClassCastException in the trace).
    Please check the generated code (UserBean1689033004_JDOState.java line 969) that can be found under
    <appserver-install>/domains/domain1/server1/generated/ejb/j2ee-apps/<app-name>/<packages...>/
    Thank you,
    -marina

  • Java.lang.IllegalStateException: Can't dispose InputContext while it's acti

    I have a panoramic image display applet. Two problems exist with Sun Java that do not exist with Microsoft VM:
    1. PC's with ATI video cards, using either Internet Explorer or Netscape, running Sun Java, the images come up scrambled looking, like a TV with a bad case of V-sync.
    2. Using Internet Explorer or Netscape + Sun Java, the panoramic image loads, but if you scroll the image with your mouse and then change to another page, you get the following:
    java.lang.IllegalStateException: Can't dispose InputContext while it's active
    at sun.awt.im.InputContext.dispose(Unknown Source)
    at java.awt.Window$1DisposeAction.run(Unknown Source)
    at java.awt.Window.dispose(Unknown Source)
    at sun.plugin.viewer.frame.IExplorerEmbeddedFrame.windowClosing(Unknown Source)
    at java.awt.Window.processWindowEvent(Unknown Source)
    at java.awt.Window.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    I emailed Sun about the first issue, but they told me that their Java is newer and better than Microsoft's. That's all they said. How arrogant and stupid is that? So for now I tell my customers to get rid of the Sun Java installation and install Microsoft's VM, which you can still find with a Google search.
    Can anyone here direct me to where I might find solutions to this probem that exists with Sun's Java?
    Thanks!

    1. dispose the inputcontext by yourself
    2. recreate the frames used by the applet, while changing the page
    3. Sun's answer has nothing to do with stupidity or arrogance. It is a proven fact, that suns vm is newer and better, cos M$'s last vm is on the level of JDK1.1 or lower (and that's about 5 or 6 years in the past and in IT this is very, very, very long away, as you should know)
    4. Do you really want to force your customers to use a vm, which is not supporting modern applets, which is not allowed to do it by court order? And do you really want to force them to reinstall sun's vm, when they want to visit pages with other applet's, which are supported by suns vm?
    At last: Only since you are incapable to code for modern vms you shouldn't force your customers to use old and obsolete techniques. They will not praise you for doing so. May they will get away. So just put some time on the problem and solve before nagging on sun.
    regards

Maybe you are looking for

  • How can you put flash player in kindle fire hd?

    how can you put flash player in kindle fire hd?

  • Increase width of bars in svg chart

    I've created an svg bar chart which shows the number of actions grouped by department and status. Each department has about 4 bars. This works reasonably well but all the bars appear to the left hand side of the x-axis and are quite small in width. T

  • Thumbnails updated from Aperture to iWeb

    Many times after updating a photo that then appears in Aperture, the photo does not appear in iWeb. Even after forcing Aperture to generate the thumbnail, it seems like I must restart iWeb for the updated image to appear in iWeb. Also, I cannot figur

  • Constant failed LDAP connections in log

    So a routine review of my log files (in pursuit of another problem) revealed yesterday that I'm getting this pair of messages about every 2 minutes: Dec 6 11:18:15 faulkner DirectoryService[763]: InitLDAPConnection or ldap_init failure: Logging Faile

  • Battling JComboBox behavior of removing items

    we are working on a document browser GUI and encountered some weird behavioral issue with JComboBox/DefaultComboBoxModel. The current workaround is ugly and we are wondering if there is somehow different way to get it to work. Our application uses an