Why do I get this error when specifying a parameter from the URL?

Hello,
I am trying to "install" a parameter in a page, so that it's value can be specified in the URL and a VO updated according to this value.
Here's is the page definition file, with an executable and a binding to a method call:
<executables>
<invokeAction Binds="prepareMainMenuView1" id="invokeQuery"
Refresh="prepareModel"/>
</executables>
<methodAction id="prepareMainMenuView1"
InstanceName="AppModuleDataControl.dataProvider"
DataControl="AppModuleDataControl" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="prepareMainMenuView1"
IsViewObjectMethod="true">
<NamedData NDName="param" NDValue="#{param.root_menu}"
NDType="java.lang.String"/>
</methodAction>
if I run the MyMenu application with:
http://127.0.0.1:7101/MyMenu-ViewController-context-root/faces/menu?root_menu=anything
then I get this exception:
ADF: Adding the following JSF error message: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Do you know why? Where do I fail?
I followed the isntruction here:
http://www.jasonsdevelopercorner.com/?p=65
So far I have not been able to read a parameter in a way, do you have any example on how can I use parameters from URL from within a single page in an unbounded task flow?
I worked all the day on this, but with no luck.
Thanks

I solved the problem. The invoked method was not part of the VO, but was part of the AM.

Similar Messages

  • More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library.

    I am able to pick 4 videos from the Photo library in my iPhoneAPP but when i try to pick 5th one it throws an error:
    "More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library."

    Hello Tate r Bulic
    I don't have any idea how to remove this error,can i pick more than 5 videos from the photo library...
    If it's then please help me and gimme idea..Thanks

  • Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    I may have already resolved this issue buy removing the device from my computer and re-pairing it. It is currently working just fine.

  • Why do I get this error when I want to run a test using Ant?

    Why do I get this error when I run the Ant build file?
    Testsuite: JUnit
    Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    Caused an ERROR
    JUnit
    java.lang.ClassNotFoundException: JUnit
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

    Abder-Rahman wrote:
    In the "XML" file, I was giving the name of the test as JUnit ---> <test name="JUnit">Well, do you have a class called just "JUnit" that contains a test?

  • Why do I get this message when going on a website The requested URL was rejected. Please consult with your administrator.  Your support ID is: 1074107325772756576

    why do I get this message when going on a website The requested URL was rejected. Please consult with your administrator.  Your support ID is: 1074107325772756576. I have only experienced this while trying to go on the Michael Kors website. How do I stop this from happening?

    That's a problem on the web server, not on your computer.

  • Can anyone tell me why I'm getting this error when trying to make visibility variables

    I have set these up in previous versions of Illustrator. CS and illustrator 10 worked just fine with Variables. Now I can't seem to switch between data sets. I just keep getting this error when I try to switch from one data set to another.

    I'll start with the permissions and see if it changes the behavior.

  • Why do I get this error when activating my COOLER E-BOOK?

    Have tried off and on for four week to figure this out. When I try to activate my Cooler E-Book I keep getting
    this error  E_AUTO_BAD _DEVICE_KEY. What do I need to do. lease help

    Yesterday ADE excepted & put ebooks on my Literati eReader.....  Today I getting that same code!!    Any ideas???

  • Why am I getting this error when trying to do Image Processor?

    Ok I am using Bridge & Image Processor to add a water mark to multiple photos at a time with my ready made action.  But for some reason I seem to be getting this error message every few pictures?
    I've never had problems with other photo sets doing this before, but it was just recently that it started.
    But it will successfully add the water mark to some of them via the Image Processor

    Actually, my DVD multi-drives are I:\ and J:\, as my C:\ thru H:\ drives are my individual internal HDD's. Even on my laptop, my multi-drive is F:\. I always list my internals in order, and my multi-drives afterwards. In my case, it's simple layout for simple minds. I am also keen on having my internals listed at the hardware level as 0 = C:\, 1 = D:\, 2 = E:\, 3 = F:\ and so on. Once let a builder deviate from this order and it bit me big time - never again!
    Now, you are possibly correct that the D:\ might be the OP's D:\ is the multi-drive, and now some source disc is not in it. To keep this sort of thing from happening, I ALWAYS Copy my Assets to an internal from my externals (usually), my NAS, and from any archive discs. Importing/Opening from a DVD/CD is often asking for trouble.
    Good luck to the OP,
    Hunt

  • Why do I get this error when opening I-Tunes 10.5.2?Internal Error: Could not insert menu bar item..  Error code = 5603

    I just upgraded to Snow Leopard and downloaded the latest version of I-tunes, 10.5.2, but everytime I open I-tunes, i get this error: Internal Error: Could not insert menu bar item.. Error code = 5603
    How do I fix this? Any help would be appreciated.
    Thanks.

    hello Mac.INXS, please [[Clear the cache - Delete temporary Internet files to fix common website issues|clear the cache]] & [[Delete cookies to remove the information websites have stored on your computer|cookies from mozilla.org]] and then try logging into AMO again.

  • Why do I get this error when I try to install Reader XI in Windows 8.1?

    "Error 1303.  The installer has insufficient privileges to access this directory: C:\Program Files (X86)\Adobe\Reader 11.0\Reader.  The installation cannot continue.  Log on as an administrator or contact your system administrator."
    This is my personal home computer.  I have no administrator to contact.  I have gone through all the trouble-shooting suggestions provided by Adobe but I still get this message trying to download Reader XI or X.  I previously had Reader on this computer but it started failing so I uninstalled it and now I'm trying to re-install it.  My antivirus system is Webroot SecureAnywhere and it says there are no problems with my computer.  I'm using a 6 month old Dell computer and System Mechanic also says there are no problems with my computer.
    Any suggestions will be appreciated.

    I have the exact same problems as reported by Vector at the start of this thread.  Running Windows 8, Reader stopped responding, so I uninstalled and tried to reinstall XI, I get Error 1303, with the issue being permissions on that same directory (x86\Adobe\Reader 11.0\Reader).  If I open Explorer and try to navigate to that folder, I see it there under the Reader 11.0 folder, but if I double-click I cannot even open it, I get an "is not accessible.  Access is denied" error.  I checked the Security settings on the Reader 11.0 folder, SYSTEM, Administrators, Users, and TrustedInstaller all have Full Control.  When I go into Advanced and check the box for "Replace all child permission entries with inheritable permission entries from this object" and click Apply, I get an error for the \Reader folder (Failed to enumerate objects in the container.  Access is denied").  I tried deleting the Adobe folder on down, hoping I could just start fresh with the re-install,  but it does not allow me to.  Completely stuck.  Any ideas?

  • Why do i get this error when i run my application which has one Business comp Frame

    I do have one application and a business component frame.
    I followed all the steps of how to create a workspace a project , application and a business component. But my application when it runs gives the following errors.
    This error is from the following statement in the Constructor of Frame
    Frame(){
    jbInit();
    //the above statement executes well
    sessionInfo.publishSession(executeQueriesNow);
    //the above statement gives the error shown below.
    null
    java.lang.NullPointerException
    void oracle.jbo.server.DBTransactionImpl.initTransaction()
    void oracle.jbo.server.DBTransactionImpl.<init>(java.lang.String, java.lang.String, java.lang.String)
    oracle.jbo.server.DBTransactionImpl oracle.jbo.server.DatabaseTransactionFactory.create(java.lang.String, java.lang.String, java.lang.String)
    void oracle.jbo.server.NullDBTransactionImpl.connect(java.lang.String, java.lang.String, java.lang.String)
    oracle.jbo.ApplicationModule oracle.dacf.dataset.SessionInfo._createAppModule()
    void oracle.dacf.dataset.SessionInfo.connect()
    void oracle.dacf.dataset.SessionInfo.openProducerObject()
    void oracle.dacf.dataset.ProducerObject.open(boolean)
    void oracle.dacf.dataset.SessionInfo.publishSession(boolean)
    void package22.Frame1.<init>()
    void package22.Application1.<init>()
    void package22.Application1.main(java.lang.String[])
    oracle.dacf.dataset.DataSourceOperationException: SessionInfo: Application module creation failed; className: MyProject9
    void oracle.dacf.dataset.ProducerObject.open(boolean)
    void oracle.dacf.dataset.SessionInfo.publishSession(boolean)
    void package22.Frame1.<init>()
    void package22.Application1.<init>()
    void package22.Application1.main(java.lang.String[])
    null

    I solved the problem. The invoked method was not part of the VO, but was part of the AM.

  • Why am i getting an error when trying to upgrade from 10.7.5 to 10.9

    when i try and upgrade from 10.7.5 osx lion to 10.9 i get an error, i have 2GB of memory and 144MB of storage. can someone help?

    This would indicate that your MacBook Air does not meet the requirements for Mavericks.
    To install Mavericks, you need one of these Macs:
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later),
    MacBook Pro (15-inch or 17-inch, Mid/Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mountain Lion, Lion, or Snow Leopard v10.6.8 already installed
    2 GB or more of memory
    8 GB or more of available space

  • I always get this error when I try to install the Trial of 'Adobe CS6 Design and Web Premium'

    Exit Code: 15
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW051 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 8 error(s), 0 warning(s)
    ERROR: DW051: Dependency of session payload {1E621A15-CD9F-4543-B3F6-8032B3647A6A} Standard Adobe Flash CS6_AdobeFlash12.0-en_USLanguagePack 12.0 has changed.
    ERROR: DW051: Dependency of session payload {4482EF4A-376B-46DE-9B17-E377232328E0} CoreTech PDF Settings CS6 11.0 has changed.
    ERROR: DW051: Dependency of session payload {4FAB339E-2132-434F-9376-9CD735E4C69C} Standard Adobe Flash CS6 12.0 has changed.
    ERROR: DW051: Dependency of session payload {50F5A7C9-1E43-4860-AED8-7F8722691F17} CoreTech Adobe ExtendScript Toolkit CS6 3.8.0 has changed.
    ERROR: DW051: Dependency of session payload {83463106-DD1C-4FE5-A61C-DF6715472AD4} Creative Suites Adobe Extension Manager CS6 6.0 has changed.
    ERROR: DW051: Dependency of session payload {97BA0109-F6BE-4F50-8904-C19442D7216E} CoreTech Adobe Bridge CS6 5.0 has changed.
    ERROR: DW051: Dependency of session payload {CC006FD6-00EF-46FC-ACA0-7A28EFF44D20} Adobe Web Suite CS6 Adobe Media Encoder CS6 6 has changed.
    ERROR: DW051: Dependency of session payload {CFC3110A-491C-4DBF-A97D-66C567600A2F} Shared Technology Photoshop Camera Raw 7 7.0 has changed.
    Anyone who can help? I am using Mac OS 10.8.2 (Mountain Lion). Thanks.

    From the information available it appears that your install could be conflicting with a previous version or installation.  I would recommend reviewing your installation logs to verify the root cause of your difficulties.  You can find directions on how to review your installation logs at Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html.

  • HT4305 "Update in available with this Apple ID" why do I get this error when my Apple ID is correct

    I restored my phone to the last backup point to see if I could regain a deleted contact. Now I when trying to update apps I get the a over error. How do I correct this?

    Several users are putting up "me too" posts, so it's starting to look like it might be a glitch at Apple's end.  Give it a day or two. I have yet to see an urgent update.

  • Why do I get this error when executing this javascript?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    <code>var firefoxWindow = getWindows()[0];
    var browser = firefoxWindow.getBrowser();
    var doc = browser.contentDocument;
    var elem = null;
    var elems = doc.getElementsByTagName('td');
    for(a=0;a &lt; elems.length;a++){ if( [[elems[a] !== null && elems[a].hasAttributes() <u> true && elems[a].getAttribute('onclick') !== null && elems[a].getAttribute('onclick').toString().match(/doNothing/gim) !== null && elems[a].getAttribute('onclick').toString().match(/Goodbye Wonderful/gim).length &gt;= 0) || (elems[a] !== null && elems[a].onclick !== null && elems[a].onclick.toString().match(/Goodbye Wonderful/gim) !== null && elems[a].onclick.toString().match(/Goodbye Wonderful/gim).length &gt;= 0]]) { elem = elems[a]; } }
    var found = false;
    var window = null;
    for(var i=0; i &lt; firefoxWindow.frames.length; i++) }
    function recursiveSearch(frames){ for(var i=0; i= 0) || (elems[a] !== null && elems[a].onclick !== null && elems[a].onclick.toString().match(/Goodbye Wonderful/gim) !== null && elems[a].onclick.toString().match(/Goodbye Wonderful/gim).length &gt;= 0))) { elem = elems[a]; } } if(elem) else{ if(frames[i].frames.length&gt;0) }}}if(!elem && window.frames.length &gt; 0){ recursiveSearch(window.frames); }var origColor = '';if(elem !== null) elem.style.backgroundColor = 'yellow';}
    </code>
    Using this javascript through jssh to assert that there is a element with an onclick handler that contains the phrase Goodbye Wonderful returns an odd error message :
    Received: uncaught exception: [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: interactive :: :: line 1" data: no]
    I've looked just about everywhere for an answer and none of them have anything to do with what I'm trying to do with this javascript. It works fine in FF 3.6 but when run in the 4.0b1 this causes that weird exception.
    == This happened
    ==
    Every time Firefox opened
    == Updated to FF 4.0b1
    ==
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.0 Safari/534.3

    Sorry but the javascript syntax got messed up a little bit when posted. And jssh was built with 4.0b1 and then I packaged it as an XPI to install as an extension.

Maybe you are looking for

  • Can't do a fresh install on my new MacBook Pro

    I just got a new MacBook Pro and after setting it up, transferring no files, I decide that I actually would have liked to restore Leopard from my Time Machine back up. I try to do this via the Migration Assistant, but it's not working properly and it

  • How to create "SQL user"?

    I'm trying to use MaxDB Database Studio (7.7, db 7.7) to manage tables on the system. However, the existing DB accounts are only SUPERDBA and CONTROL, and with both MaxDB Database Studio only tells me that DBM sessions are possible. For SUPERDBA I do

  • Error message ora-17003

    Hi, I have oracle message ora-17003 when i call stored procedure from java program, the message is like : FDHI_LaunchStoredProcedure uses Oracle Jdbc Driver Query failed java.sql.SQLException: Index de colonne non valide at oracle.jdbc.dbaccess.DBErr

  • Converting DB in archive mode

    hi buddies; I got, three DBs with ASM in Oracle RAC (2 nodes). Two of these DBs are in archive mode, but one of them, no. So, I'm going to convert this one (DATABASE3) in archivemode now. I got the instructions to do this, but still I have some doubt

  • Execute code after Spry region redrawn / added to DOM

    Hi, I'm integrating my Spry event data with a YUI calendar. Everything is working and event dates are highlighted on the YUI calendar.  There is one last thing I wish to do which is to update the YUI calendar with a Spry Tooltip.  The div regions for