getAttribute after invokeMethod in processRequest throws NullPointerExcepti

Hello:
I appreciate your time to help me with this problem. I'm puzzled as to why this error is thrown. Pointers or ideas will be certainly useful. Please, share your ideas.
=========
Requirement:
=========
My basic page (custom OA Framework page) is called from another page with a parameter EstimateId. You use this parameter, I invoke a custom method "initHeaders" in processRequest executing the query on the view object wldssLabelEstimateHeadersVO. This query is performed on the base table that will return me a number of fields/columns based on the given primary key estimateId. As soon as I invoke the "initHeaders" method, I need a lot of the values returned by the query because only based on these values, I need to display the page properly.
(For example) According to the type of estimate code, several elements/fields on the page are not appropriate. So, I have to hide those. When they are appropriate, I have to show them. Another area is "Die indicator. If it has a specific string value ("Die required'), I need restore a region called"dies. " And so on.

======
Problem:
======
I coded as follows in my page controller. After that I invoke the "initHeaders" method, if I do a findViewObject on the original Version and do a getAttribute, I should have the value in the EstimateTypeCode attribute. Fix? But he throws a NullPointerException.

Here is the code:
-------------------------------------------------------------------------------------------------- Code Begins -----------------------------------------------------------------------------------------------------------
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule (webBean);
String EstimateId = pageContext.getParameter ("EstimateId");
If ((EstimateId! = null) & & (!("".)) Equals (EstimateId.Trim ()))
{
[Serializable] param1 = {EstimateId};
am.invokeMethod ("initHeaders", param1);
OAViewObject vo = (OAViewObject) am.findViewObject ("wldssLabelEstimateHeadersVO1");
String estTypeCode = (String) vo.getCurrentRow () .getAttribute ("EstimateTypeCode"); -<-this line up the NullPointerException because vo is null
[Serializable] param2 = {estTypeCode};
am.invokeMethod ("initEstimateActions", param2);
}
-------------------------------------------------------------------------------------------------- Code Ends -----------------------------------------------------------------------------------------------------------

I don't know what I'm missing. I checked for typos, correcting the names VO several times and am exhausted. Help please!
Kind regards
Muzammil

Muzammil

Please go through the link below and check my answers here. If you are facing problems. Please post your AM, CO and complete VO codes.

Re: Add lines to the table of results

Thank you
AJ

Tags: Oracle Applications

