Customize out-of-box taskflow with java bean.

Hi,
I have created a Taskflow Customization Appl. for changing out-of-the-box Profile (.jsff) pages. I create a Java bean under ‘ViewController’ project. I’ve tried to register the bean in either adfc-config.xml or faces-config.xml file. However, using EL in jsff pages to access the bean’s attribute give me errors. I referenced the bean's attribute by #{EmployeeBean.department} in .jsff file.
Where should I register the bean? What’s the difference between two config files?
<Jan 24, 2012 3:16:22 PM EST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /edit-basic/view1 URI: /oracle/webcenter/peopleconnections/profile/view/jsf/regions/ootbedit/editbasic.jsff actual-URI: /oracle/webcenter/peopleconnections/profile/view/jsf/regions/ootbedit/editbasic.jsff.
javax.el.PropertyNotFoundException: Target Unreachable, identifier ‘EmployeeBean' resolved to null
at com.sun.el.parser.AstValue.getTarget(Unknown Source)
at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
adfc-config.xml:
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<managed-bean id="__3">
<managed-bean-name id="__1">EmployeeBean</managed-bean-name>
<managed-bean-class id="__4">WCTaskflowCustomization.model</managed-bean-class>
<managed-bean-scope id="__2">request</managed-bean-scope>
</managed-bean>
</adfc-config>
faces-config.xml:
<?xml version="1.0" encoding="windows-1252"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
<application>
<default-render-kit-id>oracle.adf.rich</default-render-kit-id>
</application>
<referenced-bean>
<referenced-bean-name></referenced-bean-name>
<referenced-bean-class></referenced-bean-class>
</referenced-bean>
<managed-bean>
<managed-bean-name>EmployeeBean</managed-bean-name>
<managed-bean-class>xxx.yyy.customization.view.Employee</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
Employee.java
=========
package xxx.yyy.customization.view;
public class Employee {
public Employee() {
super();
private String userName;
private String department;
public void setUserName(String userName) {
this.userName = userName;
public String getUserName() {
return userName;
public void setDepartment(String department) {
this.department = department;
System.out.println("setDepartment():" + department);
public String getDepartment() {
System.out.println("getDepartment():" + department);
return "Informaton Technology";
Thanks a lot.

Hi,
if you want to access the bean from within a bounded task flow then you configure it in the task flow definition. If the El accesses the bean from the unbounded task flow then you configure it in adfc-config.xml. When working with the ADF controller you don't use the faces-config.xml file for defining managed beans
Frank

Similar Messages

  • How to recover my notebook at factory - out of box settings with recovery DVD's.

    Due to hard disk crash i formatted my hard disk, also deleted all partitions including HP Tools and HP Recovery partitions. But I have my recovery DVD of my notebook that i have created at the time of notebook purchase.
    When i Inserted First Disc of my RECOVERY DVD's ..WIndows installation started and recovery manager shown the error : "The System recovery media does not support this computer. you are not able to restore this system with media."
    Please assist me to how to recover my notebook at factory - out of box settings with recovery DVD's.
    I have hp pavillon dm4-1222Tx Entertainment notebook, Genuine Windows 7 64-bit. Thanks

    Hello Anshul-Gautam,
    Please take a look at this document, and let me know if the troubleshooting steps help resolve your recovery issues.
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Replace VBX Control with Java Bean

    Hi All,
    While compiling 6i forms in 10g I got this error of VBX Control (Obsolete)
    The document says replace it with JavaBeans.
    I don’t know how to replace a VBS Control with Java Bean but this is what I did, I selected the item type as Bean Area.
    But the item do have a trigger
    begin
    control_lib.when_tab_changed(:control.tab_ctl)
    end
    The Package CONTROL_LIB is coded as below.
    Will this code work, technically I think yes, but its always better to ask experts before I move this to test...
    package body control_lib is
    g_tab_id number := 0
    procedure when_tab_changed
    (p_tab_id number) is
    l_err_txt varchar2(255);
    begin
    if :system.block_status != 'QUERY' then
    if not good_quiet_post(l_err_txt) then
    raise form_trigger_failure;
    end if
    end if
    if p_tab_id = 0 then
    rpt_ln_lib.new_tab;
    elsif p_tab_id = 1 then
    stat_lib.new_tab;
    elsif p_tab_id = 2 then
    per_acc_rl_lib.new_tab;
    end if
    g_tab_id := p_tab_id
    exception
    when form_trigger_failure then
    :control.tab_ctl := g_tab_id
    synchronize
    end when_tab_changed
    Thanks to all.
    Habeeb

    A Java bean is another technology than VBX control.
    If some document says: Replace it with java bean it certainly means to use a similar java bean with a similar functionality.
    I do not know a java bean, which runs VBX controls.
    So you surely have to look at what yout VBX does an than to look after a proper java bean (or to write an own one).

  • Displaying a JCombo Box in a Java bean with Forms9i

    I am including a java bean in my 9i form which uses some swing component such as combo box. The problem is that when I show the popup menu of the combo box, I cannot see the list items available in the box. Is that of L&F problem or is it a Form rendering problem

    Hi,
    This sounds like a Swing issue that can be cause by the Forms ewt classes.
    See: http://java.sun.com/products/jfc/tsc/articles/mixing/index.html
    Frank

  • Help with java beans on initialisation

    hi
    I'm trying to use java beans for the first time
    I'm calling a bean from a JSP page; the bean will not exist when the page is first called
    <jsp:useBean id="user" scope="session" class="business.User" />I want to use properties/private attributes of the user bean to make a form "sticky" on the page, so that once the user has entered something, their input is there the next time they visit the page (eg back or via an href)
    The problem is that the bean creates a user on the first call with properties that are null, which means that "null" is displayed on my form when it first appears
    <td><input type="text" name="firstName" value="<jsp:getProperty name ='user' property='firstName' />"></td>I can code this out using a scriptlet but this defeats the beauty of java beans and jsp tags. How do I translate a null property so that nothing is displayed on the form?
    Thanks for your help

    So.. my mini-designer should be something like an editor,with a pallette with beans(like JavaBeans) and when a user is dragging a bean into a form,my applicaton should generate the code fr that bean....something like that :)

  • Problem with java beans and jsp on web logic 6.0 sp1

              HI ,
              I am using weblogic6.0 sp1.
              i have problem with jsp and java beans.
              i am using very simple java bean which stores name and email
              from a html form.
              but i am getting following errors:
              Full compiler error(s):
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              ^
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              ^
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:94:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              ud = (userbn) java.beans.Beans.instantiate(getClass().getClassLoader(),
              "userbn"); //[ /SaveName2.jsp; Line: 7]
              ^
              3 errors
              in which directory should i place java bean source file(.java file)
              here is my jsp file:
              <%@ page language = "java" contentType = "text/html" %>
              <html>
              <head>
              <title>bean2</title>
              </head>
              <body>
              <jsp:usebean id = "ud" class = "userbn" >
              <jsp:setProperty name = "ud" property = "*" />
              </jsp:usebean>
              <ul>
              <li> name: <jsp:getProperty name = "ud" property = "name" />
              <li> email : <jsp:getProperty name = "ud" property = "email" />
              </ul>
              </body>
              <html>
              here is my bean :
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              import java.io.*;
              public class userbn implements Serializable
                   private String name ;
                   private String email;
                   public void setName(String n)
                        name = n;
                   public void setEmail(String e)
                        email = e;
                   public String getName()
                        return name;
                   public String getEmail()
                        return email;
                   public userbn(){}
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              pls help me.
              Thanks
              sravana.
              

              You realy can do it like Xiang says, but the better way is to use packages. That's
              the way BEA is designed for. If you use packages you can but your bean classes
              in every subfolder beneath Classes. Here for example we have the subfolders test
              and beans:
              You have to declare the package on top of your Bean Source Code:
              package test.beans;
              In your JSP you don't need the import code of Xiang. You only have to refer the
              path of your bean class:
              <jsp:useBean id="testBean" scope="session" class="test.beans.TestBean" />
              There are some other AppServers that only can deploy Java Beans in packages. So
              if you use packages you are always on the right side.
              ciao bernd
              "sravana" <[email protected]> wrote:
              >
              >Thank you very much Xiang Rao, It worked fine.
              >Thanks again
              >sravana.
              >
              >"Xiang Rao" <[email protected]> wrote:
              >>
              >><%@ page import="userbn" language = "java" contentType = "text/html"
              >>%> should
              >>work for you.
              >>
              >>
              >>"sravana" <[email protected]> wrote:
              >>>
              >>>HI ,
              >>>
              >>>I am using weblogic6.0 sp1.
              >>>
              >>>i have problem with jsp and java beans.
              >>>
              >>>i am using very simple java bean which stores name and email
              >>>
              >>>from a html form.
              >>>
              >>>but i am getting following errors:
              >>>
              >>>________________________________________________________________
              >>>
              >>>Full compiler error(s):
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:94:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> ud = (userbn) java.beans.Beans.instantiate(getClass().getClassLoader(),
              >>>"userbn"); //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>3 errors
              >>>
              >>>____________________________________________________________
              >>>
              >>>in which directory should i place java bean source file(.java file)
              >>>
              >>>here is my jsp file:
              >>>--------------------------------------------------------
              >>>
              >>><%@ page language = "java" contentType = "text/html" %>
              >>><html>
              >>><head>
              >>><title>bean2</title>
              >>></head>
              >>><body>
              >>><jsp:usebean id = "ud" class = "userbn" >
              >>><jsp:setProperty name = "ud" property = "*" />
              >>></jsp:usebean>
              >>><ul>
              >>><li> name: <jsp:getProperty name = "ud" property = "name" />
              >>><li> email : <jsp:getProperty name = "ud" property = "email" />
              >>></ul>
              >>></body>
              >>><html>
              >>>
              >>>-------------------------------------------------------------
              >>>
              >>>here is my bean :
              >>>
              >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              >>>
              >>>import java.io.*;
              >>>
              >>>public class userbn implements Serializable
              >>>{
              >>>
              >>>     private String name ;
              >>>
              >>>     private String email;
              >>>
              >>>     public void setName(String n)
              >>>     {
              >>>
              >>>          name = n;
              >>>     }
              >>>
              >>>     public void setEmail(String e)
              >>>     {
              >>>
              >>>          email = e;
              >>>     }
              >>>
              >>>     public String getName()
              >>>     {
              >>>
              >>>          return name;
              >>>     }
              >>>
              >>>     public String getEmail()
              >>>     {
              >>>
              >>>          return email;
              >>>     }
              >>>
              >>>     public userbn(){}
              >>>}
              >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              >>>
              >>>pls help me.
              >>>Thanks
              >>>sravana.
              >>>
              >>
              >
              

  • Crystal report generation with Java Bean AS  Data source on RAD

    <p>Hi,</p><p>&#160;</p><p>          Our company wants report generation in IBM RAD 7.0  using crystal reports with a Java Bean as data source. i HAVEN&#39;T FOUND ANY ARTICLES TO WORK ON RAD. Any inputs appreciated..</p><p>&#160;</p><p>Thanks,</p><p>Manju</p>

    Look for Java POJO in the doc, i'm using RAD 7.0 and it's working like RAD 6.0

  • Problems with Java-Beans-Connectivity

    Post Author: dweise
    CA Forum: JAVA
    I'm new in crystal reports and try to connect a sample bean class to the java beans conectivity. Problem is that i only get JavaServerType=JavaBeans|JavaBeanName= for selection. Can anyone tell me what the problem is with my configuration. I followed the steps of the POJOTutorial.doc and the Configuration-Infos of the java_beans_connectivity.My System is w2k professional and for Crystal Reports i use the developer installation with Product Version 11.5.0.313 Thanks by now

    Post Author: pabhijit
    CA Forum: JAVA
    Could you send me the detailed steps and what point you are stucked.? I recently did something simillar and may be I would be able to help.

  • Is it possible to create crystal reports on IBM RAD with Java Bean as Data Source

    <p>Hi,</p><p>&#160;</p><p>          Our company wants report generation in IBM RAD 7.0  using crystal reports with a Java Bean as data source. i HAVEN&#39;T FOUND ANY ARTICLES TO WORK ON RAD. Any inputs appreciated..</p><p>&#160;</p><p>Thanks,</p><p>Manju</p>

    Look for Java POJO in the doc, i'm using RAD 7.0 and it's working like RAD 6.0

  • Need help with Java Beans and PDA

    How can I get Java Bean applets to work on a PDA, with either Palm or Pocket PC?

    first hit on google
    thankyou for using the georgemc google proxy

  • I can't work with java Beans in IWS6

    I have been trying to get my iWS6 to run java bean but has not been able to do so. I tried a few beans and I get the same message on the log:
    [27/May/2002:18:30:50] info ( 3160): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP/local/iplanet/https-hdesk-1/config/../ClassCache/_jsps/_otro_jsp.java:60: Class _jsps.UserData not found.
    UserData user = null;
    ^
    /local/iplanet/https-hdesk-1/config/../ClassCache/_jsps/_otro_jsp.java:63: Class _jsps.UserData not found.
    user= (UserData)
    ^
    /local/iplanet/https-hdesk-1/config/../ClassCache/_jsps/_otro_jsp.java:68: Class _jsps.UserData not found.
    user = (UserData) Beans.instantiate(this.getClass().getClassLoader(), "UserData");
    ^
    3 errors
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
    at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
    at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    [27/May/2002:18:30:50] warning ( 3160): Internal error: Failed to get GenericServlet. (uri=/otro.jsp,SCRIPT_NAME=/otro.jsp)
    I read a similar answer in this Forum but I couldn't find good results.
    I'm using Solaris SPARC and JDK 1.3. When I run the Web server I Find these messages:
    Java VM classpath: /local/iplanet/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar:/local/iplanet/docs:/local/iplanet/bin/https/jar/NSServletLayer.jar:/local/iplanet/bin/https/jar/NSJavaUtil.jar:/local/iplanet/bin/https/jar/NSJavaMiscUtil.jar:/local/iplanet/bin/https/jar/servlet.jar:/local/iplanet/bin/https/jar/servlet-2.3-filters-api.jar:/local/iplanet/bin/https/jar/jsp092.jar:/local/iplanet/bin/https/jar/jaxp.jar:/local/iplanet/bin/https/jar/crimson.jar:/local/iplanet/bin/https/jar/xalan.jar:/local/iplanet/bin/https/jar/jspengine.jar:
    [27/May/2002:18:29:21] info ( 3160): Loading IWSSessionManager by default.
    [27/May/2002:18:29:21] info ( 3160): IWSSessionManager: Maximum number of sessions is 1000
    [27/May/2002:18:29:23] info ( 3160): Successfully initialized web application environment (web-apps.xml) for virtual server (https-hdesk-1)
    [27/May/2002:18:29:23] warning ( 3160): The server configuration may require more file descriptors than the operating system provides. If you encounter PR_PROC_DESC_TABLE_FULL_ERROR errors, you may wish to increase the operating system hard file descriptor limit from 1024 to 5763 (see your operating system documentation) or decrease one or more of the following settings: MaxFiles in nsfc.conf and ConnQueueSize, RqThrottle, and MaxKeepAliveConnections in magnus.conf.
    [27/May/2002:18:30:46] info ( 3160): Internal Info: loading servlet /otro.jsp
    I've run many jsp files without problem, but when I use java Beans it doesn't work.
    Thank you
    P.D. The Classpath already contains the Java Bean file.

    Hola Daniel,
    Make this simple thing, import the class in your jsp, for example, in your case this should be:
    <%@ page import="UserData" %>
    The jasper compiler assumes that any unqualified class is part of the package jsps. I think this is to allow class definitions in the jsps. So if you indicate that the class is not packaged in jsps it will be found.
    Juan

  • JSP tags with java beans !! Design Help needed ..

    Hi,
    I have three tables State,District,College.
    My requirement is to get the fields from three tables one time from the DB and populate them with the JSP(so that the DB connections will not be much).
    For that :::
    I have designed to have three Beans StateBean,DistrictBean and CollegeBean.
    Every row in State table will be a StateBean and will be added to an ArrayList called StateBeanList
    similarly I got two other lists DistrictBeanList and CollegeBeanList.
    And I am using application.setAttribute() to send all the information to the JSP by using RequestDespatcher..
    When I run the servlet on tomcat it is getting OutOfMemory Exception in java Heap..Can I increase the heap size on tomcat ?
    Apart from increasing the heap size I want to know good design...
    My actual requirement is::: in the forwared JSP I need to populate state text field and after selecting state field I need to get the district fileds populated in other text filed, by the value of district field I need to populate college field... we can see it many websites...
    Please suggest me the good design..
    Thanks in Advance,
    Vidhya...

    vidhya517 wrote:
    I have three tables State,District,College.
    My requirement is to get the fields from three tables one time from the DB and populate them with the JSP(so that the DB connections will not be much).
    For that :::
    I have designed to have three Beans StateBean,DistrictBean and CollegeBean.
    Every row in State table will be a StateBean and will be added to an ArrayList called StateBeanList
    similarly I got two other lists DistrictBeanList and CollegeBeanList.I would rather let StateBean have a Set<DistrictBean> property and let DistrictBean have a Set<CollegeBean> property. List instead of Set is also okay.
    And I am using application.setAttribute() to send all the information to the JSP by using RequestDespatcher..
    When I run the servlet on tomcat it is getting OutOfMemory Exception in java Heap..Can I increase the heap size on tomcat ?
    Apart from increasing the heap size I want to know good design...How many states, districts and colleges do you have in total? What is your initial heap size? You can just alter it as startup parameters/arguments.
    My actual requirement is::: in the forwared JSP I need to populate state text field and after selecting state field I need to get the district fileds populated in other text filed, by the value of district field I need to populate college field... we can see it many websites...
    Please suggest me the good design..

  • Error running 10g form with java bean

    I am trying to run the CalendarWidget form demo with the javabean. I start the OC4J Instance then open my file:
    http://myserver.com:8889/forms90/f90servlet?config=pjc&form=C:\Oracle\Dev10g\forms90\java\calendarwidget.fmx&userid=HR
    /HR@TRACY&buffer_records=NO&debug_messages=NO&array=YES&RENDER=YES&width=950&height=600
    The Browser appears with Oracle AS Form Services and error box:
    FRM-92100: Your connection to the Server was interrupted. This may be the result of a network error, or a failure on the Server. You will need to reestablish your session.
    Java console shows:
    java.lang.SecurityException: class "oracle.ewt.lwAWT.LWButton"'s signer information does not match signer information of other classes in the same package
    I am trying to run this on my local pc and database with the forms90 server that installed with Developer. I'm not really java smart, so could use some help.
    Thanks.
    Tracy

    Hello Rob
    I'm having the same problem. I downloaded the calendar from http://www.oracle.com/technology/sample_code/products/forms/6idemos.html
    Is there a newer version for 10g?
    here is the error in my java client....
    Loading http://fi0oracle07.fi0dept.local/forms90/java/f90all_jinit.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.1
    CalendarWidgetWrapper: init()
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: oracle/ewt/lwAWT/LWButton
         at oracle.forms.demos.CalendarWidgetWrapper.<init>(CalendarWidgetWrapper.java:96)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(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.run(Unknown Source)

  • Convert an excel (*.xls) file to a xml file with Java Beans

    Hi to all............
    I am new to this ,
    I have a requirement that
    i want to read excel (*.xls ) file which is having some data going to be persist in database. Before going to persist process i want to read that data from xls file and convert those data into xml file.
    Can any one help me how can i do this using java classes?
    Please guide me what are the necessary libraries and requirements to do this?
    If any one have an idea then help me with some example code
    Thanks in advance for your great replay
    Sathish A

    this is the full stack trace i am getting jboss server console
    09:57:17,922 ERROR [application] org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
    javax.faces.el.EvaluationException: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at javax.faces.component.UICommand.broadcast(UICommand.java:387)
         at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
         at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
         at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
         at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
         at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:86)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
         at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
         at java.lang.Thread.run(Thread.java:636)
    Caused by: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
         at org.apache.xerces.dom.CoreDocumentImpl.createElement(Unknown Source)
         at org.domain.DigesterDemo.session.ViewList.generateXML(ViewList.java:275)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:616)
         at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
         at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
         at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
         at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
         at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
         at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
         at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
         at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
         at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
         at org.domain.DigesterDemo.session.ViewList_$$_javassist_2.generateXML(ViewList_$$_javassist_2.java)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:616)
         at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
         at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
         at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
         at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
         at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
         at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
         ... 51 more
    Thanks for your replay

  • Problem with java bean!

    Hi
    I am new to JSP but hav programmed Java. I would like to create an JSP page that connects to a database MS SQL Server7.0 but get the following error message in JBuilder5 when I try to run:
    "Jsp1.jsp": org.apache.jasper.JasperException: Cannot find any information on property 'name' in a bean of type 'myapp1.Jsp1Bean'
    my jsp page looks like this :
    <html>
    <head>
    <title>
    Jsp1
    </title>
    </head>
    <jsp:useBean id="Jsp1BeanId" scope="session" class="myapp1.Jsp1Bean" />
    <jsp:setProperty name="Jsp1BeanId" property="*" />
    <body>
    <h1>
    Personal Planner<br><hr>
    </h1>
    <form method="post">
    <%--Olika f�llt med persondata--%>
    Enter following data:
    <pre><br> First name: <input name="name">
    <br> Last name: <input name="name">
    <br> Date of birthday: <input name="date"> (YYYYMMDD)
    <br> Date to be reminded: <input name="date"> (YYYYMMDD)
    <br> Time to be reminded: <input name="time"> (HH:MM)<br>
    <br><br>Type of media to be reminded by:
    Mobile: <input type="checkbox" name="Mobile"> Mobilenumber: <input name="mobilenumber"><br>
    Email: <input type="checkbox" name="Email"> Address: <input name="address"><br>
    <br>
    </pre>
    <%--Valbar lista att v�lja typ av media--%>
    <input type="submit" name="Add person" value="Add person">
    <input type="reset" value="Clear">
    <br>
    <br><br><br><br><br>Value of Bean property is :<jsp:getProperty name="Jsp1BeanId" property="name" />
    </form>
    </body>
    </html>
    my bean file is:
    package myapp1;
    public class Jsp1Bean {
    private String sample = "Start value";
    /**Access sample property*/
    public String getSample() {
    return sample;
    /**Access sample property*/
    public void setSample(String newValue) {
    if (newValue!=null) {
    sample = newValue;
    Please help!
    /Thanks in advance

    Hi,
    Do u have the getname method in the bean?If not,
    In the bean,the property is declared as a variable and must have a corresponding getter method.
    Either change the variable in bean as �name� or the property in jsp as �sample�
    public class Jsp1Bean
    private String name = "Start value";
    /**Access name property*/
         public String getname() {
         return name;
         /**Access name property*/
         public void setname(String newValue) {
         if (newValue!=null) {
         name = newValue;
    Guess this works,
    subha

Maybe you are looking for

  • Anybody else having Arch mail being marked as spam?

    i dont know who to tell this to - but i just received an email subject "AUR Comment for hydra" and it went into gmail's spam folder. Not only that, it gives me a warning, "Warning: This message may not be from whom it claims to be. Beware of followin

  • How to use a sapscript for multiple languages ? (english,

    hi ,          i am new to sap-ABAP can any one clarify my doubt .           and i have few more doubts,  transaction code for logo uploading ?           standard program used for uploading the logo to  script?  .

  • How to catch CONVT_NO_NUMBER runtime error in ABAP Proxy

    Hi all,        In our abap proxy program, sometimes the CONVT_NO_NUMBER will happen and cause the program dump and then stuck the whole queue. I noticed that this error cannot be caught by CX_ROOT exception class. So, how can I catch this runtime err

  • X61s running external monitor on native (1920x1200) resolution

    Hi, I'm running a X61s with an NEC 2690WUXi monitor. Trouble is that I can't get the Thinkpad to output a 1920x1200 signal (even though I know it is capable). I select the 1920x1200 resolution, but it always outputs 1920x1080 (with panning up an down

  • How can I delete imported pictures without itunes

    I have some imported photos which i dont want anymore, but itunes wont work on my computer for some reason, so itunes is out of the picture and i need some help.