Ejb 3.0 with List as parameter

Hello,
I have deployed an ejb to a weblogic 10.0 server.
The method has a list as parameter.
public void testMethod(List<String> strings){
When I call this remotely i get the following exception:
javax.ejb.EJBException: nested exception is: java.rmi.UnmarshalException: Method not found: 'testMethod(Ljava.util.List;)'
java.rmi.UnmarshalException: Method not found: 'testMethod(Ljava.util.List;)'
     at weblogic.rmi.internal.MethodDescriptor.getCanonical(MethodDescriptor.java:210)
     at weblogic.rjvm.MsgAbbrevInputStream.getRuntimeMethodDescriptor(MsgAbbrevInputStream.java:496)
     at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:268)
     at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:918)
     at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:1084)
     at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:1001)
     at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:230)
     at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:877)
     at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:446)
     at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
     at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:383)
     at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:872)
     at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:808)
     at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:283)
     at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
However if I remove the type <String> from Remote interface and ejb implemetation it works fine.
Is this a known limitation of EJB or am I doing something wrong?
Best Regards.

I am using Spring to inject the bean to my test code.
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(
        locations = {"/WEB-INF/applicationContext-ejb.xml"})
public class ServiceTest extends AbstractDependencyInjectionSpringContextTests {
    @Autowired
    private TestServiceRemote testServiceRemote;
    @Test
    public void testDeneme(){
        List<String> strings = new ArrayList<String>();
        list.add("test1");
        list.add("test2");
        testServiceRemote,testMethod(strings)
}Thanks and Best Regards.

Similar Messages

  • What is a user parameter list in iMovie? I am trying to sent the movie from imovie to idvd and I keep getting an error with the user parameter list. Help?

    What is a user parameter list in iMovie? I am trying to sent the movie from imovie to idvd and I keep getting an error with the user parameter list. Help?

    Can you give more details?   What exactly is the entire error message text?  there should be an error number too.   Are you trying to finalize this to an external disk?

  • User command is not getting triggered in interactive ALV with LIST display

    Hi experts,
    I have developed an interactive ALV report with LIST display. Here, the issue is, when i double click a record in the primary ALV list, the control must go to the USER COMMAND event which i have written in my report. But the user command event is not getting triggered at all when i double click any record.
    It gives the following information instead.
    "Choose a valid function".
    (My user command name and its respective form name are same.)
    Here is my code..
    START-OF-SELECTION.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'TST1'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
      ENDIF.
    FORM tst1 USING r_ucomm LIKE sy-ucomm
                    rs_selfield TYPE slis_selfield.
    * Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.
    * Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.
    * Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.
    * Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.  CASE r_ucomm.
    *   When a record is selected
        WHEN '&IC1'.
    *     Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.      IF sy-subrc = 0.
    *       Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.
    *       Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
    Please advice what is the msitake i have done here..

    Read the following code:
    pass the  i_callback_user_command = g_user_command to the ALV function module and write the FORM user_command USING ucomm    LIKE sy-ucomm
                            selfield TYPE slis_selfield.
    as shown below.
    thanx
    Data for ALV display
    DATA  : gt_fieldcat TYPE slis_t_fieldcat_alv,
            gt_events           TYPE slis_t_event,
            g_variant LIKE disvariant,
            g_user_command      TYPE slis_formname VALUE 'USER_COMMAND',
            g_status            TYPE slis_formname VALUE 'SET_PF_STATUS',
            gt_list_top_of_page TYPE slis_t_listheader,
            g_repid LIKE sy-repid,
            gf_pos TYPE i
    Data for ALV display
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
               EXPORTING
              i_callback_program      = g_repid
                 i_callback_program      = sy-repid
                 it_fieldcat             = gt_fieldcat[]
           it_events               = gt_events[]
              i_callback_user_command = g_user_command
                 i_save                  = 'A'
                 is_variant              = g_variant
               TABLES
                 t_outtab                = it_print.
    FORM user_command USING ucomm    LIKE sy-ucomm
                            selfield TYPE slis_selfield.
      CASE ucomm.
        WHEN '&IC1'.
          CASE selfield-sel_tab_field.
            WHEN '1-KUNNR'.
              READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
              IF sy-subrc = 0.
                SET PARAMETER ID 'BPA' FIELD wa_print-kunnr.
                CALL TRANSACTION 'BP'.
              ENDIF.
            WHEN '1-MATNR'.
              READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
              IF sy-subrc = 0.
                SET PARAMETER ID 'JP_ISS' FIELD wa_print-matnr.
                CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN..
               GET PARAMETER ID 'WRK' FIELD wa_zprint-werks.
               SET PARAMETER ID 'VKO' FIELD wa_zprint-vkorg.
               SET PARAMETER ID 'VTW' FIELD wa_zprint-vtweg.
               CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN.
              ENDIF.
    Endcase.
    Endform.

