Software error (outside VM) when calling JMF Player::close()

First off, I apologize for cross posting this here and in the "General Java Programming" forum. I did not know there was a forum specific for JMF, until someone mentioned it to me.
I have written the following test program:
import java.io.File;
import java.io.IOException;
import javax.media.Time;
import javax.media.Player;
import javax.media.Manager;
import javax.media.NoPlayerException;
class MyMP3Player {
public static void main(String [] args) {
try {
File mp3File = new File("test.mp3");
Player aPlayer = Manager.createPlayer(mp3File.toURL());
aPlayer.start(); // Starts asynchronous playback
Thread.sleep(10*1000); // Allow playback to continue for 10
aPlayer.stop(); // stops playback (well, it really PAUSES!!!)
aPlayer.deallocate();
aPlayer.close();
catch (IOException e) {e.printStackTrace();}
catch (NoPlayerException npe) {npe.printStackTrace();}
catch (InterruptedException ie) {ie.printStackTrace();}
The program runs fine for the first 2 times: I can hear the first 10 seconds of the test.mp3 file. Then, on the third run (and every other run after that), after it has played the file for the 10 seconds, the program gives me the error pasted below and exits. Does anyone know how to fix this? Am I doing something wrong in the program? Oh, and yes, I have tested it with other mp3 files and it still does the same thing.
BTW, I am running WinXP, and JMF 2.1.1e . Also, I have noticed that JMStudio does not have this problem, does JMStudio not call Player::close() ever?
===== ERROR BEGINS HERE =====
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x73F91D04
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at com.sun.media.amovie.ActiveMovie.dispose0(Native Method)
at com.sun.media.amovie.ActiveMovie.dispose(ActiveMovie.java:329)
at com.sun.media.amovie.AMController.doClose(AMController.java:632)
- locked <029F77C8> (a java.lang.Integer)
at com.sun.media.BasicController.close(BasicController.java:261)
at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
at com.sun.media.content.video.mpeg.Handler.doClose(Handler.java:158)
at com.sun.media.BasicController.close(BasicController.java:261)
at MyMP3Player.main(MyMP3Player.java:30)
Dynamic libraries:
0x00400000 - 0x00406000 C:\WINDOWS\system32\java.exe
0x77F50000 - 0x77FF9000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F45000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5B000 C:\WINDOWS\system32\ADVAPI32.dll
0x77CC0000 - 0x77D35000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x6D340000 - 0x6D46A000 C:\Program Files\Java\j2re1.4.1_02\bin\client\jv
m.dll
0x77D40000 - 0x77DCD000 C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\system32\WINMM.dll
0x6D1E0000 - 0x6D1E7000 C:\Program Files\Java\j2re1.4.1_02\bin\hpi.dll
0x6D310000 - 0x6D31E000 C:\Program Files\Java\j2re1.4.1_02\bin\verify.dl
l
0x6D220000 - 0x6D239000 C:\Program Files\Java\j2re1.4.1_02\bin\java.dll
0x6D330000 - 0x6D33D000 C:\Program Files\Java\j2re1.4.1_02\bin\zip.dll
0x10000000 - 0x10015000 C:\WINDOWS\system32\jmutil.dll
0x0AFA0000 - 0x0AFAD000 C:\WINDOWS\system32\jmam.dll
0x771B0000 - 0x772CA000 C:\WINDOWS\system32\ole32.dll
0x5AD70000 - 0x5ADA4000 C:\WINDOWS\system32\uxtheme.dll
0x76FD0000 - 0x77048000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.dll
0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x72D20000 - 0x72D29000 C:\WINDOWS\system32\wdmaud.drv
0x72D10000 - 0x72D18000 C:\WINDOWS\system32\msacm32.drv
0x77BE0000 - 0x77BF4000 C:\WINDOWS\system32\MSACM32.dll
0x77BD0000 - 0x77BD7000 C:\WINDOWS\system32\midimap.dll
0x73F10000 - 0x73F65000 C:\WINDOWS\system32\DSOUND.DLL
0x73EE0000 - 0x73EE4000 C:\WINDOWS\system32\KsUser.dll
0x6D000000 - 0x6D105000 C:\Program Files\Java\j2re1.4.1_02\bin\awt.dll
0x73000000 - 0x73023000 C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763AA000 C:\WINDOWS\system32\IMM32.dll
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58C000 C:\WINDOWS\system32\DBGHELP.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\system32\PSAPI.DLL
Local Time = Wed May 28 09:46:23 2003
Elapsed Time = 19
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
# An error report file has been saved as hs_err_pid180.log.
# Please refer to the file for further information.

Actually, I just ran another test. My previous fix does work 100%, but it is not necessary to call the Player::close() from within the AWT/SWING event dispatching thread, but it IS a requirement for you to have an AWT/SWING event dispatching thread running somewhere in the background, otherwise the darn thing crashes...
So, if you create some kind of GUI along with your app (thereby creating an AWT/SWING event dispatching thread), or just schedule some event using the SWING Timer class, the Player::close() can be called from any thread...
Hobbieman

Similar Messages

  • Error:Type conflict when calling a function module RFC_ERROR_SYSTEM_Failure

    Hi Experts,
    When I run my Application in Portal, i am getting the following error.
    Type conflict when calling a function module., error key: RFC_ERROR_SYSTEM_FAILURE
    When I execute the BAPI, it is getting executed.
    My Bapi Strucute:
    Import Parameters
    IM_MAT_Search --> ZPTIP_MAT --> Import Parameters
    Tables
    IT_INFO_REC --> ZMM_GET_ITEM --> Output Parameters
    When I import the model, i am getting the structure like this
    BAPI_Name > ZMM_BAPI_Input> IM_MAT_Search(respective Parameters) , Output (respective Tables and their parameters)
                        > ZMM_Input1> Parameters
    This is the way, how i am executing in webdynpro java
    Zmm_Bapi_Ptip_Search_Input eleInput = new Zmm_Bapi_Ptip_Search_Input();
    wdContext.nodeZmm_Bapi_Ptip_Search_Input().bind(eleInput);
    Zptip_Asset eleInputAsset = new Zptip_Asset();
    eleInputAsset.setSearch("ACRS");
    wdContext.nodeZptip_Asset().bind(eleInputAsset);
    eleInput.setIm_Ast_Search(eleInputAsset);
    wdContext.nodeZmm_Bapi_Ptip_Search_Input().bind(eleInput);
    wdContext.nodeZmm_Bapi_Ptip_Search_Input().currentZmm_Bapi_Ptip_Search_InputElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    Please let me know, how to do the same.
    Thanks in advance.
    Regards,
    Palani

    Hi David,
    I checked for the Parameter of setIm_Ast_Search, it is of Zptip_Asset.
    Hi Saleem,
    When I changed the same, i am getting the Type conflict error,
    Type conflict when calling a function module., error key: RFC_ERROR_SYSTEM_FAILURE
    Please let me know,what can be done in this regard to solve the problem.
    My BAPI Structure when imported as model
    SearchBAPI
    --> ZMM_BAPI_SEARCH_INPUT
    > IM_AST_SEARCH(zPTIP_ASSET)
    >Zptip_Asset
    >Search (Parameter)
    > OutPut(ZMM_BAPI_Search_Output)
    >IT_Asser_Rec(ZMM_Asset)
    >ZMM_Asset
    >TXT100 (output Parameter)
    --> ZMM_BAPI_SEARACH_OUTPUT
    --> ZPTIP_ASSET
    >Search (Parameter)
    Thanks & Regards,
    Palani
    Edited by: Palani Appan on Nov 11, 2009 5:31 PM

  • MSS - Business Event Details - Error Unexpected Exception when Calling RFC

    Dear Experts,
    Manager is getting the Error "Unexpected Exception when Calling RFC from Profile Application 'Business Event' when he tries to get the Training history of ONE employee in MSS. However, he is getting the details for the other employees of his department.
    Any inputs on this?
    Thank you.

    I believe it is our custom iView that is incorrect.

  • ERROR: -Type conflict when calling a function module

    hi to all,
    when iam executing the program in browser   Type conflict when calling a function module  error is showing, i have bind all the attribute correctly still iam getting error, WHEN I  CLICK ON THE SEARCH BUTTON DATA IS NOT COMING  TO MY TABLE ITAB1 plz help me....
      DATA:
          NODE_IP_SELECTION                   TYPE REF TO IF_WD_CONTEXT_NODE,
          ELEM_IP_SELECTION                   TYPE REF TO IF_WD_CONTEXT_ELEMENT,
          STRU_IP_SELECTION                   TYPE IF_PLANNING_HISTORY=>ELEMENT_IP_SELECTION ,
          ITAB TYPE TABLE OF ZSL_PL_UPDATE1,
          WA TYPE ZSL_PL_UPDATE1.
      navigate from <CONTEXT> to <IP_SELECTION> via lead selection
        NODE_IP_SELECTION = WD_CONTEXT->GET_CHILD_NODE( NAME = `IP_SELECTION` ).
      get element via lead selection
        ELEM_IP_SELECTION = NODE_IP_SELECTION->GET_ELEMENT(  ).
      get all declared attributes
        ELEM_IP_SELECTION->GET_STATIC_ATTRIBUTES(
          IMPORTING
            STATIC_ATTRIBUTES = STRU_IP_SELECTION ).
    CALL FUNCTION 'ZBAPI_PL_UPDATE'
            EXPORTING
              GV_LIFNR           =  STRU_IP_SELECTION-LIFNR
              GV_MATNR           = STRU_IP_SELECTION-LIFNR
              GV_GJAHR           = ' '
            GV_WEEK_LOW        =   STRU_IP_SELECTION-FROM_WEEK
             GV_WEEK_HIGH       =  STRU_IP_SELECTION-TO_WEEK
          IMPORTING
            RETURN             =
            TABLES
              GT_PL_UPDATE       = ITAB
             DATA:
               NODE_PLANN_NODE                     TYPE REF TO IF_WD_CONTEXT_NODE,
               ELEM_PLANN_NODE                     TYPE REF TO IF_WD_CONTEXT_ELEMENT,
               STRU_PLANN_NODE                     TYPE IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE,
               WA1 TYPE IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE,
               ITAB1 TYPE TABLE OF IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE.
              LOOP AT ITAB INTO WA.
               MOVE-CORRESPONDING WA TO WA1.
               APPEND WA1 TO ITAB1.
              ENDLOOP.
           navigate from <CONTEXT> to <PLANN_NODE> via lead selection
             NODE_PLANN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = `PLANN_NODE` ).
             CALL METHOD NODE_PLANN_NODE->BIND_TABLE
               EXPORTING
                 NEW_ITEMS            = ITAB1
                SET_INITIAL_ELEMENTS = ABAP_TRUE
                INDEX                =
    ENDMETHOD.

    CALL FUNCTION 'ZBAPI_PL_UPDATE'
    EXPORTING
    GV_LIFNR = STRU_IP_SELECTION-LIFNR
    GV_MATNR = STRU_IP_SELECTION-LIFNR
    GV_GJAHR = ' '
    GV_WEEK_LOW = STRU_IP_SELECTION-FROM_WEEK
    GV_WEEK_HIGH = STRU_IP_SELECTION-TO_WEEK
    IMPORTING
    RETURN =
    TABLES
    GT_PL_UPDATE = ITAB
    Problem is here
    check out the type GV_GJAHR whether it accepts string type.
    thanks
    sarbjeet singh

  • DTP error: Type conflict when calling FM - after transport to Prd

    Hi ,
    i have asset_attr datasource.it was working in my BW dev.
    however after transport to BW prod. when i try to upload data using DTP it gives me an Abrupt error
    "0ASSET_ATTR IPDCLNT030 : Type conflict when calling a function module (fiel
    Message no. RSDS666"
    no more information is given, & the request ends in red.
    This is first time i'm using this Infoobject upload.
    however all my other transaction data & other master data all are getting uploaded fine.
    even Asset_text datasource is working fine.
    Did anyone face similiar probs ?
    can anyone guide me on this error ?
    thanks
    ramesh

    Hi
    Take a look at note 1130907.
    Regards,
    Chandu.

  • Getting error "outside VM" when using updateRow();

    Hi guys,
    I've been posting alot about resultset problems lately, but I can't seam to get the hang of it. But I guess that will come in time.
    This time it seams like i've really manage to mess things up. Im getting an error "outside the VM", check the snippet at the end of the message. First take a look at my code; I'm trying to update a ResultSet with values from a TableModel:
    try{
                for(int i =1; i <= aModel.getRowCount(); i++) {
                        rs.absolute(i);                   
                        Vector modelData = aModel.getDataVector();                                    
                        int modelValue = Integer.parseInt((
                                                (Vector)modelData.elementAt(i-1)).elementAt(4).toString());                  
                        Integer currentInteger = new Integer(modelValue);
                        rs.updateString("Artnamn", (((Vector)modelData.elementAt(i-1)).elementAt(1)).toString() );
                        rs.updateString("Utpris", (((Vector)modelData.elementAt(i-1)).elementAt(2)).toString() );
                        rs.updateString("Info", (((Vector)modelData.elementAt(i-1)).elementAt(3)).toString() );
                        rs.updateString("Ilager", currentInteger.toString() ); 
                        rs.updateRow();
                        theGui.setStatus("Lagerstatus Sparade");
            } catch(SQLException e) {
                System.out.println("Uppdateraknappen:" + e);
            }And here is the error im getting. I occors when i do rs.updateRow();
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D261419
    Function=Java_sun_jdbc_odbc_JdbcOdbc_bindColBinary+0x112
    Library=C:\j2sdk1.4.1_02\jre\bin\JdbcOdbc.dll
    Current Java thread:
         at sun.jdbc.odbc.JdbcOdbc.bindColBinary(Native Method)
         at sun.jdbc.odbc.JdbcOdbc.SQLBindColBinary(JdbcOdbc.java:238)
         at sun.jdbc.odbc.JdbcOdbcResultSet.bindBinaryCol(JdbcOdbcResultSet.java:5017)
         at sun.jdbc.odbc.JdbcOdbcResultSet.bindCol(JdbcOdbcResultSet.java:4761)
         at sun.jdbc.odbc.JdbcOdbcResultSet.updateRow(JdbcOdbcResultSet.java:4074)
         at LagerPanel.uppdateraKnappActionPerformed(LagerPanel.java:107)
         at LagerPanel.access$000(LagerPanel.java:17)
         at LagerPanel$1.actionPerformed(LagerPanel.java:75)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5134)
         at java.awt.Component.processEvent(Component.java:4931)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3639)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
         at java.awt.Window.dispatchEventImpl(Window.java:1590)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    Dynamic libraries:
    0x00400000 - 0x00406000      C:\j2sdk1.4.1_02\bin\java.exe
    0x77F50000 - 0x77FF9000      C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F4A000      C:\WINDOWS\system32\kernel32.dll
    0x77DC0000 - 0x77E5D000      C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x78086000      C:\WINDOWS\system32\RPCRT4.dll
    0x77C00000 - 0x77C53000      C:\WINDOWS\system32\MSVCRT.dll
    0x6D340000 - 0x6D46A000      C:\j2sdk1.4.1_02\jre\bin\client\jvm.dll
    0x77D30000 - 0x77DBC000      C:\WINDOWS\system32\USER32.dll
    0x77C60000 - 0x77CA0000      C:\WINDOWS\system32\GDI32.dll
    0x76B30000 - 0x76B5D000      C:\WINDOWS\System32\WINMM.dll
    0x6D1E0000 - 0x6D1E7000      C:\j2sdk1.4.1_02\jre\bin\hpi.dll
    0x6D310000 - 0x6D31E000      C:\j2sdk1.4.1_02\jre\bin\verify.dll
    0x6D220000 - 0x6D239000      C:\j2sdk1.4.1_02\jre\bin\java.dll
    0x6D330000 - 0x6D33D000      C:\j2sdk1.4.1_02\jre\bin\zip.dll
    0x6D270000 - 0x6D28C000      C:\j2sdk1.4.1_02\jre\bin\jdwp.dll
    0x6D180000 - 0x6D185000      C:\j2sdk1.4.1_02\jre\bin\dt_socket.dll
    0x71AA0000 - 0x71AB4000      C:\WINDOWS\System32\ws2_32.dll
    0x71A90000 - 0x71A98000      C:\WINDOWS\System32\WS2HELP.dll
    0x55600000 - 0x5561D000      C:\Program\Microsoft Firewall Client\wspwsp.dll
    0x76D50000 - 0x76D66000      C:\WINDOWS\System32\iphlpapi.dll
    0x71A40000 - 0x71A7C000      C:\WINDOWS\System32\mswsock.dll
    0x76F10000 - 0x76F35000      C:\WINDOWS\System32\DNSAPI.dll
    0x76FA0000 - 0x76FA7000      C:\WINDOWS\System32\winrnr.dll
    0x76F50000 - 0x76F7D000      C:\WINDOWS\system32\WLDAP32.dll
    0x71A80000 - 0x71A88000      C:\WINDOWS\System32\wshtcpip.dll
    0x76FB0000 - 0x76FB5000      C:\WINDOWS\System32\rasadhlp.dll
    0x6D000000 - 0x6D105000      C:\j2sdk1.4.1_02\jre\bin\awt.dll
    0x72FD0000 - 0x72FF3000      C:\WINDOWS\System32\WINSPOOL.DRV
    0x76370000 - 0x7638C000      C:\WINDOWS\System32\IMM32.dll
    0x7CCC0000 - 0x7CDE1000      C:\WINDOWS\system32\ole32.dll
    0x6D190000 - 0x6D1E0000      C:\j2sdk1.4.1_02\jre\bin\fontmanager.dll
    0x51000000 - 0x51047000      C:\WINDOWS\System32\ddraw.dll
    0x73B90000 - 0x73B96000      C:\WINDOWS\System32\DCIMAN32.dll
    0x5C000000 - 0x5C0C8000      C:\WINDOWS\System32\D3DIM700.DLL
    0x746F0000 - 0x74734000      C:\WINDOWS\System32\MSCTF.dll
    0x63000000 - 0x63014000      C:\WINDOWS\System32\SynTPFcs.dll
    0x77BF0000 - 0x77BF7000      C:\WINDOWS\system32\VERSION.dll
    0x6D260000 - 0x6D26B000      C:\j2sdk1.4.1_02\jre\bin\JdbcOdbc.dll
    0x15440000 - 0x15472000      C:\WINDOWS\System32\ODBC32.dll
    0x77330000 - 0x773BB000      C:\WINDOWS\system32\COMCTL32.dll
    0x773C0000 - 0x77BB4000      C:\WINDOWS\system32\SHELL32.dll
    0x70A70000 - 0x70AD5000      C:\WINDOWS\system32\SHLWAPI.dll
    0x76390000 - 0x763D5000      C:\WINDOWS\system32\comdlg32.dll
    0x78090000 - 0x78174000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
    0x1F850000 - 0x1F867000      C:\WINDOWS\System32\odbcint.dll
    0x155A0000 - 0x155FE000      C:\WINDOWS\System32\SQLSRV32.dll
    0x5C6B0000 - 0x5C6DD000      C:\WINDOWS\System32\SQLUNIRL.dll
    0x77110000 - 0x7719B000      C:\WINDOWS\system32\OLEAUT32.dll
    0x71C10000 - 0x71C5E000      C:\WINDOWS\System32\NETAPI32.dll
    0x75920000 - 0x75927000      C:\WINDOWS\System32\NDDEAPI.DLL
    0x1FA20000 - 0x1FA37000      C:\WINDOWS\System32\sqlsrv32.rll
    0x76F80000 - 0x76F90000      C:\WINDOWS\System32\Secur32.dll
    0x15600000 - 0x15619000      C:\WINDOWS\System32\odbccp32.dll
    0x15620000 - 0x1562F000      C:\WINDOWS\System32\DBNETLIB.DLL
    0x71AC0000 - 0x71AC9000      C:\WINDOWS\System32\WSOCK32.dll
    0x71F70000 - 0x71F74000      C:\WINDOWS\System32\security.dll
    0x76D00000 - 0x76D1D000      C:\WINDOWS\system32\msv1_0.dll
    0x76790000 - 0x767A3000      C:\WINDOWS\System32\ntdsapi.dll
    0x762A0000 - 0x76329000      C:\WINDOWS\system32\crypt32.dll
    0x76280000 - 0x7628F000      C:\WINDOWS\system32\MSASN1.dll
    0x15820000 - 0x15844000      D:\Program\Trillian\events.dll
    0x76C80000 - 0x76CA2000      C:\WINDOWS\system32\imagehlp.dll
    0x6DAA0000 - 0x6DB1D000      C:\WINDOWS\system32\DBGHELP.dll
    0x76BE0000 - 0x76BEB000      C:\WINDOWS\System32\PSAPI.DLL
    Local Time = Wed Jan 14 15:03:28 2004
    Elapsed Time = 140
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
    #All help will be greatly appriciated!
    - Karl XII

