Inaccessible, the "myPage" target returned null

Hi all
I use Jdeveloper 11.1.1.0
I have a page in adfc-config, and when I run my application I have this error:
Cause first of ServletException.
javax.el.PropertyNotFoundException: inaccessible target, 'myPage' returned null
at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:259)
at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)

What is the problem?

Thank you

Andrea

Andrea,
We cannot say without any knowledge on your page.
All I see is that you are referencing a myPage property somewhere in your page that is not present in every bean or binding.
Search for my page and check if the bean is present.

Timo

Tags: Java

Similar Questions

  • Dependency injection and inaccessible target return null

    Hello
    I tried a simple code to jsf 2.
    That's
    Here's the jsp
    -----
    < h:form >
    < h:inputText value="#{MBTest.thePerson.name}"/ >
    < h:commandButton value = 'submit' action = "#{MBTest.action}" / >
    < h:messages / >
    < / h:form >
    -----

    Here's Managed bean MBTest
    -----
    @ManagedBean (name = "MBTest")
    @RequestScoped
    public class MBTest {}

    @ManagedProperty (value = "#{thePerson}")
    private person thePerson = null;

    public MBTest() {}
    }

    public person {} getThePerson()
    Return thePerson;
    }

    {} public void setThePerson (person thePerson)
    this.thePerson = thePerson;
    }

    {} public void action()
    System.out.println (thePerson.GetName ());
    }
    }
    -----
    This is the Person class
    -----
    public class person {}

    private String name = null;
    private int age = 0;

    public int getAge() {}
    return age;
    }

    public void setAge (int age) {}
    This.Age = age;
    }

    public String getName() {}
    return the name.
    }

    public void setName (String name) {}
    myIdName = name;
    }
    }
    -----

    But once this completed page opens (Please note that "thePerson" managed bean instance is not instantiated, just the managed property has been declared). When the button is pressed, it gives me the error of followuing
    -----
    /index. XHTML @12,60 value = "#{MBTest.thePerson.name}": unattainable target, "thePerson" returned null "
    -----
    Could you please tell me why?

    Off topic:
    Where the code tags? I can't find it here.

    as far as I can see, your person class is not a managed bean. I expect an annotation @ManagedBean (name = "thePerson") on it. If you do not a managed bean, JSF doesn't know it exists.

    If you don't want a person as being a managed bean, then simply yourself create an instance of your class MBTest.

    private Person thePerson = new Person();
    
  • The body of the message to return null on os 4.5.0.18. When you use getBodyText()

    Hi all

    Today, when I debug my application on 4.5.0.18 device 8130.

    I implements FolderListener, when new messages coming,.

    I grap message object and want to analyze the body of the message to check if the message is what application you are looking for.

    Hoever, when I call Message.getBodyText (). It returns null.

    In fact, there a lot of message in the body of the message.

    is there any sweet experiencing this problem?

    What is work around?

    Thank you.

    getBodyText() will work on 4.5 If the body is 'plain text '. Otherwise, you will need to get the HTML content of the message and extract the text elements.

    See this article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/How_To _...

  • Some columns of the values of the selected line returns NULL in the table of the adf.

    Hello..

    My version of jdev 11.1.1.5.0

    I have a vision with some columns. This view is mapped to a table of adf with some of the displayed columns. My task is to get the column values selected line (including the values of the column not displayed).
    But I'm certain values such as null, although there are values present when I run the query from the view.
    My code:
    DCIteratorBinding tableVO = ADFUtils.findIterator ("myVO");
    ViewObject voTableData = tableVO.getViewObject ();
    Line rowSelected = voTableData.getCurrentRow ();


    + / / codeto display column and the values +.
    int x = 0;
    * for (the names of the objects: rowSelected.getAttributeNames ()) {*}

    * for (int i = x; i < rowSelected.getAttributeValues () .length; i ++) {*}
    * System.out.println (x + "." + name + "=" + rowSelected.getAttribute (i)); *
    break;
    *}*
    x ++ ;
    continue;
    *}*


    MY table:
    * < af:table value = "#{bindings.myVO.collectionModel}" *.
    * var = "row" rows = "#{bindings.myVO.rangeSize}" *.
    * EmptyText = "#{Bindings.myVO.Viewable?" "{'No data to display.': 'Access Denied.'}". *
    * fetchSize = "#{Bindings.myVO.rangeSize}" *.
    * rowBandingInterval = "0."
    * filterModel = "#{Bindings.myVO.queryDescriptor}" *.
    * queryListener = "#{Bindings.myVO.processQuery}" *.
    * filterVisible = "true" varStatus = "vs."
    * selectionListener = "#{myBean.method_onRowSelect}" *.
    * rowSelection = "single" id = "t1" styleClass = "AFStretchWidth."
    "* partialTriggers =": sbcClose: sbcOpen: socWarehouse. "
    * inlineStyle = "height: 217px;" / > *.


    Thank you

    Question: the attributes are not null in the DB?
    The attributes are part of the past of the query select?
    And they are part of the binding of the tree?

    Timo

  • Goal unattainable '&lt; beanInstanceName &gt;' returned Null

    Hi all
    I attend ADF of Oracle University training. Today is the last day of training. I'm having some problem with running a simple application and could not get the right answer for the sub question.

    Created a Fusion WebApplication 'Test' with model and ViewController project.
    Created a ManagedBean "TestBean", Taskflow 'TestFlow', page Jsff in taskflow 'TestJsff' and a 'TestJspx '.
    Recorded the TestBean with Taskflow in the request scope.
    Created a property String name = 'Ram' in Bean managed with the accessor of the property.
    Created an outputText component the TestJsff and set the value property to "#{requestScope.TestBean.name}".
    Dragged the TestJsff Taskflow and TestFlow to TestJspx.
    Running the page TestJspx and I see the mistake 'Inaccessible TestBean Target returned null.'

    I don't know what to do?

    Thanks in advance...

    Rajdeep

    It is a common mistake with EL.
    The problem is that #{requestScope.Beanname.attribute} refers to only the objects (beans) in memory, but do not create them when they aren't there. So you get a NPE if you are referring to a bean the first time (when it is not instantiated already). This is true for all scopes in JSF (request, session and application).
    Other scopes added by the life cycle of ADFrc (view, pageflow and backingbean) behave different due to the extended ADFrc controller. The controller looking for these special glasses and manages (for example to create them the object if it is not there).

    Frank Nimphius recorded a screen expressed about common mistakes using ADF. If you want, you can watch it here:
    http://download.Oracle.com/otn_hosted_doc/JDeveloper/11gdemos/classic_api_mistakes_part2/classic_api_mistakes_part2.html

    Timo

  • Hash table returns null

    It's the stumping me. I add a key and a value in a hash table, pass in the key and retrieve the value. Basic enough, but when I go to retrieve the value a second time (after the restart of the application), it returns null.

    If it isn't exactly the code that would be the basic scheme:

    class A
    {
         private static Hashtable table = new Hashtable();
    
         public static Object getObject(Class clazz)
         }
              return A.table.get(clazz);
         }
    
         public static void setObject(Class clazz, Object obj)
         }
              A.table.put(clazz, obj);
         }
    
         //Code stuff...
    }
    
    class B
    {
         public static void main(String[] args)
         {
              A.setObject(C.class, new C());
              Object obj = A.getObject(C.class); //This works
         }
    
         //Code stuff...
    }
    
    class C
    {
         //Code stuff...
    }
    

    What happens on the 9550 Simulator and is fixed after restarting the Simulator but work always and only the first time through. If the app is closed, then reopened, then it returns null, even if the hash table was always the same items.

    Ah. When you run the application a second time, he rebuilt serializers to persistent store. Unfortunately, your objects of the class are new instances, so that they cannot be used as persistent hash keys. I suggest you use class names as keys rather than objects of class themselves.

  • Debugging inaccessible FacesException:Target, 'bean' returned null

    Hi all

    Jdev: 11.1.1.7.1

    We have a living ADF application that worked very well until installing a recent where a flow is the break with the message "inaccessible FacesException:Target, 'bean' returned null. It works very well in our UAT and our production environment is clustered.

    StackTrace

    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: javax.faces.FacesException, msg=#{pageFlowScope.xyzBean.showCaseDetails}: Target Unreachable, 'xyzBean' returned null
    Supplemental Detail    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:417)
    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:479)
    at com.wellsfargo.common.view.WFExceptionHandler.handleException(WFExceptionHandler.java:57)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._handleException(LifecycleImpl.java:1380)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:211)
    .....
    ..
    ## Detail 0 ##
    javax.faces.FacesException: #{pageFlowScope.xyzBean.showCaseDetails}: Target Unreachable, 'xyzBean' returned null
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
    at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
    at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:280)
    

    Guidance on how to debug what appears not a problem with scope as our UAT works very well.

    We were finally able to reproduce the problem in our local instance.

    Regarding the cause, the view behind the UI object, the research doesn't have the right keys. As a result, selection on the table was selecting two rows on the search results. By clicking on the commandlink, it seems that two events of Action are put in queue and after that the first action event navigates successfully, the second is pulled and fails.

  • Impossible to extract the LONG typed values; always will return null.

    I'm having a problem with ODP.net access to types of data LONG. I can't seem to find any way to access the data, it always comes back as an empty string - even when the same query is run in sqlplus or Developer SQL (from the installation of the client, hit the same user on the same target database) returns non-null results.

    My specific task is to strengthen our source control, but I can't retrieve the SEARCH_CONDITION values of the... ._CONSTRAINTS views.

    I reduced the tests to the following code:

    Sun DB = "~ a connection string works ~ ';
    OracleConnection conn = new OracleConnection (DB);
    Conn. Open();
    OracleCommand cmd = new OracleCommand ("select SEARCH_CONDITION from DBA_CONSTRAINTS where OWNER = 'SYS' and TABLE_NAME = ' UNDO$ ' and CONSTRAINT_TYPE ="C"", conn ");
    OracleDataReader dr is cmd. ExecuteReader();

    While (Dr. Read
    {
    String s1 = dr ["condition_de_recherche"]. ToString();
    String s2 = Dr. GetValue (0). ToString();
    String s3 = Dr. GetString (0). ToString();
    OracleClob clob = Dr. GetOracleClob (0);
    BLOB OracleBlob = Dr. GetOracleBlob (0);
    }


    None of the different types of data seem to help, all attempts at string returned as an empty string and attempts to clob/blob rise casting errors. It's probably worth noting that 'dr ["condition_de_recherche"] is DBNull' is set to false. It is not simply to retrieve a null and converted to an empty string.

    Please don't forget that it's hitting the SYS user, I just assumed that more people have a database with a SYS user installed as our particular schema :). I'm running a 10.2.0.4 hit a 10.2.0.3 installation of the client server.

    Any ideas? How can I get my check from the conditions of restraint via ODP.net?

    Hello

    Did you try to settle InitialLongFetchSize?

    Greg

  • DataBind method call returns null in the WebCenter content filtering

    Hello

    I got code that has a problem and I am new to the WebCenter content and filters that can be added. We have a FileNameFilter class that begins with the code

    / public class CWEFileNameFilter implements FilterImplementor {}

    public CWEFileNameFilter() {}

    Super();

    }

    public int doFilter (workspace workspace, DataBinder dataBinder,

    ExecutionContext executionContext) throw {DataException

    Service string = dataBinder.getLocal ("IdcService");

    ....

    }

    }

    However, service is sometimes return null and then filter throws a NPE.

    My questions are:

    (1) can we explain what dataBinder.getLocal ("IdcService"); is done and why it might come back as null

    (2) anyone can provide links to documentation that explains the filters and a little more on the object DataBinder as the JavaDoc is not much help.

    Thank you
    Marc

    Hi Marc,

    Below the code will give the name of the service for which the filter is implemented LocalData

    Service string = dataBinder.getLocal ("IdcService");

    for example below

    http://localhost:16200/cs/idcplg? IdcService = DOC_INFO_BY_NAME & dDocName = 1111111 & IsJava

    This example displays the entire response including localdata data and results that are created in the execution of the service. Here is the code snippet

    LocalData @Properties

    DocUrl =https://localhost:16200/cs/weblayout/groups/secure/documents/test/mhdk/mjg1/1111111.pdf

    IdcService = DOC_INFO_BY_NAME

    If String = dataBinder.getLocal ("IdcService") service; Service = "DOC_INFO_BY_NAME."

    Under blog will give an idea about the filter but the best place to learn or start is "The Definitive Guide to Stellent Content Server Development" by Brian Huff

    http://www.redstonecontentsolutions.com/technical-blog/UCM-service-handlers-and-javafilters

    Also, I recommend reading ' WebCenter Content Services Reference Guide '

    http://docs.Oracle.com/CD/E23943_01/doc.1111/e11011/TOC.htm

    Kind regards

    Amol Germain.

  • The search returns 'null' on the first search only

    HR 8.0.2.208

    Air Navigator help

    When our help is installed on a clean machine, the first time that you are looking for, it returns "null".  Then subsequent searches are functioning normally.

    Anyone has any idea what this could be?  I don't want to discourage users on their first try.

    Thank you!

    Hello

    Please, try the solution below and see if it works for you or not. Output Browser Based AIR support.

    Now open the generated output folder and open the whfhost.js file in the Notepad application. Look for the following strings in the file. you need to replace this function

    function Query()
    {
    gbAIRSearchString = goOdinHunter.strQuery;
    g_CurPage = 1;
    context = new HuginContext();
    Context.Reset ();
    Context.push (goOdinHunter.query, goOdinHunter,
    processHunterResult, null);
    Context.Resume ();
    }

    With this new feature

    function isValidType (obj)
    {
    return ((typeof (obj)! = 'undefined') &&(obj!=null));
    }

    function Query()
    {
    gbAIRSearchString = goOdinHunter.strQuery;
    g_CurPage = 1;
    If ((context) isValidType & isValidType (context.aTasks))
    {
    while(Context.aTasks.Length>0)
    {
    Context.Resume ();
    }
    }
    context = new HuginContext();
    Context.Reset ();
    Context.push (goOdinHunter.query, goOdinHunter,
    processHunterResult, null);
    Context.Resume ();
    }

    And try to run the output and see if you stilll faced the problem of null result search

    If this problem is solved, then you can go to the location of the folder C:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\WebHelp5Ext\template_stock and make similar changes to the whfhost.js file located in this folder.

    Let me know if this fixes the problem or not.

    Note: this should work fine for RH8 and RH9 times.

    Thank you

    Praful

    Adobe RoboHelp team.

  • One of the two list boxes other work returns null.

    To the right,.

    I work with an earlier program not created by myself and I have a strange behavior in a list box.  There are two areas of list with the proper functioning and the other indicates a null value in the data.  When you look at the front panel, you will see two boxes on the right side.  One marked 'file for L1 Test' one 'File for L2 Test' is not working.  Even if the path in the filenames in the L2 box fail in the program and when you explore the test line, you get a "" to the probe.  No idea why one works and the other does not?

    Gary Tyrna

    It certainly seems that the control has somehow been corrupted.  Copy work on the non-working and updated the element names and it should start working.

  • Unattainable goal BackingBean returned null

    We have a master application that references libraries (deployed to the logic of the web as WAR files). To do this, we have a deployment descriptor weblogic listing libraries.

    Content in the referenced library is a workgroup that contains a list of identifiers. We use contextual events to pass the id of the current line of the library to the main application. When a button is clicked in the working group id of the current line should be sent to the master application. The ActionListener designates the backing bean editAppWC

    #{backingBeanScope.appWCPubBean.editAppWC}

    It comes when we run the application master we get the error:

    Root cause]] of ServletException.
    javax.faces.FacesException: javax.el.PropertyNotFoundException: inaccessible target, 'appsWCPubBean' returned null
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:486)
    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:670)
    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
    Truncated. check the log file full stacktrace

    Is this what we set in the adfc-config. XML or the faces-config. XML? The adfc-config file. XML library, I can see reference to the managed bean, but that's all. I'm sure that we have to miss a step.

    Any help would be greatly appreciated

    Thank you
    Kylie

    Hello

    You must register bean in stubborn taskflow you use inside taskflow.
    Open taskflow in source view and copy the same code used to save beans in adfc - config.xml to taskflow delimited (inside the tag).

    Jean Lou

  • Problem of FlashVars (root.loaderInfo.parameters returns null)

    Well, before I continue, I must say I looked on the forum and on google and all the different types of code did not work!

    My actionscript Panel, I have this:

    import com.greensock;
    import flash.net.URLRequest;

    import flash.display.Stage;
    import flash.display.LoaderInfo;

    var sujet_no:String is LoaderInfo (this.root.loaderInfo) .parameters ['sujet_no'];.
    var timer: String = LoaderInfo (this.root.loaderInfo) .parameters ["timer"];
    var back_url:String is LoaderInfo (this.root.loaderInfo) .parameters ["back_url'];.
    var handler_url:String is LoaderInfo (this.root.loaderInfo) .parameters ['handler_url'];.

    Then I then call in my functions...

    I also tried:

    var sujet_no:String is LoaderInfo (stage.loaderInfo) .parameters ['sujet_no'];.

    var sujet_no:String = this.root.loaderInfo.parameters ["sujet_no"];

    var sujet_no:String is LoaderInfo (this.root.loaderInfo).parameters.sujet_no;.

    var sujet_no:String = this.root.loaderInfo.parameters.sujet_no;

    and import flash.display.Stage;... But all returns null (undefined). I've been spending my parameters like this:

    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
    <param name="movie" value="http://mySite.com/files/flash/slideshow.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="FlashVars" value="sujet_no=28773&timer=31517703&back_url=http://mySite.com/myPage.aspx?id=50&site_root=http://mySite.com/&handler_url=http://mySite2.com/" />
    <param name="swfversion" value="6.0.65.0" />
    etc. etc.

    P.S. I've been trying for almost 3-4 hours by trying all different methods... :S

    Someone got a working sollution to this? Cause I really can't understand why it won't work... It was so much easier in AS2...
    I don't have much experience in Flash and I'm new to AS3.

    Thanks!

    I see only a flashvars in these two sets of param tags.  Add the second and repeat the test.

  • ConnectionFactory.getConnection () returns null.

    ConnectionFactory connFact = new ConnectionFactory();
            ConnectionDescriptor connDesc = null;
            connDesc = connFact.getConnection(----here goes my url String----);
    

    Hi all

    In the code posted above, number In Line 3, reason for which the null value is returned by the statement "connFact.getConnection (- this is my String url-);"   and he is assigned to the variable 'connDesc '.  Although I was able to login successfully before 2 to 3 hours. but it is now return null...

    Could you please help me?

    Best regards,

    Hi Sir,

    After going through the link provided by you (and a few other sup on internet links), I was able to resolve the issue for now... I write the code for other users help here...

    Thank you for your support...

    Best regards.

    // make a list of transport types ordered according to preference (they will be tried in succession)
    int[] preferredTransportTypes = {TransportInfo.TRANSPORT_MDS, TransportInfo.TRANSPORT_WAP2};
    
    // Create ConnectionFactory
    ConnectionFactory factory = new ConnectionFactory();
    
    // Configure the factory
    factory.setPreferredTransportTypes( preferredTransportTypes );
    
    // use the factory to get a connection
    ConnectionDescriptor conDescriptor = factory.getConnection("http://www.blackberry.com");
    
    if ( conDescriptor != null ) {
    
       // connection suceeded
       int transportUsed = conDescriptor.getTransportDescriptor().getTransportType();
    
       // using the connection
       HttpConnection  httpCon = (HttpConnection) conDescriptor.getConnection();
       ...
    }
    
  • PersistentObject.getContents () returns null after app update

    Hello

    I'm trying to track down a bug with PersistentStore.
    Usually when I update the app I get the getContents() stored content.
    However, something in the code has changed from one version to the other and now getContents() returns null.

    I made sure the id has never changed for PersistentStore.getPersistentObject (id);
    I made sure that we use the same basic sdk (4.3.0)
    I made sure that there are the data stored in the stored hash table

    Currently, it's a hash table - no subclass (even though I know that I should change it to a subclass when it's fixed);

    I wonder if there are any suggestions on what might cause the getContents() return null - or which could result in the PersistentStore have cleared.

    What information is needed, please let me know and I'll paste.

    I found the problem after.

    Classes have begun to obscure differently. If the hash table was still readable, but because he could not read the content of the hash table, he would return null.

    It was unexpected, because if you have a custom class persisted and you try to read it, you will get the content, but you can't cast. But with the hash table, it does not return the content (uncastable) and it throws no exceptions...

    I hope this helps someone else who has a similar problem.

Maybe you are looking for