  • Reports with many Dynamic Parameter

    Post Author: Lalit
    CA Forum: Data Connectivity and SQL
    Hi
    I created a report with 5 dynamic parameter in CR XI. There are total 6 SQL command . First one is used for the report purpose and rest is for parameter of the report. There SQL commands are not linked to each other. Performnce of the report is very slow. Data is coming fine on the report. The Command one is returning around 50000 records.
    Paramter are used in record selction to further filter the records
    Please help how i can increase the performance .
    Lalit

    Post Author: yangster
    CA Forum: Data Connectivity and SQL
    eeekwhy don't you create 5 business view objects based on each of your dynamic promptsthis way you can share these parameters in other reports instead of having them all imbedded inside a single reportyou should also be able to schedule the list of values too so they will load faster

  • List of "parameter keys"

    Can anyone tell me where to find the current list of "parameter keys"? Im using the run_product built-in and I would like to know what "keys" I can pass to reports?
    From oracle documentation
    key     The name of the parameter. The data type of the key is VARCHAR2.

    Yes they are but the list is extensible with as many custom keys as you like. If you want to know what the pre-defined parameters are then look those up in the Reports Help

  • SOURCE_PACKAGE is INCOMPATIBLE with the FORMAL PARAMETER DATA_PACKAGE

    Hello Experts,
    Infocube A is getting updated from shopping carts DSO. I have added 3 new fields in SC DSO then cube transformations got inactive.  I do not want 3 new fields in cube. we have report on DSO. Below is syntax error when  checking transformations.
    Error: In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter "SOURCE_PACKAGE" is incompatible with the formal parameter "DATA_PACKAGE".
    3 New fields are available in tys_SC_1 but not available in tys_SC_1_full. I tried to insert 3 fields in tys_SC_1_full but still it is showing same syntax error.  And more TYPE is availalbe tys_TG_1_full.  This type does not have 3 fields.
    Please  advice.
    Thanks in advance.
    Regards
    Venkata.

    Hello Rathy,
    I have resolved issue by addinng fields to data package. Issue is becasue of 4 fields in source and I have added only 3 fields in data package. Added one more field to data package and no syntax errors when checked.
    Thanks for the input and points assigned.
    Regards
    Venkata Agraharam.

  • Calling Glassfish jdbc Datasorce in EJB 3.0 with @Resource annotation.