    Here is the code that creates the resultSet:
    ResultSet resultset = null;
            try {
            Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver");
             Connection connection2= DriverManager.getConnection(
                   "jdbc:odbc:mittDSNnamn", "", ""); //Pass och userID*/
             Statement stmt = connection2.createStatement(
                                          ResultSet.TYPE_SCROLL_INSENSITIVE,
                                          ResultSet.CONCUR_UPDATABLE);
             resultset = stmt.executeQuery(sqlCommand); 
          } catch (Exception e) {
             System.out.println( "I sqlHanteraren f�r vi: " + e);  

  • When a JMF Player has Stopped

    I'm new to this framework. I'm playing an video file and I'd like to be able to listen to the Player (or other object) in order to know when the video is finished so that I can close it and hide the frame containing it. I can get the duration of the Player and then close and hide the frame after that amount of time has elapsed, but I'd prefer to have a genuine event coming from the Player (or other object) which signaled that the show was over.
    Thanks for any tips.

    I see. You create a ControllerAdapter object and pass it to your player object player.addControllerListener(myControllerAdapter) and implement (override) this ControllerAdaper method: endOfMedia(EndOfMediaEvent eome) so that you take whatever action you want when the file ends (player.close() or whatever.)

  • Getting error code 1 when calling SSIS package from a stored procedure (SQL Server 2008 R2)

    Hello,
    I am trying to execute a SSIS package from SQL Server 2008 R2 stored procedure but getting error code 1 (as per my knowledge, error code description is as below:
    0 The package executed successfully.
    1 The package failed.
    3 The package was canceled by the user.
    4 The utility was unable to locate the requested package. The package could not be found.
    5 The utility was unable to load the requested package. The package could not be loaded.
    6 The utility encountered an internal error of syntactic or semantic errors in the command line.
    Details:
    I have a stored procedure named "Execute_SSIS_Package" (see below sp) which executes 'Import_EMS_Response' SSIS package (when I execute this package directly from SQL Server BID it works fine it means package itself is correct) and calling
    it from SQL as:- EXEC Execute_SSIS_Package 'Import_EMS_Response'.
    Here I receives error code 1.
    Can anyone help me to resolve this issue please?
    Thanks in advance!
    CREATE PROCEDURE [dbo].[Execute_SSIS_Package]
     @strPackage nvarchar(100)
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     DECLARE @cmd VARCHAR(8000)
     DECLARE @Result int
     DECLARE @Environment VARCHAR(100)
        SELECT @Environment = Waarde
     FROM  Sys_Settings
     WHERE Optie = 'Omgeving'
     --print @Environment
     SET @strPackage = '"\W2250_NGSQLSERVER\BVT\' + @Environment + '\' + @strPackage + '"'
     SET @cmd = 'dtexec /SQL ' + @strPackage +  ' /SERVER "w2250\NGSQLSERVER"  /Decrypt "BVT_SSIS" /CHECKPOINTING OFF /REPORTING E'
     --print @cmd
     EXECUTE @Result = master..xp_cmdshell @cmd, NO_OUTPUT
     --print @Result
    END

    It has something to do with the security.
    E.g. cmdshell is not enabled or the caller has not rights over the package.
    There could be a syntax error, too.
    I suggest you make the package runnable off a SQL Agent job then trigger the job from the stored proc with
    sp_start_job <job name>
    Arthur
    MyBlog
    Twitter

  • PI 7.0 - Error HTTP 401 when calling XISOAPAdapter/MessageServlet

    Hi experts,
    I am trying to call a web service, published from our XI system. (SAP PI 7.0 SP 15).
    I generated the Web Service & saved the WSDL successfully from Integration Directory.
    The whole scenario is well designed and configured, because it had been working well for some time.
    I am using XMLSpy to send a request (something that have been working well) but now, we are unable to log on to the system.
    It doesnt matter with which user we try to log on. Its simply not possible. It raises a HTTP 401 ERROR.
    The configuration channel SOAP SENDER is configured like this.
    - SOAP - SENDER
    - Transport Protocol HTTP
    - HTTP Security Level : HTTP
    - QOF - BEST EFFORT.
    Another symptom
    when i call the service http://<host>:<50nn00>/XISOAPAdapter/MessageServlet (on DEV system) it doesnt work.
    "401   Unauthorized
      Cannot authenticate the user.
      Details:   No details available"
    when i call the same service (but on QA system) it works well.
    (the calls from XMLSpy work fine, and the interface executes well)
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04S_14_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#1 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
    ModuleProcessorRemote not instantiated
    I will appreciate if you could give me some advice, which configuration i need to check, or any usefull information.
    Thanks!
    Cristian.

    Hi Supriya, thanks for your reply.
    I ve tryed with my user, which is not locked, and also with other users, none of them locke. With SAP_ALL and SAP_NEW profiles. And it didnt work.
    The url is something like that.
    for DEV:
    http://myhost:50000/XISOAPAdapter/MessageServlet
    for QA:
    http://myhost:50200/XISOAPAdapter/MessageServlet
    Since DEV and QA instances are on the same server.
    Thanks.
    Cristian.

  • Trapping error in webdynpro when calling a function

    Hi all,
    I am using Adobe interactive forms and within the onsubmitevent I have webdynpro code which calls a standard function 'FMFR_CREATE_FROM_DATA' to do commitments. See code snippet below. The problem is when there is an error from the function the function simply hangs and does not come out of it.. I have tested this function as standalone via SE37 and works perfectly and also from a normal ABAP program the error can be trapped. Is it possible to trap this within webdynpro?
              CALL FUNCTION 'FMFR_CREATE_FROM_DATA'
                EXPORTING
                  I_FLG_CHECKONLY           = ' '
                  I_FLG_COMMIT              = 'X'
                    TABLES
                      T_POSDATA                 = wa_fid_tab
                    CHANGING
                      C_F_HEADDATA              = wa_fih
                EXCEPTIONS
                  DOCTYPE_NOT_ALLOWED       = 1
                  ERROR_OCCURED             = 2
                  OTHERS                    = 3
                    IF SY-SUBRC <> 0.
                       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                       RAISE EXCEPTION TYPE ZCX_NO_CC_BUDGET.
                    ELSE.
                        " Update RFP table with consolidated amount
                        " per CC/PC and commitment no. 
                        UPDATE ZAD_RFP_T
                        SET CURRENCY_AMOUNT = RFP_TOTAL1
                                     AMOUNT = RFP_TOTAL1
                            COMMITMENT_NO = wa_fih-belnr
                        WHERE DOCUMENT_ID = RFP_ID
                        AND LINE_ID = line_one .
                    ENDIF.

    Thanks guys but i already tried this ie. uncommenting the exception but it never returns to the next line ie to theIF SY-SUBRC line in the code snippet below. The program simply hangs!!!
              CALL FUNCTION 'FMFR_CREATE_FROM_DATA'
                EXPORTING
                  I_FLG_CHECKONLY           = ' '
                  I_FLG_COMMIT              = 'X'
                    TABLES
                      T_POSDATA                 = wa_fid_tab
                    CHANGING
                      C_F_HEADDATA              = wa_fih
                 EXCEPTIONS
                   DOCTYPE_NOT_ALLOWED       = 1
                   ERROR_OCCURED             = 2
                   OTHERS                    = 3.
                    IF SY-SUBRC <> 0.
                       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                       RAISE EXCEPTION TYPE ZCX_NO_CC_BUDGET.
                    ELSE.
                        " Update RFP table with consolidated amount
                        " per CC/PC and commitment no.  -
                        UPDATE ZAD_RFP_T
                        SET CURRENCY_AMOUNT = RFP_TOTAL1
                                     AMOUNT = RFP_TOTAL1
                            COMMITMENT_NO = wa_fih-belnr
                        WHERE DOCUMENT_ID = RFP_ID
                        AND LINE_ID = line_one .
                    ENDIF.

  • Error PLS-00231 When Calling a Local Function In a Procedure

    I hope someone can help me find a workaround to this problem:
    I have a function defined within a PL/SQL block. When I call the function from a SQL statement, I get the PLS-00231 error, which says "Function <fn name> may not be used in SQL.". I don't really understand why I can't do this, since the function works perfectly if I create it in the database. Unfortunately, storing the function in the database is not a desirable option.
    Below is a very simple example program to illustrate the point. Any feedback would be greatly appreciated. Thanks. Brian
    DECLARE
    var INTEGER;
    FUNCTION return_it (i IN INTEGER) RETURN INTEGER IS
    BEGIN
    RETURN i;
    END;
    BEGIN
    SELECT return_it (4)
    INTO var
    FROM dual;
    END;
    --

    Your function return_it is not part of database so you cant use in query.
    Here is what you can do
    08:18:20 SQL> ed
    Wrote file afiedt.buf
    1 DECLARE
    2 var INTEGER;
    3 FUNCTION return_it (i IN INTEGER) RETURN INTEGER IS
    4 BEGIN
    5 RETURN i;
    6 END;
    7 BEGIN
    8 var := return_it (4);
    9 DBMS_OUTPUT.PUT_LINE('var = '||var);
    10* END;
    08:18:26 SQL> /
    var = 4
    PL/SQL procedure successfully completed.

  • APEX 4.0.2 Error in jquery When Calling $a_report

    Hello,
    I have run across an interesting issue when trying to relaod a report on a page. The call to $a_report is getting a JavaScript error, apparently in the jquery-1.4.2.min.js module. The error specifics are as follows:
    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8)
    Timestamp: Wed, 2 Nov 2011 15:47:46 UTC
    Message: Unable to get value of the property '_defaults': object is null or undefined
    Line: 29
    Char: 285
    Code: 0
    URI: https://sunapp01.y12.doe.gov/i4/libraries/jquery/1.4.2/jquery-1.4.2.min.js
    The call to $a_report is made as follows:
    var reportid = document.getElementById("P78_EQUIPMENT_REPORT_ID").value;
    $a_report(reportid,'1','48','48');
    I am at a loss as to why it is getting this error since there are several pages in the app that reload reports without error. All of the pages use the same template. This worked fine before the app was converted to APEX 4.0.2. If it is something in the page processing itself I can't see what it would be.
    Any thoughts or suggestions would be greatly appreciated.
    Rick Fanning

    I too had this same problem and determined that the problem was due to a missing underscore character between the literal "report" and the report Id in the report template.
    I guess some themes include this underscore and some don't.
    I had to debug the apex_4.0.js to determine this - not easy as it's not nicely formatted.
    It only seems to stop Pagination working in an Updatable Tabular Form Report.
    Edit the Report Template. Go to the "Before Rows" region and edit the Before Rows text box. Locate where it defines the report id and insert an underscore between report#REGION_ID#
    Previous
    &lt;div id="report#REGION_ID#"&gt;
    Fixed
    &lt;div id="report_#REGION_ID#"&gt;

  • Queue returning error while exiting when calling subvi within main vi

    Hello
    I am having issues with using queues in a project where a subvi is called from main vi. After calling subvi first time, when I press any button labview returns following error.
    "LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @ ".     
    Please find attached the vi and project explorer file. I will appreciate feedback.  I am using Labview development suite 2010. 
    Kind Regards 
    Austin                                              
    Solved!
    Go to Solution.
    Attachments:
    building autocycles project.lvproj ‏2 KB
    building autocycles screen.vi ‏19 KB
    modifying vi.vi ‏30 KB

    Hello Austin,
    It looks like you are releasing your queue in the sub vi when it exits (Force destroy is set to TRUE therefore it destroys the queue, not just the reference to the queue)
    I tested this by putting a diagram diable structure around the the release queue vi in the sub vi and it now works without throwing an error.
    Set Force destroy to false so that it only destroys a single reference to the queue.
    Chris
    Don't forget to give Kudo's for a good answer !
    LabVIEW Champion
    Certified LabVIEW Architect
    Certified TestStand Architect

  • ORA-06502 PL/SQL: numeric or value error ORA-06512 when calling a procedure

    Hi,
    I have been using ODP.net for a while now and have been calling lots of procedures without issue, however today I put together one to insert key, value parameters into a simple table and it is failing on me Intermittently with the ORA-06502... I have checked the code and I do not see any problems and am thoroughly frustrated... When I call the procedure directly it all works perfectly so the problem is not in the db!
    Please can you help? Code follows:
    Table defined as:
    CREATE TABLE REPORT_REQUEST_PARAMETERS
    (     REQUEST_ID NUMBER,
         PARAM_NAME VARCHAR2(50 BYTE),
         PARAM_VALUE VARCHAR2(255 BYTE)
    Stored procedure defined as:
    create or replace PROCEDURE SP_WRITE_REQUEST_PARAMS
    ( in_request_id number, in_param_name char, in_param_value char )
    AS
    BEGIN
    INSERT INTO REPORT_REQUEST_PARAMETERS ( REQUEST_ID, PARAM_NAME, PARAM_VALUE )
    VALUES
    ( in_request_id, in_param_name, in_param_value );
    END SP_WRITE_REQUEST_PARAMS;
    Finally the ODP.net code which calls this looks like:
    using (OracleConnection connection = new OracleConnection(...blah...))
    using (OracleCommand command = connection.CreateCommand())
    command.CommandType = CommandType.StoredProcedure;
    command.CommandText = "SP_WRITE_REQUEST_PARAMS";
    OracleParameter p1 = new OracleParameter("in_request_id", OracleDbType.Int32);
    OracleParameter p2 = new OracleParameter("in_param_name", OracleDbType.Char);
    OracleParameter p3 = new OracleParameter("in_param_value", OracleDbType.Char);
    p1.Direction = ParameterDirection.Input;
    p1.Value = requestId;
    p2.Direction = ParameterDirection.Input;
    p2.Size = paramName.Length;
    p2.Value = paramName;
    p3.Direction = ParameterDirection.Input;
    p3.Size = paramValue.Length;
    p3.Value = paramValue;
    command.Parameters.Add(p1);
    command.Parameters.Add(p2);
    command.Parameters.Add(p3);
    connection.Open();
    command.ExecuteNonQuery();
    connection.Close();
    }

    What version of database? If it's 9206 this is a known database problem, and should be resolved by patching the database to 9208. I don't have the bug number handy though.
    Simply because it succeeded in sqlplus doesnt mean it's not a database problem, as the problem was intermittent and succeeded from odp sometimes too.
    Thanks
    Greg

  • SAP XI error: 401 Unauthorized (When calling from Enterprise Portal)

    Hello Friends
    I am trying to access an SAP table from IVIEW of portal via XI. Using the latest and greatest version of all SAP Components. (We just installed couple of weeks back).
    I keep getting the following error message when I try to access data from IVIEW of portal.  
    "SAP XI error: 401 Unauthorized"
    What may be the reason? If some one can help me, I would really appreciate it.
    Thanks
    Ram

    Thanks Srinivas for your help.
    I tried accessing the URL directly and got the error message
    "User Credentials not passed via Enterprise Portal. Please contact your Administrator"
    Any more suggestions?
    Thanks again
    Ram

Maybe you are looking for

  • Empty Screen after logging into portal

    Hi, I have installed SAPNetweaver 2004S,  SP9 trial edition. After logging into portal , Masthead and Tool area are visible and reamining part is empty screen . Toplevel navigation , detailed navigation, desktop innerpage are not getting displayed. C

  • Watching bt sport using a sky + hd box

    Currently i have the bt broadband/phone /tv package with a vision + box recieving standard broadband as fibre is not yet available where i live.My question is this.........I have a sky + hd box from when i used to have sky(im no longer a sky customer

  • ADS LogonWithAlias - cannot logon with alias user id

    Hi, We have Erec and use ADS.  Now when the candidate enters their detials - such as logon id - into EREC, the SAP ERP backend generates a random user id and their logon id in put into the alias field in the SAP record (SU01) btw we use ABAP for the

  • Are you sure you want to edit information for multiple items?

    Hi all, I'm getting this dialog box consistently now, not sure why. I get it when I select a single album from a single artist, for example. I get it when I select a couple of tracks within an album from an artist. Bizarre! It became apparent to me a

  • MAX_FIELDS_CST value is incorrect

    I am testing published Captivate 5.5 files with AICC test suite and getting an error. Looking into this b/c the LMS admin on this project said there might be issues with the files we delivered. Any suggestions on why this may be ocurring? AICC/CMI Te