Exception when converting to XML persistace bean

Hello

AM getting exception while executing the following code, please suggest why I get this exception.
import java.beans.XMLEncoder;
import java.io.FileOutputStream;
import java.io.BufferedOutputStream; 

public class Main6 
{
     public static void main(String[] args) throws Exception
     { try
     
          
          {
     
      Item bean = new Item();
       bean.setId(new Long(1));
       bean.setItemName("a");
       bean.setItemColor("Red");
       bean.setItemQuantities(new Integer(100));
       XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(new FileOutputStream("Bean1.xml")));
       encoder.writeObject(bean);
       encoder.close();
          }
          catch (Exception e)
     {
           System.out.println("Exception " + e);
     }
}
}
 class Item
{
     private Long id;
     private String itemName;
     private String itemColor;
     private Integer itemQuantities;

     public Long getId() {
     return id;
     }
     public void setId(Long id)
     {
     this.id = id;
     }

     public String getItemName() {
       return itemName;
     }
     public void setItemName(String itemName) {
         this.itemName = itemName;
     }

     public String getItemColor () 
     {
     return itemColor;
     }
     public void setItemColor(String itemColor)
     {
        this.itemColor = itemColor;
     }

     public Integer getItemQuantities() 
     {
          return itemQuantities;
     
     }
     public void setItemQuantities(Integer itemQuantities) {
       this.itemQuantities = itemQuantities;
      
     }
}
Result:
D:\Documents and Settings\ba80123524\Desktop>java Main6
java.lang.IllegalAccessException: Class sun.reflect.misc.Trampoline can not access a member of class Item with mo
difiers ""
Continuing ...
java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(Item);
Continuing ...
Thanks in advance

The class is not public.

Tags: Java

