NESTED EXCEPTION:ABORT. ----please help....

Hi Experts,
I've created a VC Model as below.
Input form(vaue help)-->data service--
>output table
(to enter fiscal year period)                        (A query with no variables)             (tabular output)
After deployment when i click on the value help,I get selection options but when i select an option(say lesser than and a relevent value) and then click 'SUBMIT' button on the input form,I get the following error message:
"Application error : Nested exception.Failure to excute native function.Nested Exception.ABORT'
The main need is to be able to display the results w.r.t the range of the fiscal year periods selected.
Any help on tackling this problem will be appreciated,
Regards,
Sai.

Hi Sai
i think there is some problem with the selection of data service or input
go through following links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9326072e-0c01-0010-bc97-f72e93338101
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe
https://wiki.sdn.sap.com/wiki/display/VC
may helpful, if not solved list it
Regards
Pradeep P N

Similar Messages

  • CRM order giving the document could not be saved exception! Please help!

    Hi Experts,
       I am changing the status of a order using CRM_STATUS_CHANGE_EXTERN and CRM_STATUS_CHANGE_INTERN.
       After this I call CRM_ORDER_INITIALIZE and the BAPI_BUSPROCESSND_SAVE.
       Finally commit.
               CALL FUNCTION 'CRM_ORDER_INITIALIZE'
                  EXPORTING
                    it_guids_to_init  = lt_crmd_guids
                    iv_init_frame_log = 'X'
                    iv_keep_lock      = 'X'
                  EXCEPTIONS
                    error_occurred    = 1
                    OTHERS            = 2.
                ls_obj_save-guid = v_header_guid.
                append ls_obj_save TO lt_obj_save.
                CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
                   EXPORTING
                    UPDATE_TASK_LOCAL       = 'X'  "commented. Taking default
                     SAVE_FRAME_LOG          = 'X'
                   IMPORTING
                     LOG_HANDLE              = lv_log_handle
                    TABLES
                      OBJECTS_TO_SAVE         =  lt_obj_save
                      SAVED_OBJECTS           =  lt_obj_saved
                      RETURN                  =  lt_return.
        The function BAPI_BUSPROCESSND_SAVE is returning error: The document could not be saved in it_return. I am not getting any other details. What am I doing wrong? Please help!
    Thanks & Regards
    Gopal

    Hi Robert,
       The SPRO settings seems to be fine.
       The problem is that the order is not getting saved whenever there is backward status change. However if I see the item status via tcode "crmd_order" then it actually shows the new status. In other words status is changing but still order is not getting saved.
       When I debugged the code I found that first It has successfully executed the FM CRM_STATUS_CHANGE_EXTERN and then when CRM_ORDER SAVE is called the parameter et_saved_objects is empty. I am passing header Guid in  it_objects_to_save. If order is saved properly then et_saved_objects should be filled with order guid.
    CALL FUNCTION 'CRM_ORDER_SAVE'
                   EXPORTING
                     it_objects_to_save = lt_save
                   IMPORTING
                     et_saved_objects   = lt_saved_obj
                   EXCEPTIONS
                     document_not_saved = 1
                     OTHERS             = 2.
    On further debugging inside CRM_ORDER SAVE I found that the FM CRM_EVENT_PASS_INFO_EXE_OW returns lt_events empty. That means the given guid  is not registered for saving. Why is this so?
      are there objects registered for saving
        call function 'CRM_EVENT_PASS_INFO_EXE_OW'
          exporting
            iv_exetime     = gc_event_exec_time-save_order
            iv_order_guid  = ls_object_to_save
            iv_obj_kind    = gc_object_kind-orderadm_h
          importing
            et_event_calls = lt_events
          exceptions
            others         = 99.
        if lt_events is initial.
          delete ct_objects_to_save.
          continue.
        endif.
       The problem is when the order is not getting saved the status change is not getting transferred to BW or BI.
       What could be the issue?
    Thanks
    Gopal
    Edited by: gopalkrishna baliga on Apr 7, 2011 5:59 AM
    Edited by: gopalkrishna baliga on Apr 7, 2011 6:09 AM

  • Portlet Invalid handle exception -- URGENT PLEASE HELP

    I am deploying our Portal application and portlets in a clustered environment. We have three machines and following weblogic servers are started in each machine:
    Machine1 - Admin Server
    Machine2 - Portal1, Portlet1
    Machine3 - Portal2, Portlet2
    Portlets are deployed on portlet servers (portlet 1 and portlet 2). When I deployed the Portal application I intentionally registered portlet producer pointing to 127.0.0.1:8889, thinking that it will work for both portals since the portlet server is in same machine as well..
    So my assumption is :
    Portal1 will always load portlet from Portlet1 server and
    Portal2 will always load portlet from Portlet2 server
    but I am getting following error now... don;t have a clue what to do.. This is very urgent, I am working over the weekend over this.. any help would be highly appreciated..
    Line: -----
    <Apr 23, 2011 6:17:07 PM EDT> <Error> <oracle.portlet.client.connection.wsrp.HTTPClientTransport> <WCS-40152> <A request to the producer URL "http://127.0.0.1:8889/ApplicationAccess/portlets/WSRP_v2_Markup_Service" resulted in a status 500 response with fault string "Invalid handle "C:f5163bc7-4caa-4d4f-b031-cf475ecd099f".; nested exception is:
         oracle.portlet.producer.container.ContainerObjectNotFoundException: Object named "registration" could not be found in the persistent store.". The fault code given was "{urn:oasis:names:tc:wsrp:v2:types}InvalidRegistration". The producer generated a timestamp of 2011-04-23T18:17:06.217-04:00 and associated the following stack trace with the fault message: com.bea.wsrp.faults.InvalidRegistrationException: Invalid handle "C:f5163bc7-4caa-4d4f-b031-cf475ecd099f".; nested exception is:
         oracle.portlet.producer.container.ContainerObjectNotFoundException: Object named "registration" could not be found in the persistent store.
         at com.bea.wsrp.producer.handlers.management.ProducerDataStoreManager$ConfigurationContext.createWsrpFaultException(ProducerDataStoreManager.java:1481)
         at oracle.portlet.producer.container.persistence.WsrpFaultExceptionFactory.createWsrpFaultException(WsrpFaultExceptionFactory.java:43)
         at oracle.portlet.producer.container.persistence.PersistentProducerDataStore.getRegistrationDataContext(PersistentProducerDataStore.java:205)
         at oracle.portlet.producer.container.persistence.ProducerDataStoreImpl.getRegistrationDataContext(ProducerDataStoreImpl.java:225)
         at com.bea.wsrp.producer.handlers.management.ProducerDataStoreManager.initializeRequestContext(ProducerDataStoreManager.java:242)
         at com.bea.wsrp.producer.handlers.management.ProducerDataStoreManager.initializeRegistration(ProducerDataStoreManager.java:210)
         at com.bea.wsrp.producer.handlers.RegistrationHandleFilter.doFilter(RegistrationHandleFilter.java:56)
         at com.bea.wsrp.producer.handlers.AbstractServiceHandler.preprocess(AbstractServiceHandler.java:108)
         at com.bea.wsrp.producer.handlers.AbstractServiceHandler.service(AbstractServiceHandler.java:65)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:349)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:250)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:208)
         at oracle.portlet.server.adapter.web.WSRP_v2_Markup_PortTypeSoapToEndpoint.initCookie(WSRP_v2_Markup_PortTypeSoapToEndpoint.java:281)
         at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.invoke_initCookie(WSRP_v2_Markup_Binding_SOAP_Tie.java:295)
         at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.processingHook(WSRP_v2_Markup_Binding_SOAP_Tie.java:1448)
         at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:299)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:442)
    Line: -----
    Regards,
    sak007
    Edited by: user469829 on Apr 23, 2011 4:23 PM

    Sak007,
    Did u get the solution for this issue? I am also facing the similar kind of issue.
    I have a portal server, that consumes the remote portlet which is deployed on a cluster environment (Server1 and Server2). When i register my remote portlet, sometimes the registration handle holds info about server1 and sometimes it is server2. When the registration handle holds info about Server1, my application is working fine in the portal. Whereas when the registration handle holds the info about Server2. It throws the exception as:
    Invalid handle "C:10.10.0.42:-a3eb70c:130d71f8067:-7ff9".[[
    oracle.portlet.server.containerimpl.ContainerObjectNotFoundException: Object named "registration" could not be found in the persistent store.
    at oracle.portlet.server.containerimpl.persistence.SimplePersistentStorage.get(SimplePersistentStorage.java:47)
    Any pointers will be helpful.
    Note: I have visited the URl posted in above thread and it doesn't solve the issue.
    Thanks.

  • Pop up window asking if I want the password remembered won't pop up why I'm not in private browsing and the site is not on the exception list please help

    I can not get the firefox window to ask me if I want my password remembered. I am not in private browsing. The site is not on the exception list in the security box where all the other passwords sites are stored.

    See also;
    *http://kb.mozillazine.org/User_name_and_password_not_remembered
    If disabling autocomplete=off doesn't help then start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Problems: Runtime Error, Uncaught Exception.  Please Help!

    Hi I am using an online blog called BLOG CMS (www.blogcms.com) which runs on my website server. I use it to update my website with news, etc. The program uses a javascript WYSIWYG text editor based on http://www.fckeditor.net/
    However, when the BLOG CMS program tried to load the WYSIWYG text editor, I get the following errors:
    LINE: 36
    Char: 2046
    Error: Access is denied.
    URL: http://mysite.com/nucleus/plugins/wysiwyg/editor/fckeditor.html?InstanceName=more&Toolbar=Default
    Runtime error has occurred.
    Line: 35
    Do you wish to debug?
    Error: Access Denied (sometimes it says, permission denied)
    Error: uncaught exception: Permission denied to set property Window.FCK_STATUS_NOTLOADED
    Error: uncaught exception: Permission denied to get property HTMLDocument.getElementById
    I already have the latest version of Javascript, I am running IE 6.0 on Windows XP so I have no idea what is causing the error and I would greatly appreciate your help if possible. My webserver is reputable and configured correctly since it is running on iPowerWeb and the correct versions of PHP, MySQL, etc.
    Thanks in advance for your help and I am looking forward to your replies!
    Ryan :)

    Ryan,
    This looks like a permission problem (even though its free, some kind of authentication might be there). You can contact the site administrator.
    Regards,
    Chandra

  • Parse Exception, Expert please help!

    Hello World,
    Please have a look at following code snippet.
    String dateString (Getting from client)
    SimpleDateFormat defaultformat = new SimpleDateFormat();
    Date d = null;
    try {
    d = defaultformat.parse(dateString);
    catch(ParseException pe)
    System.out.println(pe.getMessage());
    In this program I require date object for further processing. I get dateString (date and time) from client. I got Date object from above code for all locales except Chinese. When Chinese client enter a date, the string I got contains some Chinese characters (representing AM. and PM.) And I get ParseException. Now my question is why parse function is throwing exception? I have Chinese font on machine also. I am using Jdk1.4.2 and operating system is Windows XP.
    Can anybody tell me solution on this?
    Thanks and Regards,
    Sachin Dare.

    Probably your locale is not China. I think you can either pass a Locale to a SimpleDateFormat constructor, or maybe there's a setLocale method. Check SimpleDateFormat's docs for handling locales.

  • Blogger Authenication - setRequestHeader - Error: SYNTAX_ERR: DOM Exception 12 - PLEASE HELP!!!!!

    Hi everybody,
    I have been trying this for ages and to no avail and I CAN'T SEE WHY!!!
    GOING NUTS!!!
    everything works but when my code gets to "request.setRequestHeader("Authorization", authHeader);" it throws a "Error: SYNTAX_ERR: DOM Exception 12"
    I don't know why this is happening as it seems to work in other code that i have seen accross the net??
    function getBlogs() {
                  var request = new XMLHttpRequest();
                  request.open('GET', 'http://www.blogger.com/feeds/default/blogs', true);
                  alert('b4 auth');
                  var authHeader = "GoogleLogin auth="+document.getElementById('auth').value;             
                  alert(authHeader);
                  request.setRequestHeader("Authorization", authHeader);
                  alert('after auth');
                  request.setRequestHeader("GData-Version", "2");
                  request.onreadystatechange = function () {
                    if (this.readyState == 4 && this.status == 200) {
                        alert(this.responseText);
                    } else if (this.readyState == 4 && this.status == 403){
                        alert(this.responseText);
                  try {
                    request.send();
                  } catch (e) {
                    alert ("Send Exception:\n"+e);
    IF ANYONE CAN HELP AT ALL!!!!!!! IT WOULD MAKE MY DAY!!!!!!!!!!!!
    THANK YOU ALL!!!!!!!!!!

    I suspect you need to name the fields in the sql. Example:
    From:
    "INSERT into PATIENT_LIST values(?, ?)");
    To:
    "INSERT into PATIENT_LIST ("fieldName1","fieldName2") values(?, ?)");

  • Weblogic installation abort - please HELP

    Hi
    I have a situation where Weblogic 6.1 sp2 installation failes in NT server. Only
    one server is affected, I think there is something wrong with NT setup. It simple
    aborts after it gets to the middle of the install without any warnings or messages.
    Can anyone suggest anyghing, any direction to look at.
    Thanks in advance...

    I suggest you revert to the original memory settings. Your changes have apparently created multiple values for memory:
    ...-Xms256m -Xmx512m ... weblogic.policy -Xms512m -Xmx512m -XX:Compile...r.enable=true -Xms512m -Xmx512m ...

  • OutOfMemory Exception. Please Help!

    Hi,
    We are deploying our application on Oracle10g AS , version 10.1.3. Very frequently we get OutOfMemory error even for a single user. We are using the default settings for Java Options. Please suggest a solution ASAP.
    Regards,
    Subhashini

    You can change the allocation of memory you give to OC4J when you start it up and increase it.
    You should also try and identify which specific operation causes this - it might be that you are fetching too much info from the DB into the middle tier AS.
    You can try and use the memory profiler in JDeveloper to track your application's memory allocation.

  • JNDI  exception  ..PLEASE HELP

    hi
    i am using the following expression to create a DataSource object
    in my ejb application.
    InitialContext ic=new InitialContext();
    DataSource ds=(DataSource)ic.lookup("java:comp/env/jdbc/myAtmDB");
    con=ds.getConnection();
    When i deploy my app i am getting the following exception
    javax.naming.Invalidname exception...real JNDI name cannot be empty
    for jdbc/myAtmDB
    thanks
    bas

    The 'java:comp/env/jdbc/myAtmDB' name you are referencing to is a name that you use in your code. In fact it is just an alias. Next thing to do is to use the deployment tool to point the alias to the 'real JNDI name' of the DataSource. You have probably left an empty spot somewhere in the resource reference tab.
    regards,
    Bert

  • SQLServer Exception and Database Adapter. Please Help!!

    Hello Everyone!
    I've been trying during a whole week to insert a row in an SQLServer Database table from a BPEL Process using the database adapter. But I've never had success, I will show you the table, the XML used to do the insert with the DB adapter and the exception, I hope that someone will help me.
    The Table:
    CREATE TABLE [dbo].[Solicitudes](
         [NumSolicitud] [int] IDENTITY(1,1) NOT NULL,
         [NifSol] [varchar](9) COLLATE Modern_Spanish_CI_AS NOT NULL,
         [Destino] [varchar](max) COLLATE Modern_Spanish_CI_AS NOT NULL,
         [Motivo] [varchar](max) COLLATE Modern_Spanish_CI_AS NOT NULL,
         [FechaS] [datetime] NOT NULL,
         [FechaR] [datetime] NOT NULL,
         [InformeDirDep] [varchar](max) COLLATE Modern_Spanish_CI_AS NULL,
         [VoBoDirDep] [int] NOT NULL CONSTRAINT [DF_Solicitudes_VoBoDirDep] DEFAULT ((2)),
         [FirmaDirDep] [varchar](9) COLLATE Modern_Spanish_CI_AS NULL,
         [VoBoDirCen] [int] NOT NULL CONSTRAINT [DF_Solicitudes_VoBoDirCen] DEFAULT ((2)),
         [FirmaDirCen] [varchar](9) COLLATE Modern_Spanish_CI_AS NULL,
         [MedioLocom] [varchar](max) COLLATE Modern_Spanish_CI_AS NOT NULL,
         [Matricula] [varchar](max) COLLATE Modern_Spanish_CI_AS NOT NULL,
         [Credito] [varchar](10) COLLATE Modern_Spanish_CI_AS NOT NULL,
         [CantidadEst] [float] NOT NULL,
         [VoBoRespCredito] [int] NOT NULL CONSTRAINT [DF_Solicitudes_VoBoRespCredito] DEFAULT ((2)),
         [FirmaRespCredito] [varchar](9) COLLATE Modern_Spanish_CI_AS NULL,
         [VoBoRector] [int] NOT NULL CONSTRAINT [DF_Solicitudes_VoBoRector] DEFAULT ((2)),
         [FirmaRec] [varchar](9) COLLATE Modern_Spanish_CI_AS NULL,
         [FechaFirmaRec] [datetime] NULL,
         [FirmaSolicitante] [varchar](max) COLLATE Modern_Spanish_CI_AS NULL,
         [FechaSol] [datetime] NOT NULL,
    CONSTRAINT [PK_Solicitudes] PRIMARY KEY CLUSTERED
         [NumSolicitud] ASC
    )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
    ) ON [PRIMARY]
    The XML:
    <InvokeAdapter_insert_InputVariable>
    <part name="SolicitudesCollection" >
    <SolicitudesCollection>
    <Solicitudes>
    <CantidadEst>250.73</CantidadEst>
    <Credito>Crédito21</Credito>
    <Destino>Destino2</Destino>
    <FechaR>2007-04-14T12:45:51.924</FechaR>
    <FechaS>2007-04-14T12:45:51.908</FechaS>
    <FechaSol>2007-04-14T12:45:51.939</FechaSol>
    <FirmaSolicitante>Signature26</FirmaSolicitante>
    <Matricula>Matrícula20</Matricula>
    <MedioLocom>MedioLocomoción19</MedioLocom>
    <Motivo>Motivo3</Motivo>
    <NifSol>12345678S</NifSol>
    </Solicitudes>
    </SolicitudesCollection>
    </part>
    </InvokeAdapter_insert_InputVariable>
    And the Exception (Translated from spanish):
    Descripción de Excepción: com.microsoft.sqlserver.jdbc.SQLServerException: El nombre de objeto 'SEQUENCE' no es válido. Excepción Interna: com.microsoft.sqlserver.jdbc.SQLServerException: El nombre de objeto 'SEQUENCE' no es válido. Código de Error: 208
    Exception Description: com.microsoft.sqlserver.jdbc.SQLServerException: invalid object name 'SEQUENCE'. Internal Exception: com.microsoft.sqlserver.jdbc.SQLServerException: invalid object name 'SEQUENCE'. Error Code: 208
    Why do i have this exception? Please help!!

    Hi peter, thanks for answering!!
    I don't have anything called sequence so i don't know why I have this error. The steps described in the page you sent to me were followed and the connection is good.
    Do you know if there's any way to know the SQL query executed or the jdbc classes used by the database adapter?
    Regards Antonio
    P.D. I'm using SQL Server Express 2005

  • Exception caught: Language 'VI' not available; nested exception is com.syclo.sap.exception.SAPException: Agentry

    Hi,
    I test my Agentry application on my ipad, it can connect to SAP server but it then display the error:
    Language 'VI' not available; nested exception is:  |
    com.syclo.sap.exception.SAPException |
    It can load data fine on my ATE.
    The language on my ipad is English. Then why does it still throw the exception. Please help me. Thank you.
    Edit: Solved. Change the Region setting to US

    My javaBE is as follows. Can you help to check if i miss anything in my file
    [HOST]
    server=be1.vdc.csc.com
    APPNAME=ZCH_MATERIALLIST
    [CONFIG]
    source=SAP
    [CLIENT_NUM]
    CLIENT=800
    [SYSTEM_NUM]
    SYSNUM=01
    [LOGGING]
    Level=3
    [LOGON_METHOD]
    LOGON_METHOD=USER_AUTH
    [SERVICE_LOGON]
    UID=hngu3
    UPASSWORD=xxxxx
    [REQUIRED_BAPI_WRAPPER]
    com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
    com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
    com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
    com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
    com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
    com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
    com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
    com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
    com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
    com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
    com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
    com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
    com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
    com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
    com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
    com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
    com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
    com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
    com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
    com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
    com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRT

  • Java.lang.UnsatisfiedLinkError - Urgent please help

    Hi,
    I want to thank you for looking into this problem first.
    I have a very headache problem for the past week. I have an applet that uses JNI to call an existing dll to get the system resources. It works fine on windows 2000 server with IE 5.0. The dll get loaded fine and the function call is working fine.
    However, now I tried to move the applet to an application for me to test with jbuilder, I have problems and I get the error java.lang.UnsatisfiedLinkError: ooInit.
    Does anyone know why this is happening in Jbuilder. I traced to see if the dll get loaded with System.loadlibrary("dll"), and it seems to load the library. But when I call the ooInit() native method, it throws that exception.
    Please help. This will be greatly appreciated and I can do something for you guys in return.
    Thank you so much.
    Regards,
    guna

    Here, for the benefit of others who might search for this, is my approach to resolving this error.
    Two things to note:
    1. I didn't worry about paths, etc. - I was in a hurry so I just copied files into required directories.
    2. I named both the Java and C files "mainFrame". I have not subsequently checked to see if this is required, since it worked for me.
    Summary of getting jni routine to work with Jbuilder:
    created Java project mintest, two principle classes - mainFrame and WelcomeFrame
    key code fragments:
    --------------------------------------- mainFrame --------------------------------------------------
    package mintest;
    import javax.swing.JLabel;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import java.awt.GridBagLayout;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseAdapter;
    public class mainFrame {
        boolean packFrame = false;
        WelcomeFrame frame = new WelcomeFrame();
        public static native int cRoutine(int value);
        static {System.loadLibrary("mainFrame"); }
    public mainFrame() {
        //Pack frames that have useful preferred size info, e.g. from their layout
        //Validate frames that have preset sizes
        if (packFrame) {
          frame.pack();
        else {
          frame.validate();
        // Center the frame
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = frame.getSize();
        if (frameSize.height > screenSize.height) {
          frameSize.height = screenSize.height;
        if (frameSize.width > screenSize.width) {
          frameSize.width = screenSize.width;
        frame.setLocation( (screenSize.width - frameSize.width) / 2,
                          (screenSize.height - frameSize.height) / 2);
        frame.setVisible(true);
        try {
          jbInit();
        catch (Exception ex) {
          ex.printStackTrace();
    * Main method
    * @param args String[]
    static public void main(String[] args) {
      try {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      catch (Exception e) {
        e.printStackTrace();
      new mainFrame();
            cRoutine(1);     // this works at this point...
            System.out.println("cRoutine - should be 4: " + cRoutine(3));
      private void jbInit() throws Exception {
    }--------------------------------------- end of mainFrame --------------------------------------------------
    --------------------------------------- (portions of) WelcomeFrame --------------------------------------
    package mintest;
    import java.awt.*;
    ..... more imports, setting up of window, buttons, etc. .... iValue is an integer....
      public void jToggleButton1_mousePressed(MouseEvent e) {
          jToggleButton1.setText("cRoutine in: " + iValue + "  out: " + (iValue = 
                                   mainFrame.cRoutine(iValue)));
      }--------------------------------------- end of (portions of) WelcomeFrame -----------------------------
    mainFrame was compiled with Jbuilder into a class file, makeFrame.class. That was copied into
    the C:\Borland\JBuilder2005\jdk1.4\bin directory, and javah was run to create the C header file:
    javah -jni mainFrame
    This generated:
    --------------------------------------- mainFrame.h generated by javah ----------------------------------
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class mainFrame */
    #ifndef _Included_mainFrame
    #define _Included_mainFrame
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     mainFrame
    * Method:    cRoutine
    * Signature: (I)I
    JNIEXPORT jint JNICALL Java_mainFrame_cRoutine
      (JNIEnv *, jclass, jint);
    #ifdef __cplusplus
    #endif
    #endif--------------------------------------- end of mainFrame.h generated by javah -------------------------
    OKAY, HERE COMES THE CRITICAL STEP. DESPITE THE FACT THE COMMENT SAYS DO NOT EDIT, THIS FILE HAS TO BE EDITED TO INCLUDE THE PACKAGE NAME, LIKE THIS:
    --------------------------------------- modified mainFrame.h ----------------------------------
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class mainFrame */
    #ifndef _Included_mainFrame
    #define _Included_mainFrame
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     mainFrame
    * Method:    cRoutine
    * Signature: (I)I
    JNIEXPORT jint JNICALL Java_mintest_mainFrame_cRoutine
      (JNIEnv *, jclass, jint);
    #ifdef __cplusplus
    #endif
    #endif--------------------------------------- end of modified mainFrame.h -------------------------
    This file is then copied to the C:\Borland\BCC55\Include directory. The C code source is placed
    in the C:\Borland\BCC55\Bin directory. Here is the C code - note that it has the package name in
    the function name:
    --------------------------------------- mainFrame.c ----------------------------------
    #include <mainFrame.h>
    #include <stdio.h>
    #include <string.h>
    /* must link gpib-32.obj for Windows*/
    #include <windows.h> /*if using Windows */
    void main(){
    JNIEXPORT jint JNICALL
    Java_mintest_mainFrame_cRoutine(JNIEnv *env, jobject callingObj,jint invalue)
    return (jint) invalue+1;
    }--------------------------------------- end of mainFrame.c -------------------------
    This is now compiled on the command line (from the C:\Borland\BCC55\Bin directory) using:
    bcc32 -tWD -I\Borland\bcc55\include -L\Borland\bcc55\lib mainFrame.c
    Parameters: -tWD creates Windows DLL file
    -I is path to include directory (this is where mainFrame.h is located)
    -L is path to library directory
    Compilation produces mainFrame.dll in the C:\Borland\BCC55\Bin directory. This is copied to the C:\Borland\JBuilder2005\jdk1.4\jre\bin directory so Jbuilder can find it. Then it works.
    So, the key step is adding the package name after javah has generated the header file (and similarly using the package name in the .c source file.)
    Hope this is useful.

  • Permissions Issue. Please help!!!

    I know everyone has helped everyone with this issue... i have read about it trying to find a solution...
    I recently aquired a MB off a friend that upgraded.
    created myself a new account deleting theirs, copied my music from my pc over wifi, all sweet
    went to do sound at a gig using itunes for background music to dances. had to repair permissions and change all permissions to all users on the whole hdd to r&w so that i could add the songs into the itunes library. got home from work clicked on safari didnt work.
    Shut down MB and now it wont start no matter what i do.
    fsck comes up with modified then nothing each time i enter SUM.
    i just tried chown root:admin /
    which came up with
    "chown: /: Read-only file system"
    i dont have install disk or firewire or anything else except SUM
    PLEASE HELP
    MacBook 6, 1
    OS X 10.6.8
    2gb ram
    let me know of any details that i can give that will help

    Shut down MB and now it wont start no matter what i do.
    fsck comes up with modified then nothing each time i enter SUM.
    I'd say that the filesystem is hosed if fsck in SUM shows the filesystem has been modified. At this point call Apple, have the computer serial number handy and order a replacement DVD. It will cost you around $20.00. In SUM, you can run this command to get the serial number->
    /usr/sbin/ioreg -l | /usr/bin/grep IOPlatformSerialNumber
    From the DVD you can run Disk Utility and check the smart status of the internal hard drive.

  • M3g Loader problem please help

    hi,
    im getting this IOException on following code...
    try{
                // IOException coming here. path is 100% correct
                 Object3D[] ballObj = Loader.load("/res/rediBall.m3g");
                 int i =0;
                 while(!(ballObj[i] instanceof World)){
                      i++;                 
                 ball = (World)ballObj;
              ballTrans.postTranslate(0, 0, 0);
              }catch(Exception exception){
                   System.out.println("io exception occured >>> "+exception);
                   exception.printStackTrace();
    please help me

    I tested this code and it didn't throw exception:
    try{
                //HERE IS MY INPUTSTREAM VERSION
                InputStream is = this.getClass().getResourceAsStream("/pogoroo.m3g");
                byte[] objectBytes = new byte[is.available()];
                is.read(objectBytes);
                Object3D[] o3D = Loader.load(objectBytes,0);
                //HERE IS THE STANDARD LOADER VERSION
                Object3D[] o3D2 = Loader.load("/pogoroo.m3g");
            }catch(Exception e){
                System.out.println(e);
            }You can see, I tried the Loader.load("/pogoroo.m3g"); and it works perfect. Check your M3G file's extension (maybe this is .M3G, .m3g, .M3g or something), because if the file doesn't exist, the "standard" version throws java.io.IOException: no ':' in URL, the InputStream version throws NullPointerException.

Maybe you are looking for

  • Report for material list

    hi, i want a material list for which if i specify a period i will get materials with a)No goods reciept b)No stock or material movement(issue/transfer posting etc). c)no sales or shipping. should have happened for the materials for that period. if no

  • Default values set  for Tax data in material master

    Hi Can anyone tell me how to set default values for  TAx dat in sales view  while creating material master. so that it automatically take  values while creating material master. Regards Vijay Shukla

  • HT4943 i used I-Books to download a book.  Now I get a message "failure to load book because the requested resource is  "

    I used i-Books to buy a books.  These last two days when I try to access the book I get this message:"Failed to load book because the requested resource is missing."  What the **** does that mean?  I paid $10 for the darned book.

  • RP Address in MULTICAST

    I have few doubts about Multicast RP address We have MPLS ISP backbone network, here two P routers are configured as RP address(IN GLOBAL) and MSDP is running between them. Now, my doubts are All the Multicast customer we are giving is under MVPN onl

  • Printing black everything is grey

    What happened? HP officejet always printed black but now everything is a grey. Checked ink levels and cleaned print head but can't get black. Is there a known problem with printing text using OS 10.9? thanks, jim