    I tried EJB 3.0 with netbeans and glassfish and "{color:#ff0000}+_ORACLE_+{color}". I wanted to link the oracle database to GLASSFISH server and I followed the instructions.After I clicked 'ping' button, it displayed as *{color:#339966}'PING SUCCEED".{color}*
    But I couldn't call my datasource from the eje stateless session bean with @Resource annotation.It resulted a dependency injection exception. Can some one tell me how to do this properly.
    {color:#ff0000}Thanks in Advance!!!!{color}

    Frank, yes, I can modify if it is necessary the datasource but, how can I say in the xxxx-jdbc.xml not to use JTA transactions when this data source is called inside a ejb 3.0 method?
    I'm using Jdev11g and the integrated Web Logic Server.
    Thank's

  • A Tip for using EJB 3.0 with WebLogic Ant Tasks

    I started out writing this up as a problem, but then I found the answer so I'm, posting a tip instead.
    When I tried to write an EJB [stateless] using EJB 3.0 in my legacy Weblogic ear project I started getting this error:
    <pre>
    No EJBs found in the ejb-jar file 'test'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    </pre>
    This is why: wlcompile will put the class files in the App-Inf/classes directory unless it finds an ejb-jar.xml file in the META-INF directory for the module it is working on. With EJB 3.0, I wasn't using an ejb-jar.xml file because it was unnecessary. Later, Appc runs and it complains <b>because there are no classes module directory, they went into the shared ear folder instead.</b>
    Here's I how it working again: Use javac [not wlcompile] to compile the EJB 3.0 module and make sure that the class files go into the correct module directory. Then you can use wlappc to generate all the associated files for the EJB. I have sucessfully deployed an ear file that uses both EJB 2.x and EJB 3.0 with this approach.
    I wish Weblogic's own ejb3.0 sample application used their split directory deployment.
    Good Luck.
    John Aronson

    Hi John,
    I am working on development an enterprise application using EJB 3.0 on Weblogic 10.
    While developing, I am keeping all my classes (from ejb's as well as web) into APP-INF/classes directory. It is working fine for Web and ejb 2.0 packages, but ejb 3.0 packages, I get the following error when I keep my ejb 3.0 beans classes in APP-INF/classes directory.
    No EJBs found in the ejb-jar file 'customer'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    One solution is to keep the classes under customer ejb directory, but I wan tto keep all the classes in APP-INF/classes directory so that when using Eclipse IDE I can output all compiled sources into APP-INF/classes directory.
    Has anyone faced this situation? Any suggestions to fix this issue?

  • Subroutine-the actual parameter is incompatible with the formal parameter

    Hi,
    I have the following code that is outputting an error message during activation:
    DATA: I_RESBB TYPE TABLE OF RESBB,
          WA_RESBB TYPE RESBB.
    PERFORM OBTAIN_RESBB_DATA
    USING I_RESBB.
    *&      Form  OBTAIN_RESBB_DATA
    *       text
    *      -->P_I_RESBB  text
    FORM OBTAIN_RESBB_DATA  USING    VALUE(P_I_RESBB) TYPE RESBB.
    ENDFORM.                    " OBTAIN_RESBB_DATA
    However, I am getting the following messages during activation:
    In PERFORM or CALL FUNCTION "OBTAIN_RESBB_DATA", the actual parameter
    "I_RESBB" is incompatible with the formal parameter "P_I_RESBB".
    What am I doing wrong? I have checked through many different threads & sites but can't find a solution.
    Thanks,
    John

    John, since you seem quite familiar with the ABAP help and obsolete statements I'm now surprised what you were initially asking for.. .
    Anyhow, below a sample coding with the table being passed as a USING parameter. Avoid using VALUE on the parameter (i.e. pass by value) unless you need a copy of the parameter. Otherwise this leads to a performance overhead (requirement to copy the parameter), especially for large internal tables.
    TYPES T_RESBB_TAB TYPE STANDARD TABLE OF RESBB WITH NON-UNIQUE DEFAULT KEY.
    DATA I_RESBB TYPE T_RESBB_TAB.
    PERFORM OBTAIN_RESBB_DATA USING I_RESBB.
    FORM OBTAIN_RESBB_DATA  USING I_RESBB TYPE T_RESBB_TAB.
      FIELD-SYMBOLS: <RESBB> TYPE LINE OF T_RESBB_TAB.
      LOOP AT I_RESBB ASSIGNING <RESBB>.
        " Additional coding for evaluating/updating the table
      ENDLOOP.
    ENDFORM.
    Cheers, harald
    P.S.: Update of my posting: Just read your one comment. Looks like your only problem was attempting to define the table type in the parameters section of the form routine. This doesn't work. If you don't have a type you could use a generic type (i.e. simply just say <i>using i_resbb type table</i>), but in general I would stick to strong typing unless you have a generic routine that must handle different table types. So simply refer to a table type from dictionary or that you defined in your program.

  • Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013

    Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013 
    Newform.aspx of list:-
    Custom List is not saving data sometimes in the new form after 15 minutes and only blank entry record got created without saving data, even though some columns are mandatory fields?

    Hello dcakumar,
    Sounds like a strang issue. If you can reproduce this can you see some errors in the ULS logs?
    - Dennis | Netherlands | Blog |
    Twitter

  • Issue with Custom data parameter in Excel Data Connection

    Hello,
    We are querying a OLAP (SSAS 2008) cube using Excel 2007 by creating a data connection to SSAS server with an extended parameter “Custom Data”. We are using custom data parameter to apply our application’s user security to filter dimension
    members in Excel’s pivot table report. We have created a pivot table in Excel and the excel is including this custom data parameter along with each request that excel is submitting to SSAS.
    However, when the user selects “Show Properties in Report” option for a dimension which is selected in Row-axis of pivot table, Excel is not including custom data parameter . Why this “Custom Data” parameter is not being included in
    the request only for this specific case?
    1. The Request which sent from Excel to SSAS when user clicks on “Show Properties in Report” option
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Session xmlns="urn:schemas-microsoft-com:xml-analysis" SessionId="AE6B294B-4983-4010-BC5F-E0896A49ECD9"/></soap:Header><soap:Body><Discover
    xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>DISCOVER_LITERALS</RequestType><Restrictions/><Properties><PropertyList><Content>SchemaData</Content><Format>Tabular</Format></PropertyList></Properties></Discover></soap:Body></soap:Envelope>
    2. The sample Request which sent from Excel to SSAS for all other requests
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Session xmlns="urn:schemas-microsoft-com:xml-analysis" SessionId="74165AD6-C240-4634-92A1-61A400A3FC97"/></soap:Header><soap:Body><Discover
    xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>MDSCHEMA_CUBES</RequestType><Restrictions><RestrictionList><CUBE_NAME>RepCube</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>QAV10_12thMay2010</Catalog><Timeout>5000</Timeout><SafetyOptions>2</SafetyOptions><MdxMissingMemberMode>Error</MdxMissingMemberMode><LocaleIdentifier>1033</LocaleIdentifier><DbpropMsmdMDXCompatibility>1</DbpropMsmdMDXCompatibility><CustomData>xxxxxx</CustomData></PropertyList></Properties></Discover></soap:Body></soap:Envelope>
    As the Custom Data parameter is missing in 1st request our application logic is throwing a custom exception to Excel and Excel is not able to understand the exception message. Excel is sending the same request repeatedly (going into infinite loop) and the excel
    window is freezed. Not able to work with excel until restarting the Excel.
    Can anyone help me to resolve the above? quick help is much appriciated!
    Thanks,
    Venkat

    Venkat,
    We have a very similar issue, but there is almost no material to help us. If this gets to you, please let me know if you progressed it or whether I need to go to Microsoft for a solution
    THanks
    David

  • Creating a job for a procedure with an input parameter

    Hi,
    I want to create a job for a procedure ( sp_proc ) with a input parameter.
    The input parameter is a date value.
    As per the syntax for dbms_job.submit procedure;
    dbms_job.submit (
    job IN BINARY_INTEGER,
    what IN VARCHAR2,
    next_date IN DATE,
    interval IN VARCHAR2 DEFAULT 'NULL',
    no_parse IN BOOLEAN DEFAULT FALSE);
    How should the procedure be declared in the 'what' parameter of the dbms_job.submit procedure ?
    Please guide.
    Thanks.

    Hi,
    You are wright, I have found this thread [DBMS_JOB -- how to pass parameters to the job|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:351033761220].
    Regards,

  • How I can stop the combo box with list of values from fireing validations

    Hi I'm using Jdeveloper 11.1.2.3.0
    Using Hr Schema employees table
    I Display employees data in af:table
    and I make List Of values on Department_id filed to easy change the employee department
    and another one on Job_id filed
    and Imake them UI Hints as ( combo box with list of values ) in the employeesVO
    the problem is when I Select a value from department or jobs ( combo box with list of values )
    fires the entire filed validations for mandatory atributes
    Note : the af:table Property ( contedelivery) is set to (immediate )
    How I can stop the combo box with list of values from fireing validations

    check it out.,
    http://andrejusb.blogspot.in/2012/09/what-to-do-when-adf-editable-table.html

  • Is there a way to shorten the "Open With" list?

    Hi -
    This may be a question for Apple because it is a uniquely Apple Finder problem.
    Or maybe some clever 3rd party Apple developer will take this on - because this is an Apple Finder problem (hint).
    Is there a way to shorten the "Open With" list that appears when I right-click on a file?
    Heres why this is important to me.
    1- I'm seeing multiple versions of the same app on the list, like Photoshop CS5, Photoshop CS5.1, Photoshop CS 5.5.  I can't think of any reason why I would ever want to use an older version of Photoshop.  And it's not only Photoshop or even Adobe products.
    2- I see incorrect apps being suggested.  If I right click on an Illustrator file I see that TextEdit is one of the choices.  I get Photoshop as an option to open HTML files.  I see BBEdit as an option to open JPEG files.  These are bizarre associations.  Why are they even on the list?
    3- With so many irrelevant choices the possibility of selecting the wrong application increases and doing so is a waste of time and resources.  Once I accidentally selected a text editor to open a JPEG.  After about 3 minutes of RAM-sucking processing I got a huge file of jibberish text characters that was thousands of lines long.  Waste of time!
    I KNOW I'm not the only one with this question. 
    Is there anyone out there with an answer???
    Thanks,
    JL

    baltwo - thank you for the expert advice. 
    I did as you instructed and the situation is better but I don't believe it's solved. 
    I still get 3 versions of Photoshop when I right click on a PSD.  I also get Dashcode and Textwrangler - which are the oddest associations.  All together I get 25 apps responding to "Open With" on a PSD.  And this is an improvement.
    Do you think I would get even better results if I ran the same command again?
    Thanks again.
    JL

  • A free ebook for EJB 3.0 with the latest version of Netbean

    Hi,
    I am a trainee although with a good background in java.
    I'm urgently in need of a free ebook for EJB 3.0 with the latest version of Netbean. Pls, help me with one if you have. my email is [email protected]
    Again, is container managed bean good for a big project?
    Thanks.
    Emeka

    emekaco wrote:
    Hi,
    I am a trainee although with a good background in java.
    I'm urgently in need of a free ebook for EJB 3.0 with the latest version of Netbean. Pls, help me with one if you have. my email is [email protected]
    http://www.theserverside.com/tt/books/wiley/masteringEJB3/index.tss
    Here's a good free e-book but without Netbean. It covers everything you would need to know about EJBs.
    >
    Again, is container managed bean good for a big project?
    The question is too vague to be answered. It's a design decision that needs more details.

Maybe you are looking for

  • Invoice block for payment when no GR

    Hi Folks, I would like to block an invoice for payment, when no GR has been made and we do not want to use GR based IV!!!! We want to be able to post the invoice even though no GR has been done. I tried to mess around with tolerance DQ, without succe

  • Call to Graphics2D.drawImage freezes OS

    Whenever I call Graphics2D.drawImage(BufferedImage, BufferedImageOp, int, int), the entire system freezes for about 10 seconds, and then comes back as though nothing had happened. This is playing havoc with my code, because the paint routine is based

  • Error when returning Vector from EJB Session Bean

    I am testing the EJB functionality within JDeveloper(9.0.3). I simply expanded on the tutorial that is in the documentation (departments and employees). I created a method in the stateless session bean that retrieves a Collection of employees for a d

  • Ios7 Bluetooth issues with Nike Fuelband

    I'm an avid user of Nike's fuelband and I'm having connecting to my iPhone 5 running ios via Bluetooth . I can connect the devices but after a few minutes the connection is lost . This is driving me crazy. Before ios 7, I've never had this issue!!  I

  • Purchased Music playist missing

    My Purchased Music Playlist is missing from the "Store" menu. Please help.