JSF Custom ConverterTag Error, always NULL!

Hello all,
The code that I am dealing with is a custom subclass that we created to add functionality to the javax.faces.webapp.ConverterTag class. The purpose is to add Regular Expression search and replace to the converter. Whenever it is run though, we get the following error:
30 Jan 2007 10:32:48,962 ERROR org.apache.myfaces.application.ApplicationImpl - Could not instantiate converter null
java.lang.NullPointerException
at org.apache.myfaces.application.ApplicationImpl.createConverter(ApplicationImpl.java:476)
at javax.faces.webapp.ConverterTag.createConverter(ConverterTag.java:94)
at com.intecbilling.prm.common.RegexConverterTag.createConverter(RegexConverterTag.java:45)
at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:60)
This code used to work, but someone changed something in the environment (not in the code) and now we have no idea what happened. Any ideas would be GREATLY appreciated!

Yes, it is defined with the following:
<converter>
<converter-id>RegexConverter</converter-id>
<converter-class>com.intecbilling.prm.common.RegexConverter</converter-class>
</converter>
There is a custom tag library that was created also as follows:
<tag>
<name>RegexConverter</name>
<tag-class>com.intecbilling.prm.common.RegexConverterTag</tag-class>
<attribute>
<name>pattern</name>
<type>String</type>
</attribute>
</tag>
It is being invoked as follows:
<h:outputText value="blah blah">
<i:RegexConverter pattern="pattern" />
</h:outputText>
Is the RegexConverterTag supposed to include the converter-id in the faces-config.xml file? If this is the case, I cannot understand why the code worked before the last update...
I hope that information helps.

