Problem executing RMI Methods Netbeans

Hi everyone!
I�m using a system Servlet+applet that communicate by RMI with Netbeans.
The remote object, the stub and the binding are correctly created at the servlet. At the applet the reference to the remote object is ok too.
The problem appears when I invoke a method in the remote object from the applet.
The message the Java console throws:
RemoteException  en soloEscribe()
java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.100:1079 connect,resolve)
soloEscribe() is the method in the remote object.
I�m running everything locally, and I have granted allPermissions at the java.policy.
Hope someone can help!
Edited by: SnowyC on May 18, 2008 11:31 AM

and one more thing I added following lines
Context rootContext=(Context)initialNamingContext.lookup("");
System.out.println("The Look up suceeded");
to see whether it is able to look up the root context or not.
I saw that it is suceeded in finding the root context and print the message also , but again failed to rebind the object .thrwing following exception
java -classpath . -Djava.naming.factory.ini
tial=com.sun.jndi.cosnaming.CNCtxFactory -Djava.naming.provider.url=iiop://local
host:1050 Registry
Inside Constructor
The Look up suceeded
java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can b
e bound
at com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.rebind(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.rebind(Unknown Source)
at javax.naming.InitialContext.rebind(Unknown Source)
at Registry.main(Registry.java:30

Similar Messages

  • Problem executing RMI tutorial "Getting Started Using RMI"

    I am trying to execute the RMI tutorial located at http://java.sun.com/j2se/1.3/docs/guide/rmi/getstart.doc.html
    I use JDK 1.3.1, and Windows XP Pro.
    I follow the info on the URL http://java.sun.com/j2se/1.3/docs/guide/rmi/getstart.doc.html
    And all is OK, but when I try to run the server.I use the following command:
    C:\public_html\htdocs\myclasses>java -Djava.rmi.server.codebase=http://127.0.0.1
    /myclasses/ -Djava.secutiry.policy=c:\policy examples.hello.HelloImpl
    And I got this error:
    HelloImpl err: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,r
    esolve)
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    27.0.0.1:1099 connect,resolve)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkConnect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
    ource)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
    ource)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
    at sun.rmi.server.UnicastRef.newCall(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Unknown Source)
    at examples.hello.HelloImpl.main(Unknown Source)
    It seems its something with policy file, I used the one on the tutorial, but I still got error.
    Anyone could help me ?
    John

    I think it's just a typo in your command line. :)
    You're using java.secutiry.policy instead of
    java.security.policy.
    Feel the difference! :)

  • Problem executing  J2ME project (Netbeans 5.0)

    After being away from Netbeans for a couple of months I returned back only to find that it now is impossible to execute J2ME projects :-(
    I get error message "Execution failed with error code 1" shen the IDE tries to start the emulator.
    I tried to remove and reinstall Netbeans 5.0 and NetbEans Mobility Pack to no avail.
    This is true on two of my computers. But on a third host with newly installed Windows XP and Netbeans etc it works flawlessly.
    Can someone out there give me a hint?
    /j

    Problem solved. I got a hint from http://www.netbeans.org/kb/articles/fix-toolkit-installation.html which directed me towards emulator.bat. Search found it in .ntebeans directory under my user in Documents and Settings. By removing the whole .netbeans directory, I got a clean fresh IDE where everything works as it should.
    /j

  • Problem executing main method with wrong connection to DB data

    Hi,
    I'm executing my 2 projects in the same application with wrong DB-connection data.
    When i execute one of the projects, i get one only Window having this text:
    +(oracle.jbo.DMLException) JBO-26061: Error al abrir la conexión JDBC.+
    That's exactly what i wanted, but when i execute the other project i get this window, but also 20 windos or so having the following text:
    +(oracle.jbo.JboException) JBO-29000: Se ha obtenido una excepción inesperada: java.lang.NullPointerException, mensaje=null+
    In both projects the exception ocurrs in the same line: panelBinding.refreshControl(). They have exactly the same code in main class, so i don't understand why in one project i get the only window i want (the one saying JDBC conection is wrong) and in the other one i get round 20 more.
    Why is this happening?
    Thanks in advance. Pablo.
    Edited by: user9937041 on 25-may-2011 1:34

    Maybe important: in the database navigator, when a introduce a right user, but a wrong password, in project 2 the database user account gets locked. This doesn't happen in project 1.
    Any idea??
    Edited by: user9937041 on 25-may-2011 2:10

  • Add a Data Action to Execute a Method - Problem

    Hi,
    I'm working with JDeveloper 10.1.3 - JSP,Struts and ADF BC.
    I have a method that retruns 2 values (audit(Number,Number)) and exposed the Service Metod, but now I need to add a Data Action to Execute that method.
    I already add an Data Action icon to my Page Flow Diagram but what do I need to do next?
    Can anyone help me? Any ideias?
    Thanks,
    Micaela

    Hi Shay,
    I have one problem because how can I create a JSP Page to display Method Results in JDeveloper10.1.3???
    I already created another page and tried to Drag and Drop my Method from Data Control Palette, but I only have the choice to create a button and I would like to see the result.
    Adding a c:out tag to the JSP page.
    Can you help me with this problem??
    Thanks,
    Micaela

  • Will multiple Lan cards cause problems using rmi?

    Will multiple Lan cards cause problems using rmi? If a host has two or more network cards (only one of which is Internet-enabled), how does RMI know which IP address to use? There seems to be a problem when such a client registers with an RMI service, and has a client-side callback method invoked by the server.

    You can tell RMI the address you want by defining java.rmi.server.hostname at the JVM which exports the remote object.

  • Problem with Vector method addElement

    I am new to Java. I am using JDK 1.3. I am writing a program that will convert a text file to a binary file that stores a Vector object. I have narrowed my problem to the method that reads the text file and creates my vector. Each element in my vector stores an integer and a string variable. The reading of the text file works find and the creation of my record works find. It seems that the storing of the record in the vector is not working. When I print the first 10 elements of the vector, it have the same record(the last record of my text file). What is wrong with the method below? I am also appending the result of running my program.
    private static void readTextFile(File f) {
    try {
    FileReader fileIn = new FileReader(f);
    BufferedReader in = new BufferedReader(fileIn);
    String line;
    int i;
    SsnLocationRecord recordIn = new SsnLocationRecord();
    int ctr = 0;
    while (true) {
    line = in.readLine();
    if (line == null)
    break;
    ctr += 1;
    i = line.indexOf(" ");
    recordIn.putAreaNumber(Integer.parseInt(line.substring(0,i).trim()));
    recordIn.putLocation(line.substring(i+1).trim());
    records.addElement(recordIn);
    if (ctr < 11)
    System.out.println(recordIn);
    in.close();
    } catch (IOException e) {
    System.out.println ("Error reading file");
    System.exit(0);
    for (int i = 0; i < 11; i++)
    System.out.println((SsnLocationRecord) records.elementAt(i));
    RESULTS:
    C:\Training\Java>java ConvertTextFileToObjectFile data\ssn.dat
    0 null
    3 New Hampshire
    7 Maine
    9 Vermont
    34 Massachusetts
    39 Rhode Island
    49 Connecticut
    134 New York
    158 New Jersey
    211 Pennsylvania
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    C:\Training\Java>

    First of all it would be better if you did a priming read and then checked line == null in the while statement instead of the way you have it.
    ctr++ will also accomplish what ctr +=1 is doing.
    you need to create a new instance of SsnLocationRecord for each line read. What you are doing is overlaying the objects data each time you execute the .putxxxx methods. The reference to the object is placed in the vector. The actual object is still being updated by the .putxxx methods (NOTE : THIS IS THE ANSWER TO YOUR MAIN QUESTION).
    you close should be in a finally statement.
    To process through all the elements of a Vector create an Enumeration and then use the nextElement() method instead of the elementAt is probably better. (Some will argue with me on this I am sure).
    Also, on a catch do not call System.exit(0). This will end your JVM normally. Instead throw an Exception (Runtime or Error level if you want an abnormal end).

  • Problem with prerender method

    Hi,
    I have a problem with the method prerender. A month ago, I started to develop a web project using Sun Studio Creator and a few page beans that i used extended the Abstract Page Bean, so I overrided the prerender and customized it.
    The problem is that, now i'm using eclipse and the configuration files of the project has changed and the prerender method never execute.
    I want to know why it is happening. Maybe the project is "bad-configurated"?
    Thanks

    The code of java bean doesn't change, the only thing that has changed is the configuration files (faces-config.xml, web.xml, etc).
    I put a breakpoint in the prerender method but the lifecycle doesn�t execute this method.
    After serveral changes, I wrote this code in the method prerender :
    int i=0;
    i = 1;
    And the prerender method doesn't execute.
    I'm a bit lost,
    thanks

  • Errors in calling rmi methods

    iPlanet6.1 is throwing following exceptions during rmi calls. Seems to be it is having problem in establishing t3 connections to the weblogic.
    java.rmi.ConnectException: Connection to: 'wlserver1' over: 't3' g
    ot an error or timed out
    at weblogic.rjvm.ConnectionManager.ensureConnectionEstablished(Connectio
    nManager.java:1272)
    at weblogic.rjvm.ConnectionManager.getOutputStream(ConnectionManager.jav
    a:1316)
    at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:348)
    at weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRe
    f.java:97)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:125)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    =======
    java.rmi.ConnectException: Attempt to sendMsg using a closed connection
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundR
    equest.java:85)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:136)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    We have to restart iplanet whenever we get this problem and then it works fine for 40min - 1hr and it repeats the problem again. But we could make t3 connections and call rmi methods on the appserver by a test program running out of webserver without any problem at the same time when iplanet was having problems.
    Did anybody face this problem before?
    Thanks.
    Ashok

    es5f2000 wrote:
    jschell wrote:
    That works?I dunno. The below definitely works, but like I said, I've only
    ever done it with one output parameter (and that has always
    been a ResultSet).
    String callableQuery = "{?= call my_package.my_call(?, ?)}"
    Yes I have done that and at least in terms of my code it wasn't just a result set.
    But not with two.

  • Problem - JHS generating methods too large

    Migration From 10.1.2 to 10.1.3.1.26 (licensed)
    Thanks for the previous fix. Now I have another problem. I get the following error:
    Error(19,15): code segment of method _jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) too large
    When ViewController compiles.
    This is a 10.1.2 application that I've migrated to 10.1.3.1.26. I had no problems with 10.1.2. How can method_jspService be too big?
    The jspx file is a screen that has 8 sub-tabs. I haven't changed anything.
    This screen is the heart of our application, any help on this problem would be appreciated.
    Thanks!
    Message was edited by:
    user565025

    I'm a colleague of the orignal poster above. I've been looking at this issue further and will summarize it here:
    relevant threads:
    Error with large / complex pages
    Error: code segment of method _jspService(..) too large
    Re: jspx Page size limit in ADF in JDeveloper environment 10.1.3.1 (Product
    As far as I can tell the root cause is as described here:
    http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was.doc/html/Java_SDK/1177375.html
    "The Java� specification states that there is a 64 K limit on the size of methods in Java. The JVM� does not execute methods that exceed this limit.
    It is possible to compile methods larger than 64 K, but the JVM will not run these methods. Consequently, the error occurs during runtime, while attempting to execute Java methods that are greater than 64 K.
    A code too large for try statement error can still be issued while compiling a JSP. The compiler limitation does not allow try/catch blocks to have a start or end location greater than 64 K into the method code. Therefore, compiler limitations are usually caught when a try/catch block overlaps the 64 K boundary.
    The workaround is to refactor the code into smaller methods or try/catch blocks."
    So it looks like Jheadstart is generating a file (see below) which violates the java spec. If I am correct then this is neither an oc4j, Sun or Jdeveloper problem; it's JHeadStart. I have tried setting the embedded server compiler and all project compilers to javac.
    Any further suggestions or workarounds would be greatly appreciated.
    Removed file listing - too long
    Message was edited by:
    JavaBat

  • Execute some method once an effect has been played

    Hi everybody, I want to execute a method after the effect i have played is finished. is there any property in AnimationProperty tag to acheive it.
    In the component i have pasted below, getting data from xml file and using repeater populate those data in Hbox then it moves the horizontal scroll position of HBox using animation property. once animation property has been played, it has to execute some method. how can we do it ?
    the next question is
    i want to play animation propery infinite times and i have done it with the help of repeatCount but it takes some delay in between. how can it play infinite imes without any delay in between.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="getXML.send(),slide(event)" >
    <mx:Script>
            <![CDATA[
                import mx.containers.Canvas;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.effects.easing.*;
                import mx.controls.*;
                import mx.collections.*;
                [Bindable] public static var refThumb : Thumbnail;
                [Bindable] public var xmlData : XMLListCollection = new XMLListCollection();
                [Bindable] public var xml :XMLList;
                public function resultHandler(event :ResultEvent) : void
                    xml = event.result.product as XMLList;
                public function faultHandler(event :FaultEvent):void
            public function slide(event :Event):void{
               ap.play();
        ]]>
    </mx:Script >
        <mx:AnimateProperty id="ap" effectEnd="{Web.refWeb.nextSlider()}" repeatCount="0" property="horizontalScrollPosition" fromValue="0" target="{can}" toValue="7200" duration="72000" startDelay="0"/>
        <mx:HTTPService id="getXML" showBusyCursor="true" url="catalog.xml" resultFormat="e4x" result="resultHandler(event)" fault="faultHandler(event)" />
        <mx:HBox paddingTop="20" id="can" width="600" height="200" backgroundColor="white" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundAlpha="0.2"  >
        <mx:Repeater id="rep" dataProvider="{xml}" >
            <mx:VBox id="comp" horizontalAlign="center" horizontalGap="200" width="200" height="200" verticalScrollPolicy="off" horizontalScrollPolicy="off">
                             <mx:Image source="{rep.currentItem.image}" width="150" height="100" maintainAspectRatio="false" />
                             <mx:Text text="{rep.currentItem.name}" fontWeight="bold" />
                             <mx:Text text="{'$ '+ rep.currentItem.price}" fontWeight="bold" />
                             <mx:LinkButton label="Add cart" color="blue" />
             </mx:VBox>
        </mx:Repeater>
        </mx:HBox>
    </mx:VBox>

    you have posted a VBox component code so it will be the part of your parent Application are you injecting data into this component from the main application ? and your
    httpService requires catalog.xml so you need to attach that file so i can run on my side successfully . instead of doing this you can tell the problem you are having so i can guide you on that
    regards,
           ATIF.

  • Problem in expand method of tree menu display.

    hi experts,
    i am using following method of  CL_GUI_SIMPLE_TREE to expand all nodes of tree.
    CALL METHOD g_tree->expand_nodes
            EXPORTING
              node_key_table          = it_tab
            EXCEPTIONS
              failed                  = 1
              cntl_system_error       = 2
              error_in_node_key_table = 3
              dp_error                = 4
              OTHERS                  = 5.
    it_tab contains node_key for all nodes with folder symbol.
    my problem is that on executing this method root node and its child expand but the nodes inside child node aren't shown.
    EXPECTED OUTPUT IS:                                                                               
    v infotype  (root)                                                                               
    v   0002(personal details)  (child1)                                                                               
    []  personal details                                                                               
    v   0006(addresses)           (child2)                                                                               
    []  permanent address                                                                               
    []  temorary addresses
           []  home address
           []  emergency address
    PRESENT OUTPUT:
    v infotype               (root)                                                                               
    v   0002  (personaldetails)(child1)                                                                               
    v   0006(addresses)         (child2)                                                                               
    v   0008(basic pay)           (child3)
       v   0009(bank details)        (child4)
           Edited by: charudevrani on Nov 14, 2011 7:37 AM
    Edited by: charudevrani on Nov 14, 2011 7:38 AM
    Edited by: charudevrani on Nov 14, 2011 7:42 AM

    Hi ,
    Check the below code .U have to add child nodes to the item table and folders to the node table.
    method handle_expand_no_children.
        data: node_table type treev_ntab,
              node type treev_node,
              item_table type item_table_type,
              item type mtreeitm.
    show the key of the expanded node in a dynpro field
        g_event = 'EXPAND_NO_CHILDREN'.
        g_node_key = node_key.
        if node_key = c_nodekey-child12
    add the children for node with key 'Child2'
    Node with key 'New3'
          clear node.
          node-node_key = c_nodekey-new3.
          node-relatkey = c_nodekey-child2.
          node-relatship = cl_gui_list_tree=>relat_last_child.
          append node to node_table.
    Node with key 'New4'
          clear node.
          node-node_key = c_nodekey-new4.
          node-relatkey = c_nodekey-child2.
          node-relatship = cl_gui_list_tree=>relat_last_child.
          append node to node_table.
    Node with key 'New3'
          clear node.
          node-node_key = c_nodekey-new5.
          node-relatkey = c_nodekey-child2.
          node-relatship = cl_gui_list_tree=>relat_last_child.
          append node to node_table.
    Node with key 'New4'
          clear node.
          node-node_key = c_nodekey-new6.
          node-relatkey = c_nodekey-child2.
          node-relatship = cl_gui_list_tree=>relat_last_child.
          append node to node_table.
    Items of node with key 'New3'
          clear item.
          item-node_key = c_nodekey-new3.
          item-item_name = '1'.
          item-class = cl_gui_list_tree=>item_class_text.
          item-length = 11.
          item-usebgcolor = 'X'. "
          item-text = 'Program 1'.
          append item to item_table.
          clear item.
          item-node_key = c_nodekey-new3.
          item-item_name = '2'.
          item-class = cl_gui_list_tree=>item_class_text.
          item-alignment = cl_gui_list_tree=>align_auto.
          item-font = cl_gui_list_tree=>item_font_prop.
          item-text = 'Program Text'(001).
          append item to item_table.
    Items of node with key 'New4'
          clear item.
          item-node_key = c_nodekey-new4.
          item-item_name = '1'.
          item-class = cl_gui_list_tree=>item_class_text.
          item-length = 11.
          item-usebgcolor = 'X'. "
          item-text = 'Program 2'.
          append item to item_table.
          clear item.
          item-node_key = c_nodekey-new4.
          item-item_name = '2'.
          item-class = cl_gui_list_tree=>item_class_text.
          item-alignment = cl_gui_list_tree=>align_auto.
          item-font = cl_gui_list_tree=>item_font_prop.
          item-text = 'Program Text'(002).
          append item to item_table.
         * Items of node with key 'New3'
          clear item.
          item-node_key = c_nodekey-new5.
          item-item_name = '1'.
          item-class = cl_gui_list_tree=>item_class_text.
          item-length = 11.
          item-usebgcolor = 'X'. "
          item-text = 'Program 3'.
          append item to item_table.
          clear item.
          item-node_key = c_nodekey-new5.
          item-item_name = '2'.
          item-class = cl_gui_list_tree=>item_class_text.
          item-alignment = cl_gui_list_tree=>align_auto.
          item-font = cl_gui_list_tree=>item_font_prop.
          item-text = 'Program Text'(002).
          append item to item_table.
         * Items of node with key 'New4'
          clear item.
          item-node_key = c_nodekey-new6.
          item-item_name = '1'.
          item-class = cl_gui_list_tree=>item_class_text.
          item-length = 11.
          item-usebgcolor = 'X'. "
          item-text = 'Program 4'.
          append item to item_table.
          clear item.
          item-node_key = c_nodekey-new6.
          item-item_name = '2'.
          item-class = cl_gui_list_tree=>item_class_text.
          item-alignment = cl_gui_list_tree=>align_auto.
          item-font = cl_gui_list_tree=>item_font_prop.
          item-text = 'Program Text'(002).
          append item to item_table.
        endif.
        call method g_tree->add_nodes_and_items
          exporting
            node_table = node_table
            item_table = item_table
            item_table_structure_name = 'MTREEITM'
          exceptions
            failed = 1
            cntl_system_error = 3
            error_in_tables = 4
            dp_error = 5
            table_structure_name_not_found = 6.
        if sy-subrc <> 0.
          message a000.
        endif.
      endmethod.                    "HANDLE_EXPAND_NO_CHILDREN

  • How to execute a method after page Load?

    My question is very similar to what was discussed in following thread:
    How to execute a method after page Load?
    My requirement is that I want to run a method in backing bean of a page, immediately after the page gets loaded. In that method I want to invoke one of the method action included in the pagedef of this page, conditionally.
    I tried using the approach given in the above thread, i.e to use <f:view afterPhase="#{backing_security.setPermPriv}">, but the problem is that our page is not using 'f:view' , so I explicitly added one f:view with afterPhase property set , but it is not working, page it self is not getting loaded, it is throwing the error:
    Root cause of ServletException.
    java.lang.IllegalStateException: <f:view> was not present on this page; tag [email protected]e8encountered without an <f:view> being processed.
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperties(UIXComponentELTag.java:108)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:733)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:71)
         at oracle.adfinternal.view.faces.taglib.UIXQueryTag.doStartTag(UIXQueryTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.UnifiedQueryTag.doStartTag(UnifiedQueryTag.java:51)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
         at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
         at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
         at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:665)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:387)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:822)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:746)
    Please help to resolve this issue, or am I doing anything wrong?

    Hi,
    I assume that your view is a page fragment and here - indeed - the f:view tag cannot be used. If you use ADF then one option would be to use a custom RegionController on the binding layer to listen for the render phase to invoke the method. Another option would be to use a hidden field (output text set to display="false" and have this component value referencing a managed bean property. The managed bean property's getter method can now be used to invoke the method you want to run upon view rendering
    Frank

  • Adf faces: execute bean method after table is loaded

    Hi,
    How can I execute a method after an adf table is rendered on the page?
    This is what I want to do:
    I have a master/detail:
    - the master part contains a list of materials
    - the details contains a list of customers and volumes depending on the selected material.
    I tried to add totals on the details table:
    - I created an output text in the footer-facet of the colums containing volumes
    - I created a binding of the detail table to a CoreTable.
    - I created a method in a managed bean related to this CoreTable binding, so I can browse to all rows in the table and calculate the sum.
    - I then set the value of the output text to the total calculated in the managed bean.
    the problem is that I don't know how to execute the calculate procedure after the data in the detail table exists.
    What I tried:
    - call the calculate procedure in the setCoreTable method. --> at this point, there is no data in the table and this results in a nullPointerException when the pages is loaded.
    - call the calculate procedure on the valueChangeListener of the material list --> this doesn't work because totals are calculated for the previous details set.
    - I tried to add the call in one of the table listeners but I cannot find a listener that is executed after data is loaded in the table...
    for testing purpose only, I added a button: calculateTotals that calculates the totals. This works correctly.

    Hi,
    if you use page fragments exposed in an ADF region, you have two options I see
    1. Use a method call activity to call the managed bean
    2. Use a hidden UI component that references the setter/getter exposed in a managed bean and just use this as an indication for the page fragment being loaded
    Keragala

  • SharePoint Web Part: "Unable to Execute Service Method getLocaleStrings

    When using the UCM Web Part to promote content from SharePoint 2007 to UCM 11.1.1.3, I am getting an error: "Unable to Execute Service Method getLocaleStrings"
    Does this mean there is an incompatibility between the UCM web part and UCM 11.1.1.3, or is there a workaround?
    In my UCM logs, I am seeing:
    Unable to execute service method 'getLocaleStrings'. java.lang.NoSuchFieldError: m_locales. [ Details ]
    An error has occurred. The stack trace below shows more information.
    !csUserEventMessage,weblogic,10.2.20.96!$!csUnableToExecMethod,getLocaleStrings!syJavaExceptionWrapper,java.lang.NoSuchFieldError: m_locales
    intradoc.common.ServiceException: !csUnableToExecMethod,getLocaleStrings
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2071)
    at intradoc.server.Service.buildServiceException(Service.java:2207)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2201)
    at intradoc.server.Service.createServiceException(Service.java:2196)
    at intradoc.server.Service.doCodeEx(Service.java:583)
    at intradoc.server.Service.doCode(Service.java:504)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1622)
    at intradoc.server.Service.doAction(Service.java:476)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1439)
    at intradoc.server.Service.doActions(Service.java:471)
    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1371)
    at intradoc.server.Service.executeActions(Service.java:457)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:723)
    at intradoc.server.Service.doRequest(Service.java:1865)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NoSuchFieldError: m_locales
    at intradoc.custom.integrationsupport.services.LocaleStringsService.getLocaleStrings(LocaleStringsService.java:45)
    at sun.reflect.GeneratedMethodAccessor549.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
    at intradoc.server.Service.doCodeEx(Service.java:549)
    ... 15 more

    did you solve the problem???

