Excpeption creating custom component

Hi all,
I'm using Sun's RI 1.2 to create a custom component that consist of
standard components. My problem is that this custom component renders
ok but when I submit the form that contains it I get an
IndexOutOfBoundsException.
Can anyone please tell me what's causing this or what's the problem?
Here's the exception:
java.lang.ArrayIndexOutOfBoundsException: 1
     at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1160)
     at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1164)
     at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1164)
     at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:310)
     at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:300)
     at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:174)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:132)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
     at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
     at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
     at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
     at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
     at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
     at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
     at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
     at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
     at org.mortbay.jetty.Server.handle(Server.java:313)
     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
     at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
     at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
     at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
And here's the custom component code:
public UIBooleanFieldset() {
setConverter(new BooleanConverter());
setRendererType(null);
Application application = FacesContext.getCurrentInstance().getApplication();
HtmlSelectOneRadio htmlSelectOneRadio = (HtmlSelectOneRadio)
application.createComponent(HtmlSelectOneRadio.COMPONENT_TYPE);
htmlSelectOneRadio.setId(getId() + "_radios");
ValueBinding radioBinding =
application.createValueBinding("#{persoonBean.sex}");
htmlSelectOneRadio.setValueBinding("value", radioBinding);
htmlSelectOneRadio.setLayout("pageDirection");
UISelectItems selectItems = (UISelectItems)
application.createComponent(UISelectItems.COMPONENT_TYPE);
ValueBinding selectBinding =
application.createValueBinding("#{persoonBean.sexItems}");
selectItems.setValueBinding("value", selectBinding);
htmlSelectOneRadio.getChildren().add(selectItems);
getChildren().add(htmlSelectOneRadio);
Thanks for any help!
regards,
Jeroen

Hi,
I had a little trouble find a maven repository serving the RI jars but eventually I found one:
       <dependency>
         <groupId>javax.faces</groupId>
         <artifactId>jsf-impl</artifactId>
         <version>1.2-b19</version>
       </dependency>
       <dependency>
         <groupId>javax.faces</groupId>
         <artifactId>jsf-api</artifactId>
         <version>1.2_02</version>
       </dependency>By the way, I had this problem with the myfaces 1.2 implementation too.
Thanks for your help,
Jeroen

Similar Messages

  • How to create custom component in CRM 2007

    Hi.
    I am new for the CRM 2007 Web UI.
    Here we have CRM_UI_FRAME.
    Like this so many Components are there.
    I want how to create our own component.
    I created it as follows.
    Open the Transaction code bsp_wd_cmpwb.
    Provide Z Name in the Component.
    Zcomponent
    Press Create button.
    Go to Run Time Repository.
    Press Change Mode.
    Create a MODEL as ALL.
    GO to Browser Component Structre.
    Select View.
    Provide View name.
    Create the View.
    Go to view Layout.
    Provide the code like this.
    <%@page language="abap"%>
    <%@ extension name="htmlb" prefix="htmlb"%>
    <%@ extension name="xhtmlb" prefix="xhtmlb"%>
    <%@ extension name="crm_bsp_ic" prefix="crmic"%>
    <%@ extension name="bsp" prefix="bsp"%>
    <cthmlb:overviewFormConfig/>
    Create the context under the context.
    Go to Configuration tab.
    Assigne the Attributes to the Screen.
    GO to the Run Time Repository.
    press change mode.
    Assigne the view name to the Window.
    Save it.
    Test the Componet. But it is not diaply anything on the screen.
    How i will get the data into the web UI.
    Can anybody expalin about this one to me with screen shorts if possible.
    I want add some fields into the web UI. Provide some values into that. Capture the values.
    Navigate the data from one screen to another screen. How it is possible. I did not understand. 
    If i am changing any screens in the pre define component it shows dump.
    So, now i need Custom component with adding of the fields.
    Please give me proper information regarding this one.
    Thank You.
    Krishna. B.

    Hi,
    Try put the htmlb to show a field:
    <thtmlb:label design="LABEL" for="//<context>/<field>" text="<field>"/>
    <thtmlb:inputField  id="<field>" maxlength="31" size="20" value="//<context>/<field>"/>
    In order to get value, you can write a simple code in the event_handler:
    LR_BOL                      type ref to IF_BOL_BO_PROPERTY_ACCESS
    LR_BOL = ME->TYPED_CONTEXT-><context>->COLLECTION_WRAPPER->get_current()
    var1 = LR_BOL->GET_PROPERTY_AS_STRING('FIELD').
    take a look at lr_bol methods so that you can see the set and get methods.
    Regards,
    Renato.

  • ADF FACES:Creating custom component on top of adf

    My UI requiement is sth like
    Name : xxxxxxx
    Description : xxxxxxxxx
    Search : cccccc
    This UI i want to create as a custom tag and use it across our project.
    We need to include this utiltiy in JSP Tag libraries so that it appears in
    the compoent palette.
    WE have done the same thing using pure JSF and it is working fine.
    But we need to leverage ADF classes.. so that we can get the same look and
    feel and we simply set our proprties and renering part will come from ADF faces.
    In my main component class I have written the code sth like
    public void encodeChildren(FacesContext context)throws IOException {
    RenderKit rk = context.getRenderKit();
    CoreInputText buton = new CoreInputText();
    buton.setValue("my text");
    buton.setRendered(true);
    rk.getRenderer("myFamily", getRendererType()).encodeBegin(context, buton);
    After doing this I run my test.jsp and no output is produced.
    So can you let us know the correct way for doing this.
    This is a high priority requirement for US.if anybody can pls help asap..
    Thanks
    Ravi

    Hi All,
    I was able to get this code to run and wanted to share with you the corrections
    ================== HelloUIComp.java ==============
    package view.components.msg;
    import java.io.IOException;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponentBase;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.FacesContext;
    import oracle.adf.view.faces.component.core.CoreForm;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.layout.CorePanelForm;
    import oracle.adf.view.faces.component.core.nav.CoreCommandButton;
    import oracle.adf.view.faces.component.core.output.CoreMessage;
    import oracle.adf.view.faces.component.core.output.CoreMessages;
    public class HelloUIComp extends UIComponentBase {
    private CoreCommandButton button;
    private CoreInputText intext;
    private CoreInputText description;
    private CorePanelForm panel;
    private CoreForm form;
    public static final String COMPONENT_TYPE = "com.mycompany..hello";
    // This will be a self-rendering component
    public static final String RENDERER_TYPE = null;
    public HelloUIComp() {
    FacesContext context = FacesContext.getCurrentInstance();
    Application apps = context.getApplication();
    UIViewRoot root = context.getViewRoot();
    panel = (CorePanelForm)apps.createComponent(CorePanelForm.COMPONENT_TYPE);
    panel.setId("errPanel");
    panel.setLabelWidth("35%");
    panel.setRows(7);
    getChildren().add(panel);
    form = (CoreForm)apps.createComponent(CoreForm.COMPONENT_TYPE);
    form.setId("errForm");
    panel.getChildren().add(form);
    intext = (CoreInputText)apps.createComponent(CoreInputText.COMPONENT_TYPE);
    intext.setId("name");
    intext.setLabel("Name");
    intext.setRendered(true);
    intext.setRequired(true);
    form.getChildren().add(intext);
    description = (CoreInputText)apps.createComponent(CoreInputText.COMPONENT_TYPE);
    description.setId("description");
    description.setLabel("description");
    description.setRendered(true);
    description.setRequired(true);
    description.setRows(3);
    form.getChildren().add(1, description);
    public boolean getRendersChildren() {
    return true;
    public void encodeChildren(FacesContext context) throws IOException {
    // Encode the top most component
    panel.encodeAll(context);
    /* The below code can replace the encodeAll call
    panel.encodeBegin(context);
    if(panel.getRendersChildren()){
    panel.encodeChildren(context);
    panel.encodeEnd(context);
    public String getFamily() {
    return COMPONENT_TYPE;
    ==========================================================
    Notice, you don't need any setters/getters for this object.
    You will need the following tag file:
    ============= HelloUICompTag.java ========
    package view.components.msg;
    import javax.faces.webapp.UIComponentTag;
    public class HelloUICompTag extends UIComponentTag{
    public HelloUICompTag() {
    public String getComponentType() {
    return HelloUIComp.COMPONENT_TYPE;
    public String getRendererType() {
    // Self rendering components return null
    return HelloUIComp.RENDERER_TYPE; // should be null
    =========================================
    You will need to update your faces.config file with the following entry. Notice you do not need an entry under render kit.
    <component>
    <component-type>com.mycompany.hello</component-type>
    <component-class>view.components.msg.HelloUIComp</component-class>
    </component>
    Finally, you will need to create (or append to) a tag library
    ================== myTest.tld ====================
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <taglib xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee">
    <display-name>tests</display-name>
    <tlib-version>1.0</tlib-version>
    <short-name>tests</short-name>
    <uri>http://mycompany.mil/tests</uri>
    <tag>
    <name>hello</name>
    <tag-class>view.components.msg.HelloUICompTag</tag-class>
    <body-content>JSP</body-content>
    </tag>
    </taglib>
    =============================================
    Notice you don't need a custom renderer class. The component is self-redering.
    To use the component, create a myTest.jspx file like the following:
    ============ myTest.jspx ===============
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:mebs="http://mycompany.com/tests">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <afh:html>
    <afh:head title="Testing Components">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <h:form>
    <af:panelPage title="My Component Test">
    <f:facet name="menu1"/>
    <f:facet name="menuGlobal"/>
    <f:facet name="branding"/>
    <f:facet name="brandingApp"/>
    <f:facet name="appCopyright"/>
    <f:facet name="appPrivacy"/>
    <f:facet name="appAbout"/>
    <!--
    Well, this is a bad place to put our component
    This will render a <af:form> within the above <h:form>
    Should be placed outside the h:form or edit the component and remove the form
    -->
    <mebs:hello/>
    </af:panelPage>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    ===================================
    Hope this helps you.

  • Create customized component for Configurator Panel

    The SWFWidget can load a Flash component on the Configurator
    Panel.
    But if your SWF component is a "Flash Panel" which called the
    "CSXSInterface" and execute some functions in the "JSX" file. It's
    a little different
    For example, the "color picker" in the flash panel SDK at url
    http://download.macromedia.com/pub/developer/photoshop/sdk/photoshop_panel_developers_guid e_win.zip
    You still can load this "colorpicker.swf" in a Configurator
    Panel with SWFLoader Widget, it can talk with CSXSInterface
    correctly.
    The only manual step required additionally is that:
    After you export your panel into the Plug-in/Panels folder,
    you can found a file with name "YourPanel.jsx", then copy and paste
    all the script code in "color picker.jsx" into this
    "YourPanel.jsx", then start PS.
    You can see the "Color Picker" works in your Configurator
    Panel as a component.
    I'd uploaded a sample onto exchange at url
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1715 022
    This link is not approved yet, may be available several days
    later.

    Dear ,
    You can try to develope a report with the help of you ABAPer with following FM /BAPI :
    CSAP_MAT_BOM_MAINTAIN
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN
    CSAP_MAT_BOM_CLOSE
    Refer this experts theards on this issues : Deletion of BOM item using BAPI/FM
    If you need to go ahead with ECM , you refer  our earlier posting in the same issue :
    Changes in Production Orders
    Regards
    JH

  • Get or create custom Component?

    I want to have something that looks like the "File and Folder Tasks" or "Other Places" that are on the left in a folder on Windows (I'm using XP). Is there something similar available somewhere or would I have to make it myself?

    It looks promising but I'm not so sure whats going on with swingx. Firstly I had problems finding it because of broken links. The .jar file I found at
    https://swingx.dev.java.net/servlets/ProjectDocumentList?folderID=11890&expandFolder=11890&folderID=11866
    is 7.1MB? Will I have to include the whole 7.1 in my application?

  • How to create custom(or) user defined component in SAPTAO

    Hi,
       Please provide me some document or steps on how to create custom component in sap tao.
    Thanks a lot in advance.
    Regards,
    Sudha

    Hi,
    If you want create any custom components, you should use SAP QTP to create it.
    Here are the simple steps:
    i) Go to QTP -> Click on New - > Select Scripted Component - > ((Select SAP_Doc) area (i.e. whatever application area you have created for SAP TAO installation)) -> Record or Write a script based on your requirement & save
    ii) Go to QC -> BPT -> open above component and insert the parameters and call these values in QTP script level (either way you can do)
    iii)  Create a datasheet and declare the parameters in datasheet and call this sheet whenever you have required.
    Good luck.
    Ram

  • My custom component not clickable

    Hi,
    I'm creating custom component and when I add it to page I can't click it. When I add it to the bottom of page, the parsys overlaps this component and when I add component behind my custom component, it overlaps it too which means I can't edit/delete my cust. component. What am I doing wrong? Here is the code
    <%@include file="/libs/foundation/global.jsp"%>
    <%@page import="com.day.text.Text" %>
    <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %><%
    String home = Text.getAbsoluteParent(currentPage.getPath(), 2);
    %>
    <p>
    <div class="download">
    <div class="fl mr30">
      <cq:include path="download-file" resourceType="project20130820v01/components/component_008_vybrat-soubor" />
    </div>
    <div class="fl">
      <cq:include path="download-file2" resourceType="project20130820v01/components/component_008_vybrat-soubor" />
    </div>
    </div>
    </p>
    and properties are set to this
    I'm thankfull for any help.

    After some test, I found that overriding value property in my custom component cause this proplem.Why overriding value property cause this problem?

  • New to custom component

    Hi,
    I would like to have a few answer for those questions:
    1. What is the main purpose of creating custom component (ie.
    imagine I want to create a custom button component)?
    2. Why do we need to extend our custom component? Also, is
    this make our component bigger in size?
    Thank alot for helping me!

    You create custom components when one of the standard Flex
    components lacks something you need.
    You don't need to extend your custom component, but when you
    create custom components you often will extend an existing Flex
    component so you can take advantage of the functionality common to
    Flex components.
    Your file size may increase depending on what you do.

  • Error in application: custom component Localization in flex library project

    Hi!
    I created custom component in flex library project and I created resource bundle for it. Now it all compiles, but when I add the component to other project I get an error: Unable to resolve resource bundle "Guestbook" for locale "en_US".
    So can someone help me with this?

    Where are your resource bundles located in relation to your Flex project src folder?
    You may need to add the path to the bundles using Project - Properties - Flex Build Path and then add the parent folder to the resource bundles.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How do you reference a valueObject located in main to a custom component created in Catalyst?

    Hello,
    I have been working with the Catalyst Beta 2 / Flash Builder beta trying to create a photogallery and have hit a little bit of a snag, try as I might I can't seem to find the answer anywhere. I am still new to Flex so please excuse me if this is a basic question, I have been trying to understand more about Flex to make my designs in Catalyst better.
    I found this video on Adobe TV: http://tv.adobe.com/watch/rich-internet-applications-101/ria-stepbystep-16-binding-a-data- service-to-flash-builder-components/
    It's wonderful and I have the datalist I created in Catalyst working with the XML file I generated but I designed my little photogallery a bit diffrent, I created a Custom Component in Catalyst so that when you click an item on the DataList it pop's up a little screen with a larger photo in on it, rather then having an image in the main application. Now my problem seems to be that I can't refrence the valueObject I created with the wizard as it's in my Main.mxml file, is there a way to refrence it from my Custom Component so the larger image will display? Is there a way to let the component know which item on the dataList in the main application is selected and display the correct image?
    I should also say I really enjoy working with the Beta for both Flash Builder / Catalyst, thanks for the hard work!
    Thanks for the help,
    Chris

    I am afraid you cannot bind to static properties in Windows Store Apps. It is simply not supported.
    You could create a proxy class that exposes the static command property and bind to this property of an instance of the proxy object:
    http://stackoverflow.com/questions/14186175/bind-to-a-static-field-in-windows-8-xaml
    http://stackoverflow.com/questions/4708711/how-can-i-use-the-xstatic-extension-for-phone7-silverlight-apps
    You will of course have to create an instance of the proxy object. There is no way around this.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question.

  • Advice on creating a tricky custom component

    Hi,
    I'm working on creating a custom component which displays a image at the top of the canvas, and loops through a passed array collection, displaying each row of the array collection in a item renderer. So the component should look like this (see attached image).
    As you can see from this image the header is a image itself, this will differ every instance of the panel, there should be 3 of these panels on the page. Then each row of data is a item renderer displaying the data provided from a array collection of value object. If there are 4 items in this array collection then the panel should show 4 rows, if there are 2 row in the array then the panel will display 2 rows. Also the height of the panel will dynamically change depending on the number of rows to show.
    I was thinking of extending a Canvas component, and then passing in the image URL and trying to load and draw the image dynamically, then I was thinking of using the Drawing API to create the rectangle shape using the drawRoundRectComplex() of the graphics class.
    The problems I see with this is that I don't think the drawn rectangle shape can re-draw itself to show the change in height when more or less row of data need to be be displayed.
    Another option I have been thinking about is extending the Panel class to create my component, this may be better for handling the height resizing, but I'm not sure it can support the look of this component (the header image and the three rounded corners).
    Could anyone give me some advice on what would be the better option for creating this component.
    Thanks
    Stephen

  • I am not able to create a JMS connection from a custom component in UCM

    I am trying to create a custom component which makes a JMS connection and inserts messages in JMS Queue.
    THe JMS server is hosted on Weblogic Application Server.
    When the code runs I am getting the factory object and the queue object.
    But when I try to get a connection it throws an error as pasted below.
    WHen I googled the same error It has shown a simliar problem in TOmcat in sun thread
    It said two jar files xerces.jar and xml-apis.jar are obsolete.
    I replaced with the new version.
    still the same problem occurred
    Please help
    Pasting the code and exception here
    Code __________________________________________
    import java.util.Date;
    import java.util.Hashtable;
    import javax.jms.*;
    import javax.naming.*;
    import weblogic.jms.client.WLConnectionImpl;
    import weblogic.jms.extensions.*;
    import javax.rmi.PortableRemoteObject;
    public class SimpleProducer {
    public static void drive() {
    final int NUM_MSGS;
         NUM_MSGS = 93;
    Context jndiContext = null;
    Hashtable<String, String> ht;
              ht = new Hashtable<String, String>();
              ht.put(Context.INITIAL_CONTEXT_FACTORY,
                        "weblogic.jndi.WLInitialContextFactory");
              ht.put(Context.PROVIDER_URL, "t3://punitp52975d:7001");
    try {
         jndiContext = new InitialContext(ht);
    } catch (NamingException e) {
    System.out.println("Could not create JNDI API context: " +
    e.toString());
    System.exit(1);
    ConnectionFactory connectionFactory = null;
    Destination dest = null;
    try {
                   Object home = jndiContext.lookup("CNFT"); // where iiopTestDS is jndi name for my DataSource.
    connectionFactory =(ConnectionFactory)PortableRemoteObject.narrow(home , ConnectionFactory.class);
         Object home1 = jndiContext.lookup("QUEUE2"); // where iiopTestDS is jndi name for my DataSource.
    dest =(Destination)PortableRemoteObject.narrow(home1 , Destination.class);
         /*connectionFactory = (ConnectionFactory) jndiContext.lookup(
    "CNFT");
    dest = (Destination) jndiContext.lookup("QUEUE2");
    System.out.println("connectionFactory,dest "+connectionFactory+dest);*/
    } catch (Exception e) {
    System.out.println("JNDI API lookup failed: " + e.toString());
    e.printStackTrace();
    System.exit(1);
    //WLConnectionImpl connection = null;
    WLConnection connection = null;
    WLMessageProducer producer = null;
    try {
                   System.out.println("Getting Connection "+(WLConnection) connectionFactory.createConnection());
    //connection = (WLConnection) connectionFactory.createConnection();
                   System.out.println("Connection created");
    WLSession session =
    (WLSession) connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
    producer = (WLMessageProducer) session.createProducer(dest);
    WLMessage message = (WLMessage) session.createTextMessage();
    //TextMessage message = session.createTextMessage();
    for (int i = 91; i < NUM_MSGS; i++) {
    ((TextMessage) message).setText("This is message " + (i + 1));
    Long l = new Date().getTime();
    message.setLongProperty("ReleasedDate",l );
    System.out.println("Sending message: " + ((TextMessage) message).getText());
    producer.send(message);
    producer.send(session.createMessage());
    } catch (Exception e) {
    System.out.println("Exception occurred: " + e.toString());
    } catch (Throwable et) {
    System.out.println("Exception occurred: " + et.toString());
    et.printStackTrace();
    finally {
    if (connection != null) {
    try {
    connection.close();
    } catch (Exception e) {
                             System.out.println("*************Instantiating Producer***************");
    Exception_________________________________________________________________
    Exception occurred: java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.getSchema()Ljavax/xml/validation/Schema;
    java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.getSchema()Ljavax/xml/validation/Schema;
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:124)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:115)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:143)
    at weblogic.xml.jaxp.WebLogicSAXParserFactory.<init>(WebLogicSAXParserFactory.java:62)
    at weblogic.rmi.internal.wls.WLSRMIEnvironment.getSAXParser(WLSRMIEnvironment.java:136)
    at weblogic.rmi.internal.DescriptorManager.getDescriptorAsMap(DescriptorManager.java:170)
    at weblogic.rmi.internal.DescriptorManager.getDescriptorAsMap(DescriptorManager.java:159)
    at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:104)
    at weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:85)
    at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:51)
    at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:37)
    at weblogic.rmi.internal.OIDManager.makeServerReference(OIDManager.java:194)
    at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:175)
    at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceRemote(RemoteObjectReplacer.java:120)
    at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:103)
    at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:223)
    at weblogic.rmi.internal.OIDManager.initializeDGCServer(OIDManager.java:231)
    at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:144)
    at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceRemote(RemoteObjectReplacer.java:120)
    at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:103)
    at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:223)
    at weblogic.corba.server.naming.ReferenceHelperImpl.exportObject(ReferenceHelperImpl.java:233)
    at weblogic.rmi.extensions.PortableRemoteObject.exportObject(PortableRemoteObject.java:34)
    at weblogic.messaging.dispatcher.DispatcherImpl.export(DispatcherImpl.java:85)

    This is probably related to this other issue http://www.adobeforums.com/webx/.59b7fbab/0.
    Jasmin

  • Creating a custom component in multisim using *.lib and *.olb files

    i have  *.lib and *.olb files for a pspice model. which file i have to you while creating a custom component in multisim.

    Hello,
    Thanks for your question. In order to create simulatable custom components in Multisim you need a SPICE model (Multisim can also understand PSpice Models). The file format for SPICE model can be different according to the manufacturer, for instance: *.cir, *.lib, *.llb. At the end of the day these files are text files that you can open with a text editor, therefore, you can simply copy and paste the model in Multisim.
    Here are two good resources on component creation:
    Component Creation 101
    Creating a Custom Component in NI Multisim
    When you reach the step where you need to enter the SPICE model, simply open the *.lib or *.olb file with a text editor, and copy and paste the model.
    Hope this helps.
    Fernando D.
    National Instruments

  • Best Practice : Creating Custom Renderer for Standard Component

    I've been reading the docs and a few threads about Custom Renderers. The best practice seems to be to create a Custom Component where you need a Custom Renderer. Is this the case?
    See [this post|http://forums.sun.com/thread.jspa?forumID=427&threadID=520422]
    I've created several Custom Renderers to override the HTML provided by the Standard Components, however I can't see the benefit in also creating a Custom Component when the behaviour of the standard component is just fine.
    Thanks,
    Damian.

    It all depends on what you are trying to accomplish. Generally speaking if all you need is for the user interface output to be changed then a renderer will work just fine. A new component is usually made in order to provide some fundamental change in server side functionality not related to the user interface. - Ponderator

  • Creating an HtmlCommandLink in a Custom Component

    Hi,
    A simplified version of my problem is as follows: I have created a custom component that delegates to a renderer. Within the renderer I create an instance of the HtmlCommandLink class to which I want to assign an action with the setAction method. However, when I try doing this with the line:
    link.setAction(Util.createConstantMethodBinding("success"));
    The page renders but the link does not work.
    or:
    MethodBinding vb = context.getApplication().createMethodBinding("success", null);
    link.setAction(vb);
    I get an exception.
    I have set the navigation rule in my faces-config file for "success".
    I am new to JSF and so I might be doing something stupid or missing the point somehow but I want to be able to create HtmlCommandLinks within a custom class rather than from a tag on the page.
    Any help appreciated,
    Barney

    can you please post your exception as well as your JSP page.
    Thanks
    -Jayashri

Maybe you are looking for