Similar Messages

  • PS CS4 CSXSLibrary: "CSXSInterface.instance" always null

    I was referred to this sub section of the adobe forums for this question:
    I want:
    Start creating my own Photoshop CS4 SWF panel coded with the FlexSDK in FlashDevelop (pure AS3, no flex).
    I have:
    FlexSDK & FlashDevelop
    CSXSLibrary-2.0-sdk-3.4.swc
    Photoshop CS4
    issues:
    whenever I try compile or test my compiled SWF movie in Photoshop I get a null object for the CSXSInterface.instance. This object however is supposed to be the bridge between AS3 and the Photoshop JSX interaction.
    here is a simplified code that causes this error:
    package
         import com.adobe.csxs.types.*;
         import com.adobe.csxs.events.*;
         import com.adobe.csxs.core.CSXSInterface;
         import flash.display.Sprite;
         import flash.events.Event;
         public class Main extends Sprite
              public function Main():void
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              private function init(e:Event = null):void {
                   CSXSInterface.instance.addEventListener(StateChangeEvent.WINDOW_OPEN, creationComplete);
              private function creationComplete(e:Event):void {
    Once I compile the SWF and have it run in the debug Flash Player I get a error message:
    [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.
    And whenever I test the SWF as a Photoshop panel (by copying the SWF file in the plugin../panel folder) I get null objects whenever I try to access it which blocks any associated actions (events, triggers,...).
    I am using CSXSLibrary-2.0-sdk-3.4.swc in combination with Photoshop CS4. Is that library perhaps not suited for CS4? Do I need a older library and if so where can I download it. Most of the libraries seem to be rather difficult to find on the internet anyway - which is a big drag for me.
    The SWC library itself however is just fine added to the library as I can even access the CSXSInterface class itself booth while coding and at runtime. Just the .instance or getInstance() singleton returns always NULL.
    Any insight or input would be greatly appriciated

    I'm having the exact same problem, attempting to make a panel in Flash CS4 to run in Photoshop CS4.
    I've tried CSXSLibrary-2.0-sdk-3.4.swc and CSXSLibrary-2.0-sdk-3.3.swc in the SDK, and the separate CSXSLibrary.swc that's been linked to. None of them work; CSXSInterface.instance is always null when my ActionScript runs in Photoshop.
    All I'm doing right now is creating a single Button component, with a script that attempts to run a test function in Photoshop.
    What's interesting is I can put the ShortcutButtons.jsx and ShortcutButtons.swf from the SDK into Plug-ins/Panels and that works just fine. My JavaScript is essentially the same:
    function TestFn()
         alert("Hello, world!");
         app.documents.add();
    And my ActionScript is as follows:
    import com.adobe.csxs.core.CSXSInterface;
    var btnTest = (root as MovieClip).btnTest;
    btnTest.addEventListener("click", testFn);
    function testFn(event:MouseEvent)
         CSXSInterface.instance.evalScript("TestFn");
    (I've put other test code in the testFn() that confirms that the click event is registered correctly.)
    I link the CSXSLibrary.swc in the "Library path" section of the ActionScript 3.0 settings, and I know it's being linked to because the size of my SWF balloons from 20 kB to anywhere from 50 to 300 kB depending on which library I'm trying.
    What am I missing here...?
    Thanks,
    Dan.

  • JDev 1013, Webservice as Data Control in JSF page returns error

    Hello,
    For a client we are starting a project with Java Server Faces in combination with web services. In order to do some testing we created a web service in PLSQL (with a empno input field and a record output) and deployed this web service on an OC4J container. We then created a (new) JSF project, used the PLSQL web service as a Data Source, and used this Data Source in a JSF page.
    When this JSF page is started an error occurs validation -
    DCA-40007: The value for parameter "empNo" cannot be null..
    The webservice can however be called in the page, the output is shown but the error stays in the page.
    Communication with support gave me a temporary solution
    I've put in the page definition for both the methodIterator (getEmpIter) and the accessIterator (ReturnIterator) the Refresh="Deferred". Now the error doesn't show in the page at startup of the page. Data is presented correctly after pushing the button, though still in the Jdeveloper Embedded OC4J Server Log shows a list of
    ERROR Value for parameter : 'empNo' cannot be null.
    In a multi row Webservice (created by JDeveloper) however i still get this error.
    (1) What caused this error?
    (2) When is the next version of JDeveloper due?
    (3) I am looking for documentation on the following subjects
    (3.1) How a JSF page is rendered by the Oracle JSF implementation
    (3.2) How to read and adjust the JSF page definition, for example the <executables> part
    (3.3) Problem with the extra abstraction layer is that is very hard to find where an error occurs. Is a mechanism/documentation available to find in which JSF fase an error occurs and how to bypass it?
    Regards Leon Smiers

    (1) I think what is happening is that your page calls out to the Web service when you first run it without any parameter. This is why you get the error and also the reason that deffer works to solve this.
    I think a solution would be to have your Web service handle the case of receiving an empty parameter.
    (2) When it is ready :-)
    (3.2) right click the jsf page and choose "go to page defenition" you can then edit it using the structure pane and the property inspector.
    (3.3) you can run in debug mode, the code for ADF will be available when we go production, and with it a lot of more documentation.

  • Custom tag error

    I'm tring to create a new JSF custom tag. my custom tag inherits from another custom tag called tab.
    the tld look like this :
    <taglib>
    <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
    <short-name>actab</short-name>
    <uri>http://jsftutorials.com/</uri>
    <tag>
    <name>actab</name>
    <tag-class>com.ca.accesscontrol.tabs.monolithic.ACTabTag</tag-class>
    <body-content>JSP</body-content>
    <attribute>
              <name>include</name>
         </attribute>
    <attribute>
         <name>name</name>
         <required>true</required>
         <rtexprvalue>false</rtexprvalue>
         <description>Tab name to be displayed on this tab.</description>
         </attribute>
    <attribute>
              <name>id</name>
         </attribute>     
    </tag>
    </taglib>
    I'm tring to use the custom tag in the jsp, when I specify the attrbute name I get the following error:
    monolithic.jsp(14,13) Attribute name invalid according to the specified TLD
    when I remove the name attribute from the jsp I get the following error :
    monolithic.jsp(13,10) According to the TLD attribute name is mandatory for tag actab.
    does anyone have an idea about what the problem is ?

    a bit more info required I think.
    Is there more to that exception than you posted - coming from your code?
    Maybe you can put try/catch code in your Tag source file to catch and print any exceptions that occur.
    Beans property conversion would indicate that it has translating one type to another.
    What attributes does this tag take. Should width be an integer - and 96% causes it an error?
    Lets see the tld file, and maybe some basic source?

  • HostComponent always null :(

    Hey guys,
    I am declaring and adding a new Skin programmatically from actionscript like so...
    var custom:MyCustomComponent = new MyCustomComponent();
    var skin:MySkin = new Skin();
    custom.addElement(skin);
    on MySkin I have an event handler for creationComplete()
    but when creationComplete fires on the skin, the hostComponent is always null!
    If I instead set the Skin via the custom components skinClass property in mxml I dont have this problem.  Can anyone tell me what I am doing wrong, thank you!

    When you call "custom.addElement(skin);" you aren't actually setting the skin of "custom" to "skin".  You must use use the skinClass property to do this.
    What you are actually doing is just inserting that object as a child of the container.  This is not much different than doing something like "custom.addElement(new Group())"
    So hostComponent is null, because the skin isn't attached to a host component.

  • Customizing Controller Parameters are null. Please check Default Profile.

    Hello,
    since last week we get the following error when trying to select an image or intenal link on an xml form (any xml form).
    Customizing Controller Parameters are null. Please check Default Profile.
    And this is the full trace obtained:
    com.sapportals.wcm.WcmException: Customizing Controller Parameters are null. Please check Default Profile.
         at com.sapportals.wcm.repository.service.layout.cm.customizing.CustomizingController.getInstance(CustomizingController.java:163)
         at sun.reflect.GeneratedMethodAccessor403.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:331)
         at com.sapportals.wcm.repository.service.layout.customizing.CustomizingControllerFactory.createCustomizingController(CustomizingControllerFactory.java:141)
    The layout set in case of a document selection is ConsumerSelectorWithUpload_EP and in case of an image is ConsumerThumbnailSelector_EP. In both cases the Layout Set seems correct, because when I use them in an iView it works correctly.
    I don't think it is a problem of the xml form, because we haven't change anything of them and suddenly this error started to appear.
    Has anybody had the same error?
    Thank your.
    Regards.
    Mireia Romo

    Hello Srinivasa,
    from a quick scan of the message it seems to be a rendering error rather than a TREX error. But I am not sure. You may need to log a support message to SAP.
    Before you do that, check the SDN postings by user "Jochen Goenninger" they contain the most common configuration errors in EP-KM to TREX communication.
    Regards, Karsten

  • Custom 404 Error page in Sharepoint Foundation 2013

    Hi all,
    How to point to the custom 404 error page in Share Point Foundation 2013. I have seen some links but not working for me. Please me let me know if you have any suggestion.
    Thanks.

    Can i create any page and pass the page url in it,like if i have created a page as custom404.aspx under pages library so do i need to do like this?
    $spsite = Get-SPSite "<http://sharepoint:1000/>"
    $spsite.FileNotFoundUrl = "<pages/custom404.aspx>"
    is this the correct way or i am doing incorrectly??
    please suggest

  • How can I set up a custom 404 error page on OSX Server?

    I moved my web site to a local server and changed the structure drastically.  Unfortunately I am getting hits for information that was on the old server which I haven't put back yet.  I'd like to set up a custom 404 Error Page to let people know what's up.  In server.app I can set up a 500 error page but not a 404 and when I tried hand coding it into the sites .conf file I really messed things up.  It took me a while to get that all corrected!
    Thanks for any advice,
    Bill W

    Found it!
    Under the web server Advanced Setting set "Allow overrides using .htaccess" then create an .htaccess file in the root directory with the line:
    ErrorDocument 404 notfounderror.html
    Use whatever HTML/PHP/etc. document you have created.

  • How do I create custom HTTP Error Pages for a Weblogic Server

    I need to be able to display custom HTTP error pages such as a 404 from my Weblogic
    Server when my web application is not deployed.
    Is this possible?
    I have seen some suggestions about putting something like:
    <error-page>
    <error-code>404</error-code>
    <location>Error404.jsp</location>
    </error-page>
    in the web.xml for my web application but I can't see how that would work since
    the web application would not be deployed. I need to set these messages at the
    server level.
    Any help would be appreciated!
    thanks

    Your CategoryAxis id="ha_ccm" uses categoryField="period", and this is the label for the your series (i.e. "Quarter 4/2010"). You cannot have multiple categoryFields for the CategoryAxis; it can only use one data field for the labels. You can use data tips and/or label functions to show the individual series' values on the columns.
    Also:
    Your labelField in the ColumnSeries are set to a ColumnSet name instead of a field name in your dataprovider.
    Font must be embedded if you set ColumnChart.showLabelVertically="true".

  • Custom tool error for COMexception: The report application server failed.

    hi there,
    i am using crystal reports for the last one year onwards, i don't get any errors till know. Yesterday when i modified some information in 40 reports. out of these reports 34 reports are successfully build, but for the remaining six reports the code is not generating.
    Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The Report Application Server failed
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)
       at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"
    i am not understanding why it is getting for me, Please help me

    Hello,
    Whoever wrote the CustomCodeGenerator will have to help you with this one. We know nothing about the underlying code they are using and therefore can't determine the cause.
    Appears the error is it can't even load the report so there is something wrong with the workings. Open the report again in CR Designer and Verify Database and then check the changes you did. Something is not right or the DB driver their application is using does not match with what you are using.
    Don

  • Custom 404 error page only works 75% of the time

    I have made custom HTTP error pages for my app and they work for Mozilla, Opera and Firefox but IE seems to have its own personal 404 error page.
    Anyone know how to make IE work and play well with others and display the custom 404 page like the other 3 browsers do? I did clear the IE cache, twice.
    The environment is Tomcat 5.0.19 (stand-alone, no IIS) running on Window Server 2003 Enterprise
    Thanks for your help!
    Will

    You got to love microsoft products huh. Microsoft has turned on its friendly error pages. Unfortunately, to fix this, you have to have your clients modified their browser settings. Inside the IE browser, do the following:
    1. From menu choose tools->internet options
    2. Choose the advanced tab
    3. Uncheck the checkbox that says "Show friendly HTTP error messages"
    That will do it for ya.

  • NewDate always null in CalendarLayoutChangeEvent ??

    I have this simple DateChooser config in flex sdk 2.0 beta 3
    and the property newDate of the event CalendarLayoutChangeEvent is
    always null (regardless of chosing a date) in my method
    changeDate(event), see below.
    I don't know, but maybe this is a bug, or do I do something
    wrong, or maybe can reproduce this ?
    Cheers,
    Ed
    <mx:DateChooser width="100%" id="DatePicker"
    visible="false"
    cornerRadius="2" borderColor="#c0c0c0" themeColor="#878ffc"
    fillColors="[#FAFCFD, #FAFCFD]" showToday="true"
    showEffect="FadeDate"
    dragEnter="doDragEnter(event);" dragDrop="doDragDrop(event)"
    change="this.changeDate(event)"
    mouseMove="dragIt(event)" doubleClick="dblClickDate()"
    doubleClickEnabled="true"
    />
    The method changeDate:
    private function
    changeDate(event:CalendarLayoutChangeEvent): void {
    trace("[change date], calendar event: " + event);
    if (event.newDate != null {
    ..... do something

    It does work
    <mx:Script>
    <![CDATA[
    import mx.events.CalendarLayoutChangeEvent;
    function runTests(event:CalendarLayoutChangeEvent) {
    textResult.text= event.type + " event Triggered, ";
    textResult.text+= "target newDate " + event.newDate;
    ]]>
    </mx:Script>
    <mx:DateChooser id="mydatechooser"
    change="runTests(event)" />
    <mx:TextInput id="textResult" />

  • ADF: use of view link Accessor in Entity Object = always null?

    Hi,
    JClient 9.0.5.2, adf model.
    I would like to use the view link accessor method in the master EO to retrieve detail EO values and the view link accessor method in the detail EO to retrieve master EO values.
    Detail Rule:
    In the detail EO an attribute is derived from an attribute of the master EO: detail attribute = master attribute.
    Master Rule:
    In the master EO an attribute is derived from the detail EO: master atribute set to 0 if detail EO exist else set to 0.
    Tables:
    Table Master => MasterEO => MasterVO
    - masterPK (not updateable)
    - masterField (not updateable)
    - hasDetailsFlag
    Table Detail => DetailEO => DetailVO
    - detailPK (not updateable)
    - masterPK => foreign key (not updateable)
    - masterField (query only)
    MasterDetailLink based on foreign key.
    In link wizard I asked for the generation of following accessors in the source & destination Entity Objects:
    In DetailEO accessor name: RetrieveFromMaster
    In MasterEO accessor name: RetrieveFromDetail
    In the DetailEO, I asked for the generation of the DetailEOImpl file, accessors and create method.
    As wriiten in the file, before the create method:
    ** Add attribute defaulting logic in this method. **
    I tought this is the place to retrieve the master attribute:
    The code:
    MasterVORowImpl masterVO = getRetrieveFromMaster();
    if (masterVO == null)
    System.out.println("MasterVORowImpl masterVO create NNNNNNNNNNNUUUUUUUULLLLLLLLLL");
    The masterVO is always null?
    I suppose I didn't understand something, my guest is that ViewObjects may not be used for default logic?
    I know how to implement those rules in the database with triggers.
    I think that the data I need for implementing those rules exist somewhere at the ADF level so retrieving the data from the db is not necessary?
    Could somebody give some clues?
    I didn't find a similar example in the Business Rules in BC4J document.
    Your help will be appreciated
    Frederic

    Hi,
    Detail Rule, copy attribute value form master.
    In DetailEOImpl:
    protected void create(AttributeList attributeList)
    setAttribute(MASTERFIELD,this.getMaster().getMasterField());
    super.create(attributeList);
    Master rule, set flag to 0 if no details else set to 1.
    In the MasterEOImpl added method to check if detail row exists based on Row Iterator => no db retrieval?
    This method also sets the flag accordingly:
    protected void checkHasOtherDetails()
    oracle.jbo.RowIterator ri = this.getRetrieveFromdetail();
    ri.last();
    // last() must be called else hasNext() returns true even on last delete ???
    Number hasDetails = Constants.NUMBER_NO; // = 1
    if (ri.hasNext() || ri.hasPrevious())
    hasDetails = Constants.NUMBER_YES; // = 0
    if (!getHasDetailsFlag().equals(hasDetails)) {
    this.setHasDetailsFlag(hasDetails);
    I call this method in the remove method of the detailEOImpl:
    public void remove()
    this.getRetrieeFromMaster().checkHasOtherDetails();
    super.remove();
    To set the flag I added follwoing code in the create method of the DetailEOImpl:
    protected void create(AttributeList attributeList)
    setAttribute(MASTERFIELD,this.getMaster().getMasterField());
    **** ADDED ***
    Number masterHasDetailsFlag = getRetrieveFromMaster().getHasDetailsFlag();
    if (!masterHasDetailsFlag.equals(Constants.NUMBER_YES)) {
    getRetrieveFromMaster().setHasDetailsFlag(Constants.NUMBER_YES));
    super.create(attributeList);
    One more question:
    Is there a danger of calling last() on row iterators in create/update/remove methods of *Impl files?
    => current row changed => any effect on display in JPanel
    Thanks
    Frederic
    PS All variable/method/class names have been manually renamed in this code so some small syntax problems may exist.

  • Text field with autocomplete is always NULL

    Greetings,
    I am new to Apex so I am sure I am missing something obvious. I am using Apex 4.0.1 What I have done is created a form on a table page and added a new text with autocomplete page item. This new text field does not correspond to a column in the table. What I am trying to do is allow the user to use the autocomplete item to make a selection. Then when the user submits the page, I want to use the substr function on the value in the autocomplete field and populate one of the table fields. I have tried using PL/SQL functions in validations and computations but I have found that the value of the autocomplete field is always NULL. I can access the other fields that are associated with a table column fine. It must be something simple. Thanks for your help.
    Page Items
    P2_F1  - text field with auto complete. Not associated with a table column
    P2_F2 – Text field. Is associate with a table column
    This is what I want to do:
    Entered this in a validation
    begin
    if :P2_F1 is not null then
       :P2_F2 := substr(:P2_F1,1,5);
    end if;
    end;Thanks again
    Edited by: LRM on Jan 22, 2011 5:25 PM

    hi,
    The PL/SQL function can also work when you choose Computation point: After submit.
    For reading You can refer APEX documentation
    Application Builder User's Guide: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/toc.htm
    To debug application:
    While you run your application in development environment, you can view debug option on footer .
    Click on it to on debug and again click to debug off.
    To view debug result click on View Debug option.
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Can't instantiate JSF Custom Component

    I'm hoping some of you expert (or at least seasoned) JSF custom component developers might be able to lend some insight into the "Can't instantiate class" problem. I have a custom component which extends another component (which happens to be Oracle ADF's panelGroup), and I've verified that everything is in place:
    1. Component class uses correct component type referenced by faces-config.xml and tag class
    2. Renderer type referenced in faces-config.xml matches that of the renderer type in component class
    3. There is a default constructor (no args) for the component class, which also sets the renderer type
    4. TLD with tag is correct
    All classes are definitely in the classpath, as I have another custom component in the same packages which loads and is used just fine.
    Any ideas would be appreciated.
    Thanks,
    Shawn Bertrand
    Tyco Electronics

    So, is no one else having any problems when using the new JSF components from Java Studio Creator 2 in their existing projects? I can make simple projects in Creator and run them on PointBase and Tomcat and can deploy and run from Eclipse using MyEclipse but I cannot get my existing project working and I am wondering if their is some sort of conflict between the new JSF components and legacy Struts stuff in that project or if perhaps Spring is someone interferering. Kind of at a loss right now...

Maybe you are looking for

  • Itunes 7 problem

    Ever since I upgraded to itunes 7, my ipod will not work with itunes. It is recognized in windows and itunes. It says my ipod is corrupt and needs to be restored. I hit the restore buttton and after awhile it has an unknown error 1418 saying it canno

  • Dissapearing Menubar Items

    Hi all My Wife and I have a seperate account each on my Mac. We have both been having this problem for a couple of months now. Every now and then if we Restart or Log out/in again our menubar items such as the time, Bluetooth, Keychain screen lock, D

  • How to get update FCE 4.0.1 (I have 4.0) even "Software update" said OK

    Why I can't update my FCE to 4.0.1. I bought version 4.0. I have a lot of trouble to "Read an transfert" AVCHD files from Canon HFS 100. "No data" message. And the file is readable on the control window... Somebody have a solution... ? TK's a lot.

  • Flash Player Installer only displays Adobe logo

    I'm trying to install flash (reinstall more like) but I keep running into this problem. The installer downloads, I hit run, and it just stays there blank gray for a few seconds and then shows the Adobe logo in one of the corners. Pic. (Sorry for size

  • Production order confirmation issue

    Hello, When we are trying to reverse the production order 262 happened , 102 didn't occurred. No COGI update Afterwards we didn't confirm the order as well as we cannot reverse the existing order also. Some data inconsistency happened.  Can anyone re