Similar Questions

  • PhoneLogs.addCall (Journal CallLog) throwing NullPointerException in OS 5.0?

    Hi developers, RIM

    I found phonelogs.addcall (Journal CallLog) seems to throw NullPointerException in Simulator for OS 5.0 beta. Could someone confirm this?

    Same error occurs in swapCall() as well.

    You can report bugs using the developer Issue Tracker.  Please refer to this post: http://supportforums.blackberry.com/t5/Java-Development/Developer-Issue-Tracker/td-p/271768

  • The assignment of focuschangelistener to BitmapButtonField throws NullPointerException

    Hello

    When you set focuschangelistener to BitmapButtonField, it throws a NullPointerException.

    Someone knows why?

    Ex: myBitmapButtonField.setFocusListener (myFocusChangeListener);

    Thank you very much

    I made a big mistake!

    I forgot to instantiate this particular BitmapButtonField...

    Sorry for the inconvenience!

  • Javadoc:aggregate throws nullpointerexception

    Environment:

    • Java doc 2.9 .1
    • Java version: 1.7.0_51
    • Maven 3.3.3
    • 1,522 Jenkins

    One of the projects build recently defeated the javadoc:aggregate step.


    Stack trace:

    org.apache.maven.lifecycle.LifecycleExecutionException: cannot run org.apache.maven.plugins:maven goal-javadoc - plugin:2.9.1:aggregate (by default-cli) on the XXX project: an error has occurred in the generation of report JavaDocs:

    Exit code: 1 - / var/jenkins/workspace /... / XXX.java:4: error: package org.springframework.util does not exist

    Import org.springframework.util.Assert;


    .. bunch of other errors...


    java.lang.NullPointerException

    at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:83)

    at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:44)

    at com.sun.tools.javadoc.ClassDocImpl.superclassType(ClassDocImpl.java:496)

    at com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:459)

    at com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:497)

    at com.sun.tools.doclets.internal.toolkit.util.ClassTree.processType(ClassTree.java:194)

    at com.sun.tools.doclets.internal.toolkit.util.ClassTree.buildTree(ClassTree.java:146)

    to com.sun.tools.doclets.internal.toolkit.util.ClassTree. < init > (ClassTree.java:91)

    at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:123)

    at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)

    at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)

    at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)

    at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)

    at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)

    at com.sun.tools.javadoc.Start.begin(Start.java:167)

    at com.sun.tools.javadoc.Main.execute(Main.java:59)

    at com.sun.tools.javadoc.Main.main(Main.java:49)


    Additional information:

    • The project's POM and pom base have not been updated recently, in the past - he was able to generate javadoc:aggregate.
    • If I changed the switch of javadoc for javadoc:javadoc, the documents are generated successfully. This problem occurs if we use the javadoc:aggregate switch.

    > mvn clean install javadoc:aggregate (this fails with NPE error)

    > mvn clean install javadoc:javadoc (this works)


    The question seems to be similar to Javadoc aggregation NullPointerException

    However, it is unclear what the resolution was.


    Any idea on how to solve this issue?

    Thank you in advance.

    The error was confused, I thought it was a problem with javadoc.

    We have updated the project dependency in the project, now it works.

  • sqlcl 4.1.0.15.106.1020 tnsping throws NULLPointerException

    While playing with sqlcl 4.1.0.15.106.1020, I can reproduce this behavior:

    berx$ ./sql /nolog
    
    
    SQLcl: Release 4.1.0 Release Candidate on Thu Apr 16 22:05:22 2015
    
    
    Copyright (c) 1982, 2015, Oracle.  All rights reserved.
    
    
    
    
    SQL> tnsping
    Apr 16, 2015 10:05:27 PM oracle.dbtools.raptor.newscriptrunner.ScriptExecutor run
    SEVERE: oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.ping(PingCmd.java:69)
    java.lang.NullPointerException
      at oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.ping(PingCmd.java:69)
      at oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.handleEvent(PingCmd.java:53)
      at oracle.dbtools.raptor.newscriptrunner.CommandRegistry.fireListeners(CommandRegistry.java:380)
      at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.run(ScriptRunner.java:197)
      at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:269)
      at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:180)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.process(SqlCli.java:250)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.processLine(SqlCli.java:257)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.startSQLPlus(SqlCli.java:682)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.main(SqlCli.java:297)
    
    
    SQL>
    

    probably should say "you want to do a ping?"

    My approx. is a MacBook with OSX 10.10.3

    java -version
    java version "1.8.0_40"
    Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
    Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
    

    Yes, it's a bug

  • setCurrentRow throws NullPointerException

    someViewObject.setCurrentRow (someRow);

    the previous statement always gives NullPointerException


    java.lang.NullPointerException

    at oracle.jbo.server.ViewRowSetIteratorImpl.setCurrentRow(ViewRowSetIteratorImpl.java:1021)

    at oracle.jbo.server.ViewRowSetImpl.setCurrentRow(ViewRowSetImpl.java:3470)

    at oracle.jbo.server.ViewObjectImpl.setCurrentRow(ViewObjectImpl.java:11207)

    ...................

    I don't know that someRow and someViewObject are not null.

    Use case:

    During execution of the program, I can rollback in some cases. When the restore is executed the view lose its current line and returns to the default state (from the beginning). I store the last line someRow and try to return under the current name online in the view to help setCurrentRow method. But I always get a NullPointerException.

    It's been asked before, but there is no clear answer.

    I use Jdeveloper 11.1.1.7

    Well, your line is probably in different range.

    Try again with a code similar to this example: http://adfcodebits.blogspot.com/2010/09/bit-23-using-findandsetcurrentrowbykey.html

    Dario

  • JDK 8 and JavaFX TabPane throwing NullPointerException

    Hi all. I hope this is the right forum for this. I want to preface this question by declaring that the following code works perfectly fine in JDK 1.7. The goal here is to create a component with a tab at the end tab (with the value text '+') so that whenever this tab is selected, the program creates a new tab in the tab pane. This feature works fine. The problem is that when you close the new tab via the X, it goes to the tab 'add,' creates a new tab, then survey the following NullPointerException in some code JDK (and the app shows now TWO new tabs that correspond to the exact same object):

    Execution using the C:\Program Files\Java\jdk1.8.0\jre/bin/java java.lang.NullPointerException at com.sun.javafx.scene.control.skin.TabPaneSkin platform $TabHeaderSkin.access$ 302 (TabPaneSkin.java:1040) of C:\Users\XXXXXX\Documents\NetBeansProjects\TestJavaFx\dist\run2082574567\TestJavaFx.jar...

    I cut down the trouble code bare minimum to view the issue, and it's as follows:

    (Incase it do not paste correctly, see here: [Java] package testjavafx; import javafx.application.Application; import javafx.bea - Pastebin.com)

    package testjavafx;
    
    
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.control.Tab;
    import javafx.scene.control.TabPane;
    import javafx.scene.control.TabPane.TabClosingPolicy;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    
    public class TestJavaFx extends Application {
    
    
        private TabPane tabPane;
        private Tab addTab;
        private Tab currentTab;
    
    
        @Override
        public void start(Stage primaryStage) {
    
    
            //Create the tab pane and the 'addTab' for adding new tabs.
            tabPane = new TabPane();
            tabPane.setTabClosingPolicy(TabClosingPolicy.SELECTED_TAB);
    
    
            addTab = new Tab("+");
            addTab.setClosable(false);
            tabPane.getTabs().add(addTab);
    
    
            //Add a listener to listen for changes to tab selection.
            tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
                @Override
                public void changed(ObservableValue<? extends Tab> observable, Tab oldSelectedTab, Tab newSelectedTab) {
    
    
                    //If we change to the addTab create a 
                    //new tab and change selection.
                    if (newSelectedTab == addTab) {
                        //Create the new tab.
                        createNewTab();
                    } else {
                        currentTab = newSelectedTab;
                    }
                }
            });
            //Create a new tab for initial load of the app
            createNewTab();
    
    
            StackPane root = new StackPane();
            root.getChildren().add(tabPane);
    
    
            Scene scene = new Scene(root, 500, 500);
    
    
            primaryStage.setTitle("Tab Test");
            primaryStage.setScene(scene);
            primaryStage.show();
        }
    
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            launch(args);
        }
    
    
        private Tab createNewTab() {
            Tab newTab = new Tab("New Tab");
            newTab.setClosable(true);
            tabPane.getTabs().add(tabPane.getTabs().size() - 1, newTab);
            tabPane.getSelectionModel().select(newTab);
            return newTab;
        }
    
    
    }
    

    Does anyone have ideas on this? Why it would break in 1.8? Is there a bug in the JDK?

    It's clearly a bug in the code of TabPaneSkin. What seems to be the case, it's that the tab is removed before the end of the deletion tab animation. The problem may be exacerbated by the code by automatically adding a tab if the last tab is deleted, but the code base should not fall like that.

    To work around the issue, disable the close animation of the tab with the following CSS bit.

        tabPane.setStyle ("- fx - close-tab-animation: none ;"); ")

    I created https://javafx-jira.kenai.com/browse/RT-36443 to follow up the matter.

  • NullPointerException in screen #navigationMovement Manager

    Hello

    After you add a VerticalFieldManager to a screen, Manager of navigationMovement super screen throws a NullPointerException and the verticalFieldManager scroll with the trackpad of this point (using the Enter key to scroll works very well and after once the trackpad works again scroll).

    I use the same model as this post defining NullField focus on the top and the bottom of the field with vertical scrolling. Has anyone have the same problems, or have any ideas on places of interest to search for?

    I'm sorry, that I couldn't reproduce it with a simple example. After a few hours, I was able to solve the problem by changing the hierarchy of my screen area, adding a handler of accepting high-field the developed anything in it.

    I think what he throwed NullPointerException because he could not find a field of focus when took place the first movement of the navigation, or the system has attempted to lock the focus on an element unfocusable. I have no final conclusion, I could work around it by rearranging the fields.

  • NullPointerException when app running, but don't not during debugging

    When I run my app in the Simulator I get a nulpointerexception, but when I debug in the Simulator even I get no exception.  Has anyone seen this behavior before and how can I find the source of the exception?

    I tried this a couple of simulators.  There's a place in my code I know wherever I knocked a nullpointer but this exception is caught by the debugger with a catch (Throwable t) {...} line.  Catch (Throwable) does not work in run mode?

    I use JDE 5, 9550 and 9530 sims, eclipse 3.5.2 plugin 1.1 and compliance of java 1.5

    By adding an extra

    catch (NullPointerException e) {}

    block that now my exception gets handled.  The final catch blocks look like this:

    try{
    ...
    //code that throws nullpointerexception
    ...
    } catch (NullPointerException e) {
        lat=0;
        lon=0;
    catch (Throwable t) {
            lat=0;
        lon=0;
    }
    

    Seems to me the catch (Throwable t) should work in run mode too.  Is NullPointerException not a throwable in run mode?

    -Peter, I did not look into the timing stuff.

  • EXECUTE IMMEDIATE throws exception NO_DATA_FOUND when it should not

    Hi all

    I wrote an anonymous PL/SQL block that, on paper, should be OK, but one of its commands EXECUTE IMMEDIATE is runnning slowing prematurely and throw an exception NO_DATA_FOUND, when it should not because I know that there is data in the table.

    Here is the line that I suspect is out of steam after 8 attempts:


    ---
    immediately execute "INSERT INTO ple101.circular35 (ID, SLAVETABLEID, SLAVEITEMID, MASTERTABLEID, MASTERITEMID, PRO) (SELECT * FROM SLAVETASKS where mastertableid =' |)" subTableID | "and masteritemid =' |" subitemID |' and subtableid =' | mastTableID | "and SLAVEITEMID =' |" mastItemId |') ' ;
    ------

    It is supposed to search the entire SLAVETASKS table for documents that match the WHERE clause, but gives up after 8 cycles.
    Table SLAVETASKS got 10228 records.

    The above statement (and the whole of the PLSQL block) is good in that it gets records if they are wthin the first 8 records in the SLAVETASKS table, but like I said after 8 records, to throw an exception NO_DATA_FOUND.

    Published by: user10390960 on April 28, 2012 03:21

    Published by: user10390960 on April 28, 2012 03:22

    Published by: user10390960 on April 28, 2012 03:23

    Published by: user10390960 on April 28, 2012 05:08

    Hi Goofy,

    The above script is for PLSQL and if you want to display the data in circular 35 follow like that

    # Save the code below in the sqlscript for example. circular_process_display. SQL and run as

    sqlplus /@ @circular_process_display.sql

    -- CREATE TABLE circular 35
    CREATE TABLE circular35
    ....
    ..
    /
    
    -- Execute PLSQL Block as given in my earlier post
    DECLARE
    ...
    BEGIN
    ...
    EXCEPTION
    ...
    END;
    /
    
    -- Run SQL to display output on screen.
    SET SERVEROUTPUT ON SIZE 100000 FEEDBACK ON LINESIZE 200;
    
    SELECT *
    FROM circular35
    /
    
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • How to create/change value comes out after key

    Hi all


    I have a requirement, I need to change the value fate (Boolean) dynamics based on the sitution. (for example, for example.) If I click Search spell (ReadOnly) variable must be set to TRUE.like...


    I create a dummy VO and VO I have created variable fate.

    Can someone help me how to proceed when a key is pressed, I wrote code after pressed button it throws the below error.

    If (PageContext.GetParameter ("Create")! = null)
    {

    OAViewObject disvo = (OAViewObject) am.findViewObject ("XxafpEepStageRebateValidateVO1");
    Row1 OARow = (OARow) disvo.first ();
    Row1.SetAttribute ("ItemProperty", Boolean.FALSE);
    Row1.SetAttribute ("ReadOnly", Boolean.TRUE);

    call another page...
    }


    Error (102.6): class oaviewobject not found in the xxafp.oracle.apps.qp.pricelistrebate class




    Thank you
    Mahesh

    Hi Manu

    Seems that you have not imported class OAViewObject in your controller... Follow these steps in the import of your controller section...

    import oracle.apps.fnd.framework.OAViewObject;
    

    AJ

  • AF:form causes NullPointerException

    I use JDeveloper 11 g and ADF. I use dynamic region with fragments of the page to view the different pages.

    I'm doing a form of submission, but jdeveloper throws NullPointerException because soon I add af:form to my jsff.
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:234)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2572)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1066)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1501)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Here is my code to the jsff page
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
                  <af:form id="f1">
                    <af:inputFile label="File" id="inputFile" autoSubmit="true"
                                  columns="30" required="true"
                                  valueChangeListener="#{Arkiv.inputFileValue}"
                                  binding="#{Arkiv.inputFile}"/>
                      <af:commandToolbarButton text="Save file" id="ctb2" actionListener="#{Arkiv.onUploading}"/>
                      <af:commandToolbarButton text="Cancel" id="ctb3" immediate="true"/>
                  </af:form>
    </jsp:root>
    If I remove the form from the page loads, but then I can't use the inputFile.

    Any ideas?

    Best wishes in advance.

    -Thomas

    If you use regions, then you af:form component in the main page.
    You can have more then one af:form in a page that I know, or at least you can't have nested.
    Why do you need all the af:form? It should work fine without it.

    Edited by: Valhery 2010-4-15 05:36

    Edited by: Valhery 2010-4-15 05:36

  • How to insert data into the database of the fields that have already been assigned values?

    Hi all

    I'm sorry for the question, I'm still new to the OPS

    Here's the thing.

    I have 4 points messageTextInput in my page. each of these 4 field is associated with an attribute of the VO.

    3 of these items have their value already defined in the processRequest of the Commander, like this:

           
          OAMessageTextInputBean factureItem = (OAMessageTextInputBean)webBean.findChildRecursive("factureItem");
          factureItem.setValue(pageContext,pnumfacture);
    
           OAMessageTextInputBean actionItem = (OAMessageTextInputBean)webBean.findChildRecursive("actionItem");
           actionItem.setValue(pageContext,pidaction);
           
          Date sysDate = new Date(); 
           OAMessageDateFieldBean dateSystemItem = (OAMessageDateFieldBean)webBean.findChildRecursive("dateSystemItem"); 
             dateSystemItem.setValue(pageContext,sysDate);       
    

    The user must enter the value of the 4th field.

    I used the classic entry code for data as follows:

    in the AM, I added,

        public void insertRecord(){
        
        OAViewObject vo = getTraceVO1();
        OADBTransaction trans = getOADBTransaction();
        
            if (!vo.isPreparedForExecution()) 
              { 
                    vo.executeQuery(); 
              }
        
        TraceVORowImpl v_row;
        v_row = (TraceVORowImpl)vo.createRow();
        vo.insertRow(v_row);
       v_row.setNewRowState(v_row.STATUS_INITIALIZED);
      }
    public void apply()
       {
          getTransaction().commit();
        }
    

    In the processRequest of the Commander, I added:

          if (!pageContext.isFormSubmission())
            {        
             am.invokeMethod("insertRecord",null);       
            } 
    

    in the processFormRequest of the CO, I added:

          if(pageContext.getParameter("submitButtonItem")!=null){
                         
                am.invokeMethod("apply");
          throw new OAException("Trace Created successfuly",OAException.CONFIRMATION);
          }
    

    When I run my page, I get the error message saying that myVO not records, the records were removed or the view instance has been initialized incorrectly.

    Can someone please tell me what this means?

    Kind regards

    Afaf

    Afaf,.

    Please try to use the code below and see what happens:

    Replace the insertRecord in the AM method with this.

    Import oracle.jbo.domain.Number;

    public void insertRecord(String pnumfacture, String pidaction){ 
    
      System.out.println("been  in insert method");
      OAViewObject traceVO = getTraceVO1();
      OADBTransaction trans = getOADBTransaction(); 
    
      /*if (!traceVO.isPreparedForExecution())
      {
      traceVO.executeQuery();
      }
      */
      traceVO.setWhereClause(null);
      traceVO.setWhereClauseParams(null);
      traceVO.setWhereClause("1=2");
      traceVO.executeQuery();
    
      Number pidAction;
      try{
      pidAction = new Number(pidaction);
      }catch(Exception e) {}
    
      TraceVORowImpl traceVORow;
      traceVORow = (TraceVORowImpl)traceVO.createRow();
      traceVORow.setIdFacture(pnumfacture);
      traceVORow.setIdAction(pidAction);
      traceVORow.DateSysteme(this.getOADBTransaction().getCurrentDBDate());
      traceVO.insertRow(traceVORow);
      //traceVORow.setNewRowState(traceVORow.STATUS_INITIALIZED); 
    
      System.out.println("been  in insert method");
    } 
    

    Replace the processRequest of the second Commander by this:

    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    {
      System.out.println("first time in processForm of CO2");
      String pnumfacture = null;
      String pidaction = null; 
    
      super.processRequest(pageContext, webBean); 
    
      OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean); 
    
      if(pageContext.getParameter("pnumfacture")!=null)
      {
      pnumfacture = pageContext.getParameter("pnumfacture").toString();
      } 
    
      if(pageContext.getParameter("pidaction")!=null)
      {
      pidaction = pageContext.getParameter("pidaction").toString();
      } 
    
        System.out.println("been  in processRequest before assign variables of CO2"); 
    
      System.out.println("pnumfacture :" + pnumfacture);
      System.out.println("pidaction :" + pidaction);
    
    /*assign values to the 3 fields*/
          /*
       Date sysDate = new Date();
          OAMessageTextInputBean factureItem = (OAMessageTextInputBean)webBean.findChildRecursive("factureItem");
          factureItem.setValue(pageContext,pnumfacture); 
    
          System.out.println("been  in processRequest after assign variables of CO2"); 
    
           OAMessageTextInputBean actionItem = (OAMessageTextInputBean)webBean.findChildRecursive("actionItem");
           actionItem.setValue(pageContext,pidaction); 
    
           OAMessageDateFieldBean dateSystemItem = (OAMessageDateFieldBean)webBean.findChildRecursive("dateSystemItem");
           if(dateSystemItem != null)
           {
             dateSystemItem.setValue(pageContext,sysDate);
           }
           */
        Serializable parameters[] = {pnumfacture, pidaction};
        Class paramTypes[] = {String.class, String.class};
    
           am.invokeMethod("insertRecord",parameters, paramTypes);
           System.out.println("been  in processRequest of CO2 after invokeMethod"); 
    
      }
    

    Let us know what happens.

    You can get an error that I have just change this in Textpad and may have syntax errors. If you can't fix those apply here.

    See you soon

    AJ

  • Could not get CameraDemo as application to work

    I am trying to take a snapshot with MMAPI, based on this article, and also based on the CameraDemo code. I can view the field, then the guests of simulators for a photo. I select the sample, wich becames visible image. There is no other field on this screen, only the field that is returned by VideoControl.initDisplayMode mode full-screen. Then I take the snapshot (triggered from a TrackwheelClick event) and the returned byte array is null. It is a sample of the code:

    // The screen is created, then initialized and pushed: synchronized (Application.getEventLock()) { cameraScr.initScreen();   app.pushScreen(cameraScr);}cameraScr.start();
    
    //CameraScr is a MainScreen, and these are the methods mentioned above:public void initScreen() {    try{                              p = Manager.createPlayer("capture://video");      p.realize();                  p.prefetch();
    
          vc = (VideoControl) p.getControl("VideoControl");     if(vc != null){           viewFinder = (Field)vc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");            vc.setVisible(true);          vc.setDisplayFullScreen(true);              
    
              deleteAll();                  add(viewFinder);                      } else {          System.err.println(ERR_TAG + "initScreen(): VideoControl is NULL");       }                             } catch (Exception me){       System.err.println(ERR_TAG + "initScreen(): " + me);  }       }
    
    public void start(){   try {     p.start();    } catch (MediaException e) {      System.err.println(ERR_TAG + "start(): " + e);    }}
    
    //The TrackwheelListener overriden method which fires the snapshot: public boolean trackwheelClick(int status, int time) {  snap();   return true;}
    
    //The snap() method:private void snap(){ byte[] imageBytes = null; try {     imageBytes = vc.getSnapshot("encoding=jpeg&width=640&height=480&quality=normal"); } catch (MediaException e) {      System.err.println(ERR_TAG + "snap(): " + e);     imageBytes = null;    } // After this block, no exceptions are thrown, but imageBytes is always null.               }
    

    As you can see, I call Player.start () after the field is added and the screen, following the advice of peter_strange on another post. I also tried calling start() after initDisplayMode (as in CameraDemo) without success. I tried all kinds of stuff, and nobody seems to work.

    Tested with:

    BB - plugin for eclipse, v1.0.0.67, component Pack 4.6.0 ("BOLD" 9000 Simulator)

    -Blackberry 8900 (real device)

    -For the test with the component Pack 4.6.1 (8900 Simulator), I am never invited to an image and the Simulator crashes.

    Needless to say I tested CameraDemo on device (8900) and it doesn't work, but I think it's because there are other fields on the screen.

    OK, I found what happens.

    First of all, old CameraDemo fails due to the button. New CameraDemo (included with JDE 5.0) does not work, but it will throw NullPointerException if it is configured with this coding:

    'encoding = jpeg & width = 640 & height = 480 & quality = normal '.

    Which was originally my app to not too. Now lets change to this other coding:

    "encoding = jpeg & width = 640 & height = 480 & quality = very well"

    And everything works perfectly.

    This happens also on real devices, though I'm afraid that this is a bug. It's really weird because the first coding is among the strings returned by this sentence:

    System.getProperty("video.snapshot.encodings");
    
  • Failed to get child node in tree selection listener

    I do a web application using JDeveloper 11 G (11.1.1.2.0) merge.

    I created two display objects linked together. Let's call them VoDepartments and VoEmployees, connected by DepartmentId.

    I hava done a tree with an af:switcher
    <af:switcher id="s1" facetName="#{node.hierType.structureDefName}">
     <f:facet name="view.VoDepartments">
      <af:outputText value="#{node}" id="ot1"/>
     </f:facet>
     <f:facet name="view.VoEmployees">
      <af:outputText value="#{node}" id="ot2"/>
     </f:facet>
    </af:switcher>
    I made a selection listener based on a guide about Frank Nimphius
    RichTree tree1 = (RichTree) selectionEvent.getSource();
    RowKeySet rks2 = selectionEvent.getAddedSet();
    Iterator rksIterator = rks2.iterator();
     
     if (rksIterator.hasNext()){
      List key = (List)rksIterator.next();
      JUCtrlHierBinding treeBinding = null; 
      treeBinding = (JUCtrlHierBinding) ((CollectionModel)tree1.getValue()).getWrappedData();
    
      JUCtrlHierNodeBinding nodeBinding = nodeBinding = treeBinding.findNodeByKeyPath(key);
                
      String nodeStuctureDefname = nodeBinding.getHierTypeBinding().getStructureDefName(); //Here is the nullpointerexception for employees
              
      String employees = "view.VoEmployees";
      String departments = "view.VoDepartments";
               
      if (nodeStuctureDefname.equalsIgnoreCase(departments)){
       String dept = (String) nodeBinding.getAttribute("Department_name");   
       System.out.println("Department = "+dept);
      }
      else if (nodeStuctureDefname.equalsIgnoreCase(employees)){
       String emp = (String) nodeBinding.getAttribute("First_name");   
       System.out.println("Employee = "+emp);
      }
      else{
       //what the heck did the user click on? Ask him ;-)
      }
     }
    Pagedef:
    Executables:
    <iterator Binds="VoDepartments2" RangeSize="25" DataControl="AppMainDataControl" id="VoDepartments2Iterator"/>
    
    Bindings:
    <tree IterBinding="VoDepartments2Iterator" id="VoDepartments2">
     <nodeDefinition DefName="view.VoDepartments" Name="VoDepartments20">
      <AttrNames>
       <Item Value="DepartmentId"/>
      </AttrNames>
      <Accessors>
       <Item Value="VoEmployees"/>
      </Accessors>
     </nodeDefinition>
     <nodeDefinition DefName="view.VoEmployees2" Name="VoDepartments21">
      <AttrNames>
       <Item Value="First_name"/>
       <Item Value="Last_name"/>
      </AttrNames>
     </nodeDefinition>
    </tree>
    The works of the tree just fine and all he has to list the list. I can click on the Department and my interlocutor selection departments name printed in the console.
    I can develop a Department and the list of employees. The problem is when I click on an employee, I get null pointer exception.

    I discovered that the listener selectins is not nodeBiding for employees. NodeBinding.getHierTypeBinding () .getStructureDefName () Yes; throw NullpointerException.

    Someone has an idea what is wrong? Help, please.
    -Thomas

    Published by: Thomas H on March 22, 2010 08:21

    Thomas,

    I was able to reproduce the problem and resolved. View objects only reading is not a primary key set. So just change all attributes that participate in a primary key and the value of the 'key' button I'll add a note to the blog post original th

    Frank