Maybe you are looking for

  • Summary field of subreport used in main report formula calculation

    I have a summary field in a subreport that I want to use in a calculation of a percentage using a second summary field in the main report as the denominator.  How do I do this in a new formula?

  • Using tomcat with Oracle database?

    I am having some difficulty setting up Tomcat 6.0.16 with JDeveloper 10 and Oracle - I have with the kind help of people here found this: ADF-BC4J + MySQL 5 + Tomcat 6 Which helps me some of the way, but it is for MySQL, not Oracle, and I don't know

  • MM02 - MRP1 view

    Hi, I am running BDC to change DISMM (MRP type), MINBE (Reorder Point), DISLS (Lot size), MABST (Maximum Stock Level). I am getting the error while processing the session, "Input value is longer than screen field" for MABST field. Any suggestions ple

  • Delete Attachment in activity/interaction record ICWEB ???

    Hello I have implemented the deltion of attachment using following code. the commands went sucessfull but it is not deleting attachment(which is linked to activity/interaction record) lr_entity_col = lv_bo->get_related_entities(  iv_relation_name = 

  • PM/QM Integration for Calibration of Equipment /Measurement Instrument QC

    Dear Friends, I want to have inspection lot for calibration of Lab equipment what i understand is Creating the Maintenance Plan Assigning and Displaying the Task List  Scheduling the Maintenance Plan   Displaying the Calibration Order and Inspection