Similar Questions

  • reception of exception when I add <>servlet-descriptor in weblogic.xml

    When I add a session in weblogic.xml descriptor tag I get the following exception when I try to deploy it.

    My weblogic.xml file:

    <? XML version = "1.0" encoding = "UTF - 8"? >
    < weblogic-web-app xmlns = "http://www.bea.com/ns/weblogic/90."
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    < security-role-assignment >
    Admin > role name < < / role name >
    < externally defined / >
    < / security role assignment >
    <>context-root / appA < / context root >

    * < descriptor of a session - > *.
    * < session-param > *.
    * < param-name > TimeoutSecs < / param-name > *.
    * < param-value > 3600 < / param-value > *.
    * < / session-param > *.
    * < / session descriptor > *.

    < / weblogic-web-app >

    Exceptions that occur:

    Cannot access the selected application.
    -Icon of Exception error message in the progress of AppMerge flow
    -Icon of Exception error message in the progress of AppMerge flow
    Message - problem error VALIDATION PROBLEMS FOUND icon: cvc-complex - type. 2.4: expected elements ' timeout-dry @http://xmlns.oracle.com/weblogic/weblogic-web-app invalidation-interval-dry @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app debug-enabled-length of id @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app tracking-enabled size cache @http://xmlns.oracle.com/weblogic/weblogic-web-app max-in-memory-sessions @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app cookies @http://xmlns.oracle.com/weblogic/weblogic-web-app cookie-path the @http://xmlns.oracle.com/weblogic/ cookie @http://xmlns.oracle.com/weblogic/weblogic-web-app-domaine cookie-name WebLogic-web-app cookie-comment @http://xmlns.oracle.com/weblogic/weblogic-web-app cookie secure @http://xmlns.oracle.com/weblogic/weblogic-web-app cookie-max-age-dry @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app cookie-http-only persistent-store-type @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent-store-cookie-name @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent-store-dir @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent-store-pool @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent data-source-jndi-name-@http://xmlns.oracle.com/weblogic/weblogic-web-app persistent session flush interval @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent session flush threshold @http://xmlns.oracle.com/ WebLogic / WebLogic-web-app persistent-async-queue - timeout @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent-store-table @http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app jdbc-column-name-max-inactive-interval@ jdbc-connection-timeout-dry @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app url rewriting compatible http-proxy-cache-of-cookies @http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app encode-session-id-in-query-params@ surveillance-attribute-name @http://xmlns.oracle.com/weblogic/weblogic-web-app-sharing @http://xmlns.oracle.com/weblogic/weblogic-web-app' instead of ' session-param @http://xmlns.oracle.com/weblogic/weblogic-web-app» here in the @http://xmlns.oracle.com/weblogic/weblogic-web-app session descriptor element: < null >

    I think I understand:

    This error is due to the session-descriptor tag... I don't know why he is not accepted instead that it is completely correct.

    Any suggestions will be much appreciated.

    Published by: krathod11 on March 13, 2010 03:41

    Published by: krathod11 on March 13, 2010 03:42

    Hello

    Change the tag as follows


    3601
    2
    true


    -----------------------

    tag, we used in WLS8.1 weblogic.xml DTD... The schema that you use to weblogic.xml... is new

    .
    .
    .
    Thank you
    Jay SenSharma
    http://jaysensharma.WordPress.com (WebLogic wonders are here)

  • We get NULL Pointer Exception When you try to run the request of QUOTE-JDEV negotiations.

    Hi guys,.

    I'm struggling with a NULL pointer Exception when configuring request for QUOTE-JDEV negotiations. I m listing all the steps that I follow below. Please have a look in this area and gimme you suggestion to solve.

    1. I have coppied oracle.apps.ak, oracle.apps.pon and oracle.apps.fnd.server of the JAVA_TOP in the folder of my projects and my JDEV myClasses.

    2. Subsequently, I exported my ponDefineHdrPG of the page. XML using the below command

    Export/oracle/apps/pon/negotiation/creation/webui/ponDefineHdrPG username-apps password apps rootdir - D:\JDEV\jdevhome\jdev\myprojects\ - dbconnection ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=lclxebsddb2.lc) (PORT = 1524)) (CONNECT_DATA = (SID = EBSDEV))) ".

    3. I created the project and workspace OFA

    4. then I created my DB connection and used the DBC file for runtime option. And I tried to restore my project. Which was rebuilt successfully.

    6 then I ran my Page ponDefineHdrPG.xml my JDEV.

    7. I got the below error


    Details of the exception.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
    at oracle.apps.fnd.framework.OAException.wrapperException (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    in OA. jspService(_OA.java:71)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    # # 0 in detail
    java.lang.NullPointerException
    at oracle.apps.pon.negotiation.creation.server.NegotiationCreationAMImpl.getHeaderEO(NegotiationCreationAMImpl.java:3495)
    at oracle.apps.pon.negotiation.creation.server.NegotiationCreationAMImpl.isTemplate(NegotiationCreationAMImpl.java:3346)
    at oracle.apps.pon.negotiation.creation.webui.NegCreationHeaderPageCO.processRequest(NegCreationHeaderPageCO.java:929)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    in OA. jspService(_OA.java:71)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    java.lang.NullPointerException
    at oracle.apps.pon.negotiation.creation.server.NegotiationCreationAMImpl.getHeaderEO(NegotiationCreationAMImpl.java:3495)
    at oracle.apps.pon.negotiation.creation.server.NegotiationCreationAMImpl.isTemplate(NegotiationCreationAMImpl.java:3346)
    at oracle.apps.pon.negotiation.creation.webui.NegCreationHeaderPageCO.processRequest(NegCreationHeaderPageCO.java:929)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)
    in OA. jspService(_OA.java:71)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run (Thread.java:595



    I did not something outside the given procedure. I can tell everything is fresh on my JDEV as in $JAVA_TOP. But I'm, I was wondering why this page points to NULL Pointer Exception to NegotiationCreationAMImpl on JDEV however its fine on the side of the demand for labour. Its very strange. At the same time I also put my profile option "Sign-On: Notification ' on 'no '. I removed '-' DBC files too. But nothing could serve my purpose. Can you please help to solve this problem?

    Hoping for your reply.

    Thank you
    Sunil

    I'm assigned to a task where I need to change the query LOV to the field of legal entity on the request of QUOTE-negotiations page.

    There is no need to run the page locally. As there could be other files also that your page to be referred by any other top.

    What you need to do, is extend the controller or the VO and validate query LOV.

    Thank you
    AJ

  • Exception when accessing the content a sample page

    Hello

    Please help me in the deployment and access an application in WebLogic Server 10.3 (standalone).

    The steps I have taken in the deployment:

    An example of application Triniad, I had downloaded of the site Web of MyFaces Trinidad. for example: Blank.War

    Deployment of the file. War on WebLogic Server 10.3 via the WebLogic Server Console of Administration. But, when I am tring to access the page - http://140.84.129.205:7001/blank/faces/page1.jspx
    He started me special suite.

    I added the contents of the file file and web.xml Exception and Faces - config.xml as file... You can you please point out what I jumped. Thanks in advance.

    Error 500 - Internal server error

    java.lang.UnsupportedOperationException
    + javax.faces.context.ExternalContext.setRequest(ExternalContext.java:368) +.
    + org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._isSetRequestBugPresent(GlobalConfiguratorImpl.java:543) +.
    + org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:325) +.
    + org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$ CacheRenderKit. (FacesContextFactoryImpl.java:86) +.
    + org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64) +.
    + javax.faces.webapp.FacesServlet.service(FacesServlet.java:260) +.
    + weblogic.servlet.internal.StubSecurityHelper$ (StubSecurityHelper.java:227) ServletServiceAction.run +.
    + weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) +.
    + weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) +.
    + weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) +.
    + weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) +.
    + org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) +.
    + org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) +.
    + org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) +.
    + org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) +.
    + weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) +.
    + weblogic.servlet.internal.WebAppServletContext$ (WebAppServletContext.java:3496) ServletInvocationAction.run +.
    + weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) +.
    + weblogic.security.service.SecurityManager.runAs (Unknown Source) +.
    + weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) +.
    + weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) +.
    + weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) +.
    + weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) +.
    + weblogic.work.ExecuteThread.run(ExecuteThread.java:173) +.



    Content of the file faces - config.xml is:



    <? XML version = "1.0"? >
    <!--
    Licensed to the Apache Software Foundation (ASF), under a
    or several contributor license agreements. See the NOTICE
    distributed with this work for more information
    with regard to copyright. The ASF licenses this file
    you under the Apache License, Version 2.0 (the
    "License"); You may not use this file except in compliance
    with the license. You can get a copy of the license at

    www.Apache.org/licenses/license-2.0

    Unless required by law applicable or agreed to in writing,
    software distributed under the license is distributed on an
    "LIKE WHAT" BASIS, WITHOUT WARRANTY OR CONDITION OF ANY
    KIND, express or implied. See the license for the
    specific language governing permissions and limitations
    under the terms of the license.

    ->
    <! DOCTYPE PUBLIC faces-config
    "- //Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0 / / IN".
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >
    <>faces-config

    < application >
    <! - use the Trinity RenderKit -
    < default rendering-kit-id >
    org. Apache.MyFaces.Trinidad.Core
    < / default rendering-kit-id >
    < / application >

    <!-global preferences oppose that proxies to others->
    < managed-bean >
    helloWorldBacking < managed-bean-name > < / managed-bean-name >
    < managed-bean-class >
    org.apache.myfaces.trinidad.blank.HelloWorldBacking
    < / managed-bean-class >
    < managed-bean-scope >
    request
    < / managed-bean-scope >
    < / managed-bean >

    <! - rules of navigation for index.jspx - >
    < navigation-rule >
    Page1.jspx < of view - id > < /-view-id >
    <>navigation-case
    success of < from outcome > < / de-results >
    Page2.jspx < to view - id > < / to-view-id >
    < / navigation-case >
    < / navigation-rule >

    <! - rules of navigation for page2.jspx - >
    < navigation-rule >
    Page2.jspx < of view - id > < /-view-id >
    <>navigation-case
    < from outcome > back < / de-results >
    Page1.jspx < to view - id > < / to-view-id >
    < / navigation-case >
    < / navigation-rule >

    < / faces-config >


    Content of the Web.XML file is:*.


    <? XML version = "1.0" encoding = "ISO-8859-1'? >
    <!--
    Licensed to the Apache Software Foundation (ASF), under a
    or several contributor license agreements. See the NOTICE
    distributed with this work for more information
    with regard to copyright. The ASF licenses this file
    you under the Apache License, Version 2.0 (the
    "License"); You may not use this file except in compliance
    with the license. You can get a copy of the license at

    www.Apache.org/licenses/license-2.0

    Unless required by law applicable or agreed to in writing,
    software distributed under the license is distributed on an
    "LIKE WHAT" BASIS, WITHOUT WARRANTY OR CONDITION OF ANY
    KIND, express or implied. See the license for the
    specific language governing permissions and limitations
    under the terms of the license.

    ->
    < web - app xmlns = "http://java.sun.com/xml/ns/javaee."
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd".
    version "2.5" = >
    <!-use the State economy on the client side. In Trinidad, it's a
    optimized, mechanism based on chips which is almost always a
    better choice than the economy of State standard JSF server side. ->
    < context-param >
    javax.faces.STATE_SAVING_METHOD < param-name > < / param-name >
    customer of < param-value > < / param-value >
    <!-param-value > server < / param-value->
    < / context-param >

    <!-Trinidad by default uses an optimized economy State on the client side
    mechanism. To disable that, uncomment the following->
    <!-context-param >
    org.apache.myfaces.trinidad.CLIENT_STATE_METHOD < param-name > < / param-name >
    < param-value > all < / param-value >
    < / context-param->

    <!-Trinidad also supports a strategy optimized for caching of some
    View State to the application level, which improves
    scalability. However, it makes it more difficult to develop (updates to)
    pages will not be noticed until the server restarts) and in
    a few rare cases, cannot be used for certain pages (see Trinidad
    documentation for more information) - >
    < context-param >
    org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE < param-name > < / param-name >
    < param-value > false < / param-value >
    < / context-param >

    <!-if this setting is enabled, Trinidad will be automatically
    check the date of the change of your JSP pages and throw saved
    State when they change. This makes development easier,
    but fresh General adds that should be avoided when your application
    is deployed->
    < context-param >
    org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION < param-name > < / param-name >
    < param-value > true < / param-value >
    < / context-param >

    <!-persistence of change allows a session scope. By default,.
    Persistence of change is cleared completely. The ChangeManager is
    an API that can persist changes to component (like,
    is a showDetail or tree expanded or collapsed). For the provision
    a custom persistence of change implementation inherit from the
    The API of Trinidad ChangeManager class. As the value you
    to use the fullqualified class name. ->
    < context-param >
    org.apache.myfaces.trinidad.CHANGE_PERSISTENCE < param-name > < / param-name >
    session of < param-value > < / param-value >
    < / context-param >

    < filter >
    < name of filter > Trinidad < / filter-name >
    > class filter < org.apache.myfaces.trinidad.webapp.TrinidadFilter < / class filter >
    < / filter >

    < filter mapping >
    < name of filter > Trinidad < / filter-name >
    faces of < servlet name > - < / servlet-name >
    < / filter-mapping >

    <! - faces Servlet - >
    < servlet >
    faces of < servlet name > - < / servlet-name >
    > the servlet class < javax.faces.webapp.FacesServlet < / servlet-class >
    < / servlet >

    <! - resource loader servlet - >
    < servlet >
    resources < name of the servlet > - < / servlet-name >
    > the servlet class < org.apache.myfaces.trinidad.webapp.ResourceServlet < / servlet-class >
    < / servlet >

    <! - faces Servlet mappings - >
    < servlet-mapping >
    faces of < servlet name > - < / servlet-name >
    < url-pattern > /visages / * < / url-pattern >
    < / servlet-mapping >

    < servlet-mapping >
    resources < name of the servlet > - < / servlet-name >
    < url-pattern > /adf / * < / url-pattern >
    < / servlet-mapping >


    <! - welcome files - >
    < Welcome-file-list >
    Welcome < file > index.html < / welcome-file >
    < / Welcome-file-list >

    < / web - app >



    Thank you
    -Afif

    What version of Trinidad you trying to use? It is possible that requires a newer version of JEE is provided by WebLogic 10.3.

  • Uncaught exception when you are not debugging

    I have an application that analyzes XML and uses threads to display a progress bar while it analyzes the data. It works without a hitch, when the unit runs in debug mode on a simulator, but when I select run as... and select a simulator during the analysis, the application closes with error

    "Eception Exception: Application BBRitis (162) does not; process is completed.

    There are no exceptions when debugging, and without breaks. How am I to determine and correct the cause of the error? Anyone know what this could be?

    Thank you!

    OK the theory number two, this one seems more likely given the stack trace.

    You update the screen using invokeLater?  How often do you do that.

    If you do this frequently, then treatment to generate updates may in fact take less time than processing for updating the screen.  In this case, you are invading the event queue.  This will be acknowledged by the Dispatcher that assumes that you have blocked the thread of events.  Where, as in fact the problem is that the thread of events cannot process quickly enough.

    Can you make sure there is at least 0.1 seconds between your ' of invokeLater?  You can also use "invokeAndWait", or synchronize the lock of the event.  However I do not think that you need to update the screen as frequently, so I woould go with some sort of delay between updates, then use the lock of the event because it is the most effective (and does not imply the queue of flooding).

    This seems reasonable?

  • Page size when converting TIFF to PDF

    In my work I download documents to a Web site where you can only display and a save as TIFF images. Documents are scanned images of typewritten instruments filed with the County Clerk. When saving as TIFF, the documents are of varying sizes. After I have save as TIFF files, I convert to PDF using select (often multiple files at once), then right-click "convert to Adobe PDF. Files to convert to PDF without problem, except that they are of several different page sizes, depending on the size of the TIFF file.

    I use Adobe Acrobat X Standard (Windows 7 on a PC). Is there a way to configure so when convert TIFF to pdf, it will come out as a standard page size, such as legal 8.5x14? I know I can convert and then printing using the Adobe PDF printer, but that just adds another step.

    The answer would be different if I was using Acrobat X Pro or Acrobat XI? Thank you.

    TIFF files with a size of page and the conversion to PDF, TIFF page size is used.

    If you need to fix it in TIFF before the conversion or the PDF file after conversion. I think TIFF will be probably somewhere better, easier and less expensive to fix.

  • Error1009 when convert XMLList to XMLListCollection

    I want to convert an XML to collection ArrayCollection. I convert the XML XMLList, then XMLList to XMLListCollection, then XMLListCollection to the table and finally Array for collection ArrayCollection. Please see my code below:

    var nodexml:XML;

    var searchData:XMLList;

    var countriesXML: XMLListCollection;

    var countriesArray:Array;

    var sourceModel:ArrayCollection;

    nodexml = new XML (xmlLoader.data);

    searchData = new XMLList (nodexml.elements ("node"));

    countriesXML = new XMLListCollection (searchData);

    countriesArray = new Array (countriesXML.toArray ());

    sourceModel = new ArrayCollection (countriesArray);

    my sample XML is as below:

    < root >

    < node > Afghanistan < / node >

    < node > Algeria < / node >

    < node > Bahamas < / node >

    < node > Cambodia < / node >

    Democratic <>node < / node >

    < / root >

    Error 1009 in this statement: countriesXML = new XMLListCollection (searchData);

    I tried several times and I don't know how to solve this problem. I insert the watch expressions and found that no data is read in this statement. the two previous statements run correctly.

    Could someone help me with this? Thanks in advance to 1 million!

    When speaking of errors, it is preferable to display the entire text of the error, including the stack traces.  This information is often useful.

    My guess is that the point is not a string, so you cannot use (point as String) and must use item.toString () instead.

  • NULL point Exception when obtaining the user name

    Hello

    I'm getting NULL pointer exception when trying to get the user name when the page load.

    My code is as follows:

    I had imported the oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean package

    In the controller under the proceesrequest, I wrote the following code

    String uname = pageContext.getUsername ();
    OAMessageStyledTextBean UN = (OAMessageStyledTextBean) webbean.findChildRecursive ("name");
    one. SetValue (pagecontext, uname);

    After doing that when I run the page I'm getting NULL pointer exception.

    Can someone correct me where I had gone wrong.

    Thank you.

    The error is on line 39 of your controller. First thing you should do to avoid this must include an audit non-zero.
    String uname = pageContext.getUsername ();
    OAMessageStyledTextBean UN = (OAMessageStyledTextBean) webbean.findChildRecursive ("name");
    if(un!=null)
    {
    one. SetValue (pagecontext, uname);
    }

  • Videos full screen extremely agitated, except when I move my mouse. How to fix?

    Whenever I try to play a video in full screen the video played normally for a few seconds, but then would quickly become very choppy except when moving my mouse... which is weird. The video is fine when it is normal and not full-screen. (Except videos on IGN.com. Normal and fullscreen are like this.) First time I noticed that a few days ago. Also, this isn't just a video type of video player (such as the video player for youtube, Upload2, etc.) It is to each of them.

    It is the first time that this has happened to me and I couldn't find something like this through research.

    Try running Firefox in safe mode.

       * Firefox -> Help -> Restart with add-ons disabled
    

    If it works in safe mode, this means that one of your Extensions of the add-on causing the problem, requiring everything from disabling and then re-enabling them one by one to isolate the problem.

  • rings of iPhone except when the House goes directly to the virtual machine

    My parents (latest OS) iPhone seems sound perfectly, EXCEPT when you get a call from their home number.  When home iphone, iphone phone calls don't ring and goes to voicemail.

    Is there any setting that has selective phone number behaviors that could cause this.

    It is not DoNotDIsturb (tested by calling 2 other phones and works very well)

    It is not the silent switch (it is set correctly and 2 other phones rings)

    Tested turnging disable bluetooth (incase there was something peeling to him) and he does not sound at the line of home ground.

    Thoughts why?

    Settings > phone > blocked.

    See if they accidentally blocked their number at home.

    Otherwise, they should contact their provider (both cellular and land) and report the problem. It is not beyond the realm of possibility that it is a call routing problem in one of the two networks.

  • BlackBerry signing key IO exception when you save the new key to the file

    I have blackberry signing key IO exception when you save the new key file when trying to get my keys. I read the other post - I do not use Windows Vista and JDE component package is installed on my machine. What now?

    It was a windows 7 resolved permission problem

  • Window 7 running slow except when the mouse moves

    I installed Windows 7 on a Dell Optiplex 960, 3 GHz Dual core. It has an ATI Radeon video card and I have installed the latest driver for it.

    Problem: the video is very slow, except when I move the mouse. Also, the clock does not keep time. Windows make it very slowly.

    Have you installed all the drivers from the Dell site? I uninstall the video drivers that you have if you have AMD directly and use the Dell ones.

    http://support.Dell.com/support/downloads/DriversList.aspx?c=us&l=en&s=Gen&ServiceTag=&SystemID=PLX_960&OS=WLH&OSL=en&CATID=&impid=

    You want to install any drivers of Dell, starting with the chipset. Win7 32 and 64-bit are supported. MS - MVP - Elephant Boy computers - don't panic!

  • I can do: sleep when the lid is closed, EXCEPT when an external display is connected?

    Hello

    Please let me know if this is possible. Seems to me like a current need, but I can't find a way to achieve this.

    I wish that the laptop to sleep when I close the lid (battery / plugged - matter), except when I have a connected external display.

    The script is very simple, I prefer to work with an external display, so I don't want or need the lid is open. When I'm on the road, the "sleep when the lid is closed" is a desired behavior.

    Is this possible?

    Thank you

    Roee.

    (1) this function is available in the Apple OS, but not in OS Win.

    (2) but, you can set a custom power plan to do this, so when you connect an external monitor just switch the power around plan. It is the easiest way to get what you want.

  • I have version 9 (I think) running on windows 10. Works fine EXCEPT when I try to apply automatic updates. It checks, downloads, copies the files and when it is almost by it says it has encountered an error and cancels everything. Frustrat

    I have version 9 (I think) running on windows 10. Works fine EXCEPT when I try to apply automatic updates. It checks, downloads, copies the files and when it is almost by it says it has encountered an error and cancels everything. Frustrating!

    Hi rct_nv ,

    Please provide the exact version of the acrobat application (given that no update available for acrobat 9 as its an older version)

    In addition, I wish to inform that Acrobat 9 is not compatible with Win 10 OS. Refer to this article:- Adobe Acrobat required configuration

    Kind regards

    Christian

  • Manage data source except when starting server in weblogic

    Hello

    I have weblogic 10.3.6, and I set datasource and deploy the application, the problem is when the datasource will not connect to the database, for example if the weblogic Server DB will be status "ADMIN" rather that "RUN", how do I manipulate datasource exception when start weblogic server

    Thank you

    OK, try this:

    'Set the InitialCapacity from the DataSource to 0 (zero) so that weblogic will not try to create any object of JDBC connection initially towards up so time like this that we can avoid the connection failed to create the conditions and prevent any movement of our State of the ADMIN server'

    WebLogic Server is in the ADMIN? "Middleware Magic."

    Kind regards

    White

Maybe you are looking for