Maybe you are looking for

  • I tried to export pictures and received an error message for some

    I'm trying to save space on my hard drive Mac by exporting photos to an external hard drive.  Most of them go, but I get an error about 25%.  How can I overcome that without having to go through the image?

  • History of Skype

    Hi everyone who reads this. I recently discovered that my story my cat has been deleted. Even if I chose the "history of the Dungeon forever"... How can I return my story? I got really important messages that dates back more than 3 months and I reall

  • Hung M30X then closing

    I tried to restart my M30X (so that it would recognize a mouse I had plugged into a USB port), but it hung on the "Windows is shutting down" screen The cursor can be moved with the touchpad, but Ctrl-Alt-Del has had no effect, neither does the power

  • I have a HP Officejet 6310 and want to install it on my new HP Pavilion Touchsmart Sleekbook 14.

    I have a HP Officejet 6310 and just bought a new HP Pavilion Touchsmart 14 - b109wm sleekbook.  How do we install the old printer on my new computer? The printer has a cable to the computer. Thanks for any help you can give me.

  • Mailings moved to end of folder Windows Mail personal up to corrupt the other items in this folder.

    I get a number of emails from members of the family all over the world. When I save items to a specific e-mail folder in Windows Mail, the email registered is replaced by the text of another email in this folder!I have tried to create a new folder an