Exception in executing JCo code

I am getting following exception
Failed to get system null
while executing following code----
package com.sap.nwrig.demo;
import javax.resource.ResourceException;
import com.sap.security.api.umap.NoLogonDataAvailableException;
import com.sapportals.portal.prt.component.*;
import com.sapportals.portal.prt.runtime.PortalRuntime;
import com.sapportals.portal.ivs.cg.ConnectionProperties;
import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
//import com.sapportals.portal.ivs.cg.IConnectorService;
import com.sapportals.connector.ConnectorException;
import com.sapportals.connector.connection.IConnection;
import com.sapportals.connector.execution.objects.IQuery;
import com.sapportals.connector.execution.objects.InvalidQueryStringException;
import com.sapportals.connector.execution.objects.QueryExecutionException;
import com.sapportals.connector.execution.structures.IRecordMetaData;
import com.sapportals.connector.execution.structures.IRecordSet;
import com.sapportals.connector.metadata.CapabilityNotSupportedException;
public class ConnectorExample extends AbstractPortalComponent
    public IConnection connection;
     IQuery query=null;
     public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    {//docontent start
          IConnectorGatewayService cgService =
          (IConnectorGatewayService)PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY);
          ConnectionProperties cp =
           new ConnectionProperties(request.getLocale(),request.getUser());
          try {
               connection =cgService.getConnection("Pubs",cp);
          } catch (ConnectorException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (NoLogonDataAvailableException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          try {
               query = connection.newQuery();
          } catch (CapabilityNotSupportedException e1) {
               // TODO Auto-generated catch block
               e1.printStackTrace();
      String qstr = "SELECT * FROM BAPI_SALESORDER_CHANGE ";
      try {
          boolean success = query.execute(qstr);
           catch (QueryExecutionException e2)
          // TODO Auto-generated catch block
            e2.printStackTrace();
            catch (ConnectorException e2)
          // TODO Auto-generated catch block
              e2.printStackTrace();
            catch (InvalidQueryStringException e2)
          // TODO Auto-generated catch block
               e2.printStackTrace();
          IRecordSet rs = null;
          try {
               rs = query.retrieveRecordSet();
          } catch (ConnectorException e3) {
               // TODO Auto-generated catch block
               e3.printStackTrace();
          IRecordMetaData rsMD = null;
          try {
               rsMD = rs.retrieveMetaData();
          } catch (ConnectorException e4) {
               // TODO Auto-generated catch block
               e4.printStackTrace();
          response.write("<table><tr>");
          int columnCount = 0;
          try {
               columnCount = rsMD.getColumnCount();
          } catch (ConnectorException e5) {
               // TODO Auto-generated catch block
               e5.printStackTrace();
          for (int index = 1; index <= columnCount; index++)
               try {
                    response.write("<th>"+ rsMD.getColumnLabel(index) + "</th>");
               } catch (ConnectorException e6)
                    // TODO Auto-generated catch block
                    e6.printStackTrace();
             response.write("</tr>");
                     try {
                         while (rs.next())
                                  response.write("<tr>");
                                  for (int index = 1; index <= columnCount; index++)
                                       response.write("<td>" + rs.getString(index)+ "</td>");
                                  response.write("</tr>");}
                    } catch (ConnectorException e6) {
                         // TODO Auto-generated catch block
                         e6.printStackTrace();
                    }response.write("</table>");    
               try {
                    connection.close();
               } catch (ResourceException e7) {
                    // TODO Auto-generated catch block
                    e7.printStackTrace();
    }//do content end
pls help me dissolve this error

Is "Pubs" marked as the default alias for the System?
Sap help maybe
http://help.sap.com/saphelp_nw04/helpdata/en/30/a0f17aacb34b108b39a96acc33da3f/content.htm
But the error says NoLogonDataAvailableException so it must have something to do with this.
Does your request.getUser() return a user?
br Peter
Message was edited by:
        Peter

Similar Messages

  • Exception when executing a report: Field I_REPORT_ID not a member of INPUT

    Hello,
    I created a simple Report with the Report Designer. When I try to execute it in the portal hitting the "Execute"-button i get the following BI Runtime Exception:
    Exception in BI runtime
    [code]Initial cause
    Message:
    Field I_REPORT_ID not a member of INPUT
    Stack trace:
    com.sap.mw.jco.JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: Field I_REPORT_ID not a member of INPUT[/code]
    I omitted the rest of the stack trace. It was too long to fit into this post (probably there is a restriction on the maximum number of characters in a forum post )
    We are on SP 08 at the backend BI-System and the front-end tools are on patch level 8, hotfix 2.
    Any ideas what's the reason behind that error?
    Thanks to any answers in advance and best regards,
    Philipp

    Hi Karol,
    thanks for your answer.
    I also had this SP synchronization issue regarding other problems with the execution of web templates. See my post <a href="https://forums.sdn.sap.com/thread.jspa?threadID=209587">https://forums.sdn.sap.com/thread.jspa?threadID=209587</a>.
    I will once again ask the basis team, if the two SP-levels are identical.
    Regards,
    Philipp

  • Error in Running JCO code in Netweaver Devloper Studio

    Hi,
    I have written a simple java program to get data from SAP using JCO code. It get compiled successfuly but when I run it, It gives the following error :
    java.lang.NoClassDefFoundError
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:798)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:2829)
         at com.sap.test.SAPPoDetailMain.getPODetail(SAPPoDetailMain.java:39)
         at com.sap.test.SAPPoDetailMain.main(SAPPoDetailMain.java:77)
    Exception in thread "main"
    Is there any way in which I can run this code in Netweaver Devloper Studio.
    Thanks
    Naresh

    Hi Stefan,
    I have tried that but still it is giving the same. I am using Generated proxied to call function module. Once again copying the detailed error :
    java.lang.UnsatisfiedLinkError: no CpicNative in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
         at java.lang.Runtime.loadLibrary0(Runtime.java:788)
         at java.lang.System.loadLibrary(System.java:834)
         at com.sap.mw.rfc.api.RfcApi.initializeDLL(RfcApi.java:1285)
         at com.sap.mw.rfc.api.RfcApi.<clinit>(RfcApi.java:1299)
         at com.sap.mw.jco.MiddlewareJRfc.<clinit>(MiddlewareJRfc.java:228)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at com.sap.mw.jco.JCO.<clinit>(JCO.java:630)
         at com.sap.test.SAPPoDetailMain.getPODetail(SAPPoDetailMain.java:26)
         at com.sap.test.SAPPoDetailMain.main(SAPPoDetailMain.java:79)
    java.lang.NoClassDefFoundError
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:798)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:2829)
         at com.sap.test.SAPPoDetailMain.getPODetail(SAPPoDetailMain.java:41)
         at com.sap.test.SAPPoDetailMain.main(SAPPoDetailMain.java:79)
    Exception in thread "main"
    Thanks
    Naresh

  • Exception while executing

    Hi Friends,
    When I run my application  i have got the following Exception while executing it:
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:
    Error connecting using JCO.Client: null
    What might be the problem.
    Is it that the JCO connection created is null or the Exception means something else.
    When i tried Deploying it locally its working well.
    Please help me out in this regard.
    Thanks and regards,
    Chandrashekar.
    Edited by: Armin Reichert on Jan 28, 2008 6:06 PM

    Hi Priyanka/Sumith,
    This is the required Stacktrace.
    Please go through this stacktrace and let me know how to resolve this issue.
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModel.prepareExecute(DynamicRFCModel.java:179)
    com.utc.sap.testappm.allmodels.ALLMODELS.Z_test_input(ALLMODELS.java:709)
    com.utc.sap.testappm.allmodels.Z_test_input.doExecute(Z_test_input.java:137)
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
    com.test.testappCustomContoller.exuteCounterListData(testappCustomContoller.java:130)
    com.test.wdp.InternaltestappCustomContoller.exuteCounterListData(InternaltestappCustomContoller.java:171)
    com.test.testapp.onActionGo(testapp.java:188)
    com.test.wdp.Internaltestapp.wdInvokeEventHandler(Internaltestapp.java:186)
    com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    Thanks and regards,
    Chandrashekar.
    Edited by: chandrashekar chandrashekar on Jan 28, 2008 2:03 PM

  • TSV_TNEW_PAGE_ALLOC_FAILED in Bw server,while execut t.code RSRT(netwear 7.3)

    Dear experts,
    when i execute T.code:RSRT, i get error like a no more more available in extend memory.In T.code: Db02 shows ()
    1) An exception with the type CX_SY_STRUCT_COMP_NAMEoccurred, but was neither handled locally, nor declared in a RAISING clause
    2)  Wrong number of input parameters [GET_INPUT_STRUCT].
    In t.code:st22
    TSV_TNEW_PAGE_ALLOC_FAILED
    TSV_TABH_POOL_NO_ROLL_MEMORY
    Please help to slove
    Regards,
    Prabaharan B

    Hi,
    You need to increase the abap heap limits on the system.
    Please check the following Notes which describe this issue :
         020527  Runtime error TSV_TNEW_PAGE_ALLOC_FAILED
         1260912 - Memory overflow note: Dump TSV_TNEW_PAGE_ALLOC_FAILED
         1387739 - Out of memory errors during shadow system operation
    Thanks,
    Bhavin Vyas

  • Execute Custom code to do a warning message on SSHR Manager Appraisal form

    Hello - I do not know much about Java/OAF, but I'm really trying to learn! Here is my requirement,
    please help me in getting this done.
    Requirement : On Employee appraisal form, they will have their yearly objectives and their weight percentages.
    These objectives weight percentage is in per_appraisal table attribute1 field(DFF).
    The total weight percentage of an employess all objectives should be equal 100.
    When manager will login to give them a final rating, the total of all weights percentages should be equal to 100,
    if not I have to through a warning message on the Manager's appraisal form(CompFinalRatingsCO).
    To calculate the total weight, we can certainly write a small pl/sql function or a procedure.
    But how can I execute that code and show a warning message on SelfService HR Manager Appraisal form?
    Thanks in advance for your help.
    Thanks
    - Srini

    1) extend the CO attached to your page.
    2) Capture the Button in Processformrequest of your extended CO.
    3) Call a plsql function or procedure with OUT param which will return whether 100% weightage has been entered or not.
    If Not, then throw warning message.
    Here is the way to call Plsql proc with OUT param.
    String sql =
    "BEGIN bcr12_mapping_tool_procs_pkg.XXBCR12_HAS_MANDATORY(:1,:2); END;";
    OracleCallableStatement cs =
    (OracleCallableStatement)am.getOADBTransaction().createCallableStatement(sql,
    1);
    try {
    cs.registerOutParameter(2, 1, 0, 2000);
    cs.setString(1, int_name);
    cs.execute();
    String new_status = cs.getString(2);
    cs.close();
    if ("Y".equals(new_status.trim())) {
    throw new OAException("Please enter all mandatory column highlighted.",
    (byte)0);
    } catch (Exception ex) {
    throw new OAException(ex.getMessage());
    }

  • Cannot create client error with sample SAP JCO code

    Hi,
    I am encountering the following error when trying to connect to a R/3 system using the WAS 6.40 on my laptop. I have cut and pasted the Example1 code from the SAPJCO into my NetWeaver developer studio IDE.
    java.lang.UnsatisfiedLinkError: no CpicNative in java.library.path
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.sap.mw.rfc.api.RfcApi.initializeDLL(RfcApi.java:1285)
         at com.sap.mw.rfc.api.RfcApi.<clinit>(RfcApi.java:1299)
         at com.sap.mw.jco.MiddlewareJRfc.<clinit>(MiddlewareJRfc.java:228)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at com.sap.mw.jco.JCO.<clinit>(JCO.java:630)
         at com.sap.mw.jco.support.JRfcTest.correctProperties(JRfcTest.java:1043)
         at com.sap.mw.jco.support.JRfcTest.initCall(JRfcTest.java:1072)
         at com.sap.mw.jco.support.JRfcTest.runConnectionTest(JRfcTest.java:735)
         at com.sap.mw.jco.support.JRfcTest.main(JRfcTest.java:202)
    Cannot create client, error message:
    java.lang.NoClassDefFoundError occured:
       Message:null
    I have a system user defined in R/3 but still this isn't working. I am new to Java so any light you could shed would be greatly appreciated.
    Cheers and TIA,
    Rich

    The unsatisfied link error should be because sapjco.jar cannot link to the sapjco.dll.
    I tried to simulate the problem by
    1) Opening a java perspective.
    2) Create a new 'java' project.
    3) Add libraries sapjco.jar from the path <Drive>:\Program Files\SAP\JDT\eclipse\plugins\com.sap.mw.jco\lib
    You will see sapjcorfc.dll in this path
    4)Add a new class file ,Wrote a sample jco code and executed and it worked..
    The key is to have the sapjcorfc.dll in the same directory as sapjco.jar
    I hope this helps

  • Exception while creating JCo client connection Failed to create

    Hello all -
       I am trying to create JCo metadata connections and I am getting the below error trace.
    Exception while creating JCo client connection Failed to create new JCO client connection SAP_R3_HumanResources_Metadata: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to change password for key SAP_R3_HumanResources_Metadata in secure storage at com.sap.tc.webdynpro.serverimpl.wdc.sl.SecureStorageWrapper.changePassword(SecureStorageWrapper.java:149) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.createJCOClientConnection(SystemLandscapeFactory.java:299) at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.createJCOClientConnection(WDSystemLandscape.java:107) at com.sap.tc.webdynpro.tools.sld.ButtonBar.onActionFinish(ButtonBar.java:265) at com.sap.tc.webdynpro.tools.sld.wdp.InternalButtonBar.wdInvokeEventHandler(InternalButtonBar.java:265) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) Caused by: com.sap.security.core.server.securestorage.exception.ObjectStorageException at com.sap.security.core.server.securestorage.remote.RemoteSecureStorageClientContextImpl.storeObject(RemoteSecureStorageClientContextImpl.java:600) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SecureStorageWrapper.changePassword(SecureStorageWrapper.java:137) ... 33 more
    Could anybody please suggest what is wrong with this creation?
    Thanks much!!

    Hi Maria,
    Please update the host and sevice file first then check the SLD test and SLD Data supplier in visual admin.
    Also check and verify the data using in the Jco destination creation.
    Hope it will helps
    Regards
    Arun Jaiswal

  • Ssrs report web service to save report as pdf throws error Soap exception unhandeled by user code

    I am creating a C# web application to save  an SSRS report as a pdf file on my local machine.
    I added the ReportService web reference as RS2005 and ReportExecution2005 web reference as RE2005.
    http://myServer/ReportServer_DEVPROJECT/ReportExecution2005.asmx?WSDL
    http://myServer/ReportServer_DEVPROJECT/ReportService2005.asmx?WSDL
    I created the following function SaveReport that is called on button click. My report can be accessed on the report server with the following url:
    http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter
    On the Report Manager home page the report link appears as "SAMPLE LETTER".
    It is deployed in the DataMgmt folder on the Report Manager.
    It uses a data source called "DS Letter" with option "Credentials stored securely in the report server"
    My application gets compiled, but I get the following run time error:
    Error: Soap exception unhandeled by user code. The item '/DataMgmt/Sample Letter' cannot be found. ---> Microsoft.ReportingService
    s.Diagnostics.Utilities.ItemNotFoundException: The item '/DataMgmt/Sample Letter' cannot be found.
    Please check my code and let me know what I can do to run this successfully. Once this is done, I would like to get help with passing a parameter (memberID) to the generate report for that member, through this application.
    Thank You in advance for your help.
    public static void SaveReport()
    RS2005.ReportingService2005 rs;
    RE2005.ReportExecutionService rsExec;
    // Create a new proxy to the web service
    rs = new RS2005.ReportingService2005();
    rsExec = new RE2005.ReportExecutionService();
    // Authenticate to the Web service using Windows credentials
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = "http://myServer/ReportServer_DEVPROJECT/ReportService2005.asmx";
    rsExec.Url = "http://myServer/ReportServer_DEVPROJECT/ReportExecution2005.asmx";
    string historyID = null;
    string deviceInfo = null;
    string format = "pdf";
    Byte[] results;
    string encoding = String.Empty;
    string mimeType = String.Empty;
    string extension = String.Empty;
    RE2005.Warning[] warnings = null;
    string[] streamIDs = null;
    string fileName = @"c:\temp\samplerHAPeport.pdf";
    string _reportName = @"/DataMgmt/Sample HAP Letter";
    string _historyID = null;
    bool _forRendering = false;
    RS2005.ParameterValue[] _values = null;
    RS2005.DataSourceCredentials[] _credentials = null;
    RS2005.ReportParameter[] _parameters = null;
    try
    _parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials);
    RE2005.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
    RE2005.ParameterValue[] parameters = new RE2005.ParameterValue[1];
    if (_parameters.Length > 0)
    //parameters[0] = new RE2005.ParameterValue();
    //parameters[0].Label = "";
    //parameters[0].Name = "";
    //parameters[0].Value = "";
    rsExec.SetExecutionParameters(parameters, "en-us");
    results = rsExec.Render(format, deviceInfo,
    out extension, out encoding,
    out mimeType, out warnings, out streamIDs);
    using (FileStream stream = File.OpenWrite(fileName))
    stream.Write(results, 0, results.Length);
    catch (Exception ex)
    throw ex;
    protected void BtnGenReport_Click(object sender, EventArgs e)
    SaveReport();

    Hello Devster,
    Thank you to post your question on TechNet forum.
    After reviewing the whole post, I have a question to you. You can access the report via the link, http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter.
    From the URL, I can see that the report is located at: /Data Mgmt/Sample Letter, instead of /DataMgmt/Sample Letter. In addition, I found that the target report is "/DataMgmt/Sample HAP Letter" instead of "/DataMgmt/Sample Letter" as the error described. I
    am not sure whether you post out the correct code segment.
    Please check the above things on your side, and hope it is helpful to you.
    Regards,
    Edward
    Edward Zhu
    TechNet Community Support

  • Java run time error while executing JavaFX code

    Hi
    I copied the code from [http://java.sun.com/javafx/1/tutorials/ui/overview/UIControls.fx|http://java.sun.com/javafx/1/tutorials/ui/overview/UIControls.fx] while
    reading in [http://java.sun.com/javafx/1/tutorials/ui/overview/#controls|http://java.sun.com/javafx/1/tutorials/ui/overview/#controls] tutorial and paste it to my
    netbeans editor but i got following error.
    init:
    deps-jar:
    compile:
    jar:
    standard-run:
    # An unexpected error has been detected by Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d94513f, pid=5152, tid=5996
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # V  [jvm.dll+0xd513f]
    # An error report file with more information is saved as hs_err_pid5152.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    BUILD FAILED (total time: 18 seconds)can anyone tell whether its netbeans fault or javaFX. I am using netbeans 6.5.1 on windows vista. I have added following plugin in netbeans for javaFX
    *JavaFX Kit
    *JavaFX SDK for Windows
    is anyone also getting this error for this code and have solution for this.

    You are correct the crash is causing due to ToggleButton and ProgessBar. the code is correct because i tried it on eclipse 3.4 and it worked fine.This is definitely netbeans error. because its giving error even if u try to execute javafx code with just one ToggleButton or ProgressBar. I tried the following simple code in netbeans 6.5
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.ToggleButton;
    import javafx.scene.control.ProgressBar;
    var toggle=ToggleButton {
                    translateX:50
                    translateY:50
                    text: "First"
                    width:100
                    height:20
    var progress= ProgressBar {
            progress: bind ProgressBar.computeProgress( 100, 30 )
    Stage {
        title : "Toggle Button Test"
        scene: Scene {
            width: 200
            height: 200
            content: [ toggle
    } When i just added toggle button to contents then button showed up in window but on clicking it window disappear and compiler gave crash error on the other hand when i added just progess bar it just throws the error.The same code is running fine on eclipse
    Is there any workaround in netbeans for this if its a bug and if not what should i do to correct it.

  • How do I execute some code when a line of a table control is selected?

    Hi,
    I would like to execute some code when a line of a table control is selected.  At the moment I have to select one or multiple rows and then press enter, this forces a screen refresh and my code is executed but I would like the code to be executed as soon as any line is selected.
    I've done something like this using ALV grids and object orientated code but is there a way of doing this in a normal non-OO table control?
    Thanks in advance.
    Gill

    Hi,
    U need to declare a char1 field for marking (mark field).  This will reflect with value 'X' in your tcontrol internal table for all the selected rows. 
    Now u need to handle the okcode for enter in your PAI.
    There u need to loop through the table for all marked fields.
    There after u can do what ever u want.
    Venkat.

  • How can I get Firefox to execute html code in a text file?

    I used Notepad to create a text file, markup.html, that contains html code. How can I get Firefox to execute this code?
    Also, how can I use the <script> tag in the html code using the src attribute to execute code in a file written in Javascript?

    First guess is that you did not use an .html extension on the file. The file may well be ''name.html.txt''
    * see http://www.bbc.co.uk/webwise/guides/file-extensions
    *http://windows.microsoft.com/en-gb/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista
    Forum Note
    This is normally offtopic for this forum. I say normally because now we cover webmaker questions. I wonder if this is therefore on topic as a webmaker question?
    I have tagged with webmaker-contribution

  • SQL Developer 1.5.4.59.40 - IO Exception: Undefined Error VENDOR CODE 17002

    Hi All.
    I hope someone can help.
    I have recently installed Oracle XE on my Vista Ultimate laptop and it is up and running with no apparent problems. I then connected to the HR schema on XE with no problems using SQL Developer 1.2.1.3213 (OLD Version). I noticed that SQL Developer 1.5.4.59.40 (NEW version) was available and downloaded it (the offering without JDK included) and renamed the "C:\Program Files\SQLDeveloper" folder holding the older version to "C:\Program Files\SQLDeveloper_Orig" and placed the new version of SQL Developer in the Prog Files directory to give "C:\Program Files\SQLDeveloper".
    I then ran SQLDeveloper.exe (NEW) and when requested gave the JDK path as "C:\Program Files\Java\JDK_1.6.0_11\bin\java.exe" ('Java -version' gives 1.6.0_11-b03) and migrated over the settings from the previous version of SQLDeveloper (OLD).
    The Application loads fine but when i attempt to connect to XE's HR schema i get the following error:
    "IO Exception: Undefined Error
    VENDOR CODE 17002"
    I have searched to try and find out what is going on but cannot find any solutions that work. The previous 17002 error solutions on this forumn have all failed.
    These included changing the JDK.conf file to hold route to JDK directory and also creating a 'bat' file.
    My system does not have the directory for the JDK in it's PATH environment setting (either USER or SYSTEM) but does include a directory path under SYSTEM environment vars to another version fo JDK on my machine under "C:\Program Files\Sun\JDK\". I thought this may be causing a conflict but it is version 1.6.0.05_b13 and is also compatible-is it not? I also have Java JRE6 (1.6.0_12-b04) on my machine - this does not have a PATH variable and was not referenced when loading SQL Developer when loading the first time.
    Can anyone help me resolve this, why can the previous version still connect OK to XE and not new version? is there something i am missing? Do i require the Java JDK Directory to be placed under a PATH environment SYSTEM variable?
    Thanks in advance,
    M
    Edited by: user592047 on 16-Mar-2009 10:08

    Taken from about SQL Developer:
    Version:
    CVS Version          Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform     1.6.0_11
    Oracle IDE          1.5.4.59.40
    Versioning Support     1.5.4.59.40
    Properties:
    apple.laf.useScreenMenuBar     true
    awt.toolkit                    sun.awt.windows.WToolkit
    class.load.environment          oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level          CONFIG
    class.transfer               delegate
    com.apple.macos.smallTabs     true
    com.apple.mrj.application.apple.menu.about.name     "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes     false
    file.encoding               Cp1252
    file.encoding.pkg               sun.io
    file.separator               \
    http.agent                    Mozilla/5.0 (Java 1.6.0_11; Windows Vista 6.0 x86; en_GB) ICEbrowser/v6_1_3
    ice.browser.forcegc          false
    ice.pilots.html4.ignoreNonGenericFonts     true
    ice.pilots.html4.tileOptThreshold     0
    ide.AssertTracingDisabled     true
    ide.bootstrap.start          10390897243225
    ide.build                    MAIN-5940
    ide.conf                    C:\Program Files\sqldeveloper_new\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname          C:\Program Files\sqldeveloper_new\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild               false
    ide.devbuild               false
    ide.extension.search.path     sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun                    false
    ide.java.minversion          1.5.0
    ide.launcherProcessId          2672
    ide.main.class               oracle.ide.boot.IdeLauncher
    ide.patches.dir               ide/lib/patches
    ide.pref.dir                    C:\Users\M\AppData\Roaming\SQL Developer
    ide.pref.dir.base               C:\Users\M\AppData\Roaming
    ide.product                    oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation     C:\Program Files\sqldeveloper_new\sqldeveloper.exe
    ide.splash.screen               splash.gif
    ide.startingArg0               C:\Program Files\sqldeveloper_new\sqldeveloper.exe
    ide.startingcwd               C:\Program Files\sqldeveloper_new
    ide.user.dir                    C:\Users\M\AppData\Roaming\SQL Developer
    ide.user.dir.var               IDE_USER_DIR
    ide.work.dir               C:\Users\M\Documents\SQL Developer
    ide.work.dir.base               C:\Users\M\Documents
    java.awt.graphicsenv          sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob          sun.awt.windows.WPrinterJob
    java.class.path               ..\..\ide\lib\ide-boot.jar
    java.class.version               50.0
    java.endorsed.dirs          C:\Program Files\Java\jdk1.6.0_11\jre\lib\endorsed
    java.ext.dirs               C:\Program Files\Java\jdk1.6.0_11\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home                    C:\Program Files\Java\jdk1.6.0_11\jre
    java.io.tmpdir               C:\Users\M\AppData\Local\Temp\
    java.library.path               C:\Program Files\sqldeveloper_new;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oracle\xe\app\oracle\product\10.2.0\server\bin;C:\Program Files\CodeGear\RAD Studio\5.0\bin;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Microsoft Network Monitor 3\;C:\PROGRA~1\DISKEE~1\DISKEE~1\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_11;C:\Program Files\Sun\SDK\bin;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Program Files\Nmap
    java.naming.factory.initial     oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name          Java(TM) SE Runtime Environment
    java.runtime.version          1.6.0_11-b03
    java.specification.name          Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.util.logging.config.file     logging.conf
    java.vendor                    Sun Microsystems Inc.
    java.vendor.url               http://java.sun.com/
    java.vendor.url.bug          http://java.sun.com/cgi-bin/bugreport.cgi
    java.version                    1.6.0_11
    java.vm.info               mixed mode
    java.vm.name               Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor               Sun Microsystems Inc.
    java.vm.version               11.0-b16
    jdbc.library                    /C:/Program Files/sqldeveloper_new/jdbc/lib/ojdbc5.jar
    line.separator               \r\n
    oracle.home               C:\Program Files\sqldeveloper_new
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG     true
    oracle.translated.locales     de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version     9.0.4
    orai18n.library               /C:/Program Files/sqldeveloper_new/jlib/orai18n.jar
    os.arch                    x86
    os.name                    Windows Vista
    os.version                    6.0
    path.separator               ;
    reserved_filenames          con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sun.arch.data.model          32
    sun.boot.class.path          C:\Program Files\Java\jdk1.6.0_11\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_11\jre\classes
    sun.boot.library.path          C:\Program Files\Java\jdk1.6.0_11\jre\bin
    sun.cpu.endian               little
    sun.cpu.isalist               pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop               windows
    sun.io.unicode.encoding     UnicodeLittle
    sun.java2d.ddoffscreen          false
    sun.jnu.encoding               Cp1252
    sun.management.compiler     HotSpot Client Compiler
    sun.os.patch.level          Service Pack 1
    user.country               GB
    user.dir                    C:\Program Files\sqldeveloper_new\sqldeveloper\bin
    user.home                    C:\Users\M
    user.language               en
    user.name                    M
    user.timezone               Europe/London
    user.variant     
    windows.shell.font.languages

  • Error in executing T.code: FAGL_ACTIVATION

    Hi All,
    I am executing transaction code FAGL_ACTIVATION, getting the bellow error,
    View/table V_FAGL_ACTIVEC can only be displayed and maintained with restrictions
    Message no. SV792
    Diagnosis
    You tried to call a maintenance dialog for the view/table V_FAGL_ACTIVEC, for which the table maintenance is only allowed with restrictions. You can only edit the data in the environment of another program or a view cluster.
    System Response
    The maintenance dialog is not performed.
    Procedure
    You can:
    find the customizing objects for maintenance of the table/view V_FAGL_ACTIVEC with the 'Display Existing Maintenance Objects' button in the maintenance transction SM30, or
    go to the IMG via the 'Customizing' button (also in transaction SM30) and make the settings there.
    Please resolve my issue.
    Thanks and Regards
    A.Rama Krishna

    Hi RK,
    Could you please help me in solving the issue..
    I am getting the same error like "view/table v_fagl_activec can only be displayed and maintained with restrictions." when I tried to deactivate the New GL
    Thanks in Advance
    Regards,
    Srilakshmi Narayana

  • Client not modifiable message while executing t-code ops7 and ops6

    Hi Guru's,
    I am getting "Client not modifiable message while executing t-code ops7 and ops6" in Unit test and Quality client.
    Pleae help me to resolve the error.
    Regards
    Sasikanth Reddy

    Hi
    Copy of the information I found regarding this issue:
    It is possible to allow the maintenance of 'Customizing'-tables in a       
    production client, even if the client is set to 'not modifiable'.          
    Normally this should be the case for tables TCJ04 (responsible person)     
    and TCJ05 (applicant).                                                                               
    Please could you check the settings in your system and change it if        
    necessary:                                                                               
    Transaction SE11:                                                                               
    Table TCJ04: delivery class should be set to 'C'                           
          TCJ05: delivery class should be set to 'C'                                                                               
    Transaction SOBJ -> Maintain                                                                               
    Position on V_TCJ04: Category should be 'CUST' field 'current settings'    
    should be marked.                                                                               
    Position on V_TCJ05: Category should be 'CUST' field 'current settings'                                                                               
    Please also check that your client is defined as 'PRODUCTIVE' via          
    transaction SCC4 (field client role).                                                                               
    I would also recommend that you review the attached notes with reference   
    to the usage of customizing setting "current settings": Nr. 77430,         
    Nr. 135028, Nr. 356483. These are also relevant for your release.          
    Kind regards,
    Zhenbo

Maybe you are looking for

  • Which file do I open to install Firefox on windows 2000 after I download it?

    I download the program, unzip it. There is no install or exe file in the folder. Which file starts the installation?

  • Form Inside InDesign

    We have manuals for tools we sale, and I put them together with InDesign. These manuals are interactive PDF's. I am wanting to add a Quality Assurance form inside the manuals. So if customer has a problem with a product or service they can fill in th

  • Table for Plan Data

    Hi Experts Created Cost Element Groups and Cost Center Groups and have Uploaded Plan data in KP06. Kindly provide me the Table Names for Cost Element groups,Cost Center groups and Plan Fixed Costs. Thanks & Regards KumarRaja Edited by: Kumar Raja D o

  • HELP! I forgot my password!!!!

    Hi I have an Imac G4 (as you may have noticed due to the board), and I forgot my password at the login page! How can I retrieve it, get a hint, or possibly create a new account?

  • Email opverloaded with SPAM

    I'm very frustrated with my Verizon e-mail account; I waste so much time sorting through the messages and on an average out of 30 emails that I receive 28 will be SPAM.  I use Filter and block to no avail.  I do not experience these problems with my