Problem meet when call exe in java.

hi all,
in my java project, i call an external exe . now the problem is that sometimes the exe is not fully finished. How could i confirm that the exe is finished before i start to use the output of this exe.
i use following code to call the external exe:
Runtime.getRuntime().exec(command).

Hi,
Please post this to an appropriate forum . this forum is exclusively related to creator
MJ

Similar Messages

  • ORA-01804 when calling function from java client

    Hi All,
    we changed a PL/SQL-function that is called from a java client from using sysdate to localtimestamp. The function works fine in TOAD, but when called from the java client ist throws an ora-01804: failure to initialize timezone information.
    Any suggestions?
    Alexander

    The change was only made to a local variable in a function that was called from the original function that got the parameters from the java client.
    I changed it from localtimestamp to systimestamp and it works fine.
    Do i have to make any settings about the time zone in the jdbc thin client ?

  • Problem met when call external exe in jar.

    hi all,
    in my java project, i call an external exe . i met a problem that sometimes the exe is not fully finished. How could i confirm that the exe is finished before i start to use the output of this exe.
    i use following code to call the external exe:
    Runtime.getRuntime().exec(command).

    Hi Avm,
    thanks very much.
    The simplest answer is that
    getRuntime().exec(command).waitFor() will help you.
    But besides of sync there are number of other
    potential problems with Runtime.exec
    Good examples and description there is here:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-
    traps.html

  • A problem in executing exp.exe through Java

    while implementing oracle schema export I am facing problem in executing the exp.exe from JAVA. Please see sample code below.
    Process p=null;
    ProcessBuilder pb = new ProcessBuilder ("exp.exe","username/password@dbinstance", "owner=pr01",
    "file=e:/temp/pr98.dmp","log=e:/temp/pr98.log","compress=y","grants=n","STATISTICS=COMPUTE");
    try{
    p = pb.start();
    catch(Exception e){
    System.out.println("Error="+e.getMessage());
    where pr01 - name of schema to export.
    With this code, the actual export of the project starts only after Java application is closed and not immediately on the click of a button.
    I have used Runtime.exec() tooo...The same problem is there..
    Any solution?

    HI
    Did you fix this problem with svrmgr. I have exactly the same problem and I am runing redhat 7.2 and oracle 8.1.6
    Thanks, Jason

  • "ReferenceError: "myIpAddr"  is not defined, when call JavaScript from java

    Hi developers,
    My java application was trying to issue a http request via proxy auto-config. So, I did below jobs
    1. Read URL of *.pac from registry
    2. Call FindProxyForURL from java, the code is like below
                   ScriptEngineManager factory = new ScriptEngineManager();
                   ScriptEngine engine = factory.getEngineByName("JavaScript");
                   engine.eval(autoProxyScript);
                   Invocable inv = (Invocable) engine;
                   Object obj = inv.invokeFunction("FindProxyForURL",
                             "http://java.sun.com/",
                             "java.sun.com");
    However, I got "ReferenceError: "myIpAddress" is not defined
    I can not change the script on server to add a function like "myIpAddress", I am wordering why IE or mozilla can call it successfully and get proxy server, while Java failed to do that.
    I got a ugly solution by calling "pacparser" by jni. But I really hope I can get a better solution.

    A .pac file is a JavaScript, but it requires some functions to be defined in the executing context to work (i.e. you must define those).
    From the example on the Wikipedia page there's at least "shExpMatch" and "isInNet". "myIpAddress" seems to be another such candidate.

  • Calling exe from Java

    Hi !!!!
    I have developed an exe program from prolog. But now I need to develop an interface for the exe with java.
    Can anybody help me with developing the interface.
    thanks
    Muditha

    Runtime.getRuntime().exec("your exe here")

  • Problem facing when calling a JAX WS WSDL

    Hi,
    I have a simple JAVA WS , deployed in a server and I want to call it from ODI , the JAVA Class takes some inputs as input Parameter and writes the data into the DB.
    I didn't use any explicit XSD for designing the WS, WS has it own inline schema.
    definitions targetNamespace="http://ws.test.com/" name="TestWSService"><types><xsd:schema><xsd:import namespace="http://ws.test.com/" schemaLocation="http://localhost:7001/Test-context-root/TestPort?xsd=1"/></xsd:schema></types>
    When I am using clicking on Connect to WSDL from OdiInvokeWebService tool from the Advance Editor, it is giving an error as ODI-20362:Couldn't connect to web Service, In the detailed description it is showing as
    "This URL does not point to a valid WSDL"
    I am not getting why I am getting such error, any help is highly appreciable.
    Thanks.

    Hi ,
    Can anyone pls help me.
    Inspite of changing proxy information in its preference dialog of ODI still I am getting the same error when trying to invoke a JAX_WS wsdl with inline schema.
    ODI-20362: Couldn't connect to web Service.
    In the detailed part I am getting as follows:
    com.sunopsis.wsinvocation.SnpsWSInvocationException: com.sunopsis.wsinvocation.SnpsWSInvocationException: This URL does not point to a valid WSDL
        at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:95)
        at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:126)
        at com.sunopsis.graphical.wsclient.RequestWsPane$17.doInBackground(RequestWsPane.java:1691)
        at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:139)
        at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:279)
        at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)
        at java.lang.Thread.run(Thread.java:662)
    Caused by: com.sunopsis.wsinvocation.SnpsWSInvocationException: This URL does not point to a valid WSDL
        at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsParserImpl.setWsdlUrl(OdiJaxwsParserImpl.java:132)
        at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:89)
        ... 8 more
    Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Error importing schemas: java.io.IOException: Unable to parse schema at 'http://172.18.41.47:7001/GenericErrorHandlerWSApp-GenericErrorHandlerWS-context-root/ErrorHandlerWSPort?xsd=1': Expected 'EOF'.
        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.unmarshall(SchemaSerializer.java:76)
        at oracle.j2ee.ws.wsdl.extensions.ParseUtils.createExtensibilityElement(ParseUtils.java:112)
        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:1505)
        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:790)
        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:707)
        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:656)
        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:648)
        at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsParserImpl.setWsdlUrl(OdiJaxwsParserImpl.java:128)
        ... 9 more
    Caused by: java.io.IOException: Unable to parse schema at 'http://172.18.41.47:7001/GenericErrorHandlerWSApp-GenericErrorHandlerWS-context-root/ErrorHandlerWSPort?xsd=1': Expected 'EOF'.
        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.readSchemaFile(SchemaSerializer.java:186)
        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.loadReference(SchemaSerializer.java:138)
        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.processImportIncludeRedefine(SchemaSerializer.java:108)
        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.unmarshall(SchemaSerializer.java:73)
        at oracle.j2ee.ws.wsdl.extensions.ParseUtils.createExtensibilityElement(ParseUtils.java:115)
        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:1505)
        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:790)
        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:708)
        ... 12 more

  • Problems compiling when calling other classes

    hello,
    following the Sun tutorial "How to build a application" i wrote this code...
    package divelog;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class DiveLog extends JFrame{
         // make space in memory for a tabbed pane - not a object until constructor is called to initate
         private JTabbedPane tabbedPane;
         public DiveLog(){ //opens constructor - constructor iniaties objects
              super("Jason's DiveLog"); // super calls jframe - this is cause DiveLog extends JFrame
              addWindowListener(new WindowAdapter() // closes program form clicking "x" on the Jframe
              { //opens addWindowListener method
                   public void windowClosing(WindowEvent e){
                        System.exit(0);
         tabbedPane = new JTabbedPane(SwingConstants.LEFT);
         //tabbedPane.setBackground(Color.blue);
         //tabbedPane.setForeground(Color.white);
         // method to add tabs
         populateTabbedPane();
         //method builds menu
         buildMenu();
         // put on JFrame and set sizes
         getContentPane().add(tabbedPane);
         pack();
         setSize(765,690);
         setBackground(Color.white);
         setVisible(true);
         } //ends constructor started on line 13  - DiveLog()     
         // Methods -- for the constructor
         private void populateTabbedPane(){
              tabbedPane.addTab("Welcome",
                                                                null,
                                                                new Welcome(),
                                                                "Welcome to Jason's Dive Log");
              tabbedPane.addTab("Diver Data",
                                                                 null,
                                                                 new Diver(),
                                                                 "Click here to enter diver data");
              tabbedPane.addTab("Log Dives",
                                                                null,
                                                                new Dives(),
                                                                "Click here to enter dives");
              tabbedPane.addTab("Stats",
                                                                null,
                                                                new Statistics(),
                                                                "Click here to calculate stats");
         } // ends tabbed pane method
         private void buildMenu(){
              JMenuBar mb = new JMenuBar();
              JMenu menu = new JMenu("FIle");
              JMenuItem item = new JMenuItem("Exit");
              menu.add(item);
              mb.add(menu);
              setJMenuBar(mb);
              item.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e){
                        System.exit(0);
         }// ends buildMenu method
    } //ends class
              then... i made the welcome, dives,diver.... classes ...they look like this...
    package divelog;
    import javax.swing.*;
    import java.awt.*;
    public class Welcome extends JPanel{
    }all the .java files are in /home/mohadib/java_restore/DiveLog/
    so per the tutorial i try to compile with this.....
    javac -classpath /home/mohadib/java_restore/ DiveLog.java
    but i get this error....
    mohadib@mohadib ~/java_restore/DiveLog--->javac -classpath /home/mohadib/java_restore/ DiveLog.java
    DiveLog.java:48: cannot resolve symbol
    symbol : class Welcome
    location: class divelog.DiveLog
    new Welcome(),
    ^
    DiveLog.java:53: cannot resolve symbol
    symbol : class Diver
    location: class divelog.DiveLog
    new Diver(),
    ^
    DiveLog.java:58: cannot resolve symbol
    symbol : class Dives
    location: class divelog.DiveLog
    new Dives(),
    ^
    DiveLog.java:63: cannot resolve symbol
    symbol : class Statistics
    location: class divelog.DiveLog
    new Statistics(),
    ^
    4 errors
    could some one please tell me what im doing wrong :)
    Thanks,
    jd
              

    found the problem...
    i used this at the top of all the .java files....
    package divelog;
    then my dir tree looked like this....
    /home/mohadib/java_restore/DIveLog
    so i changed to
    /home/mohadib/java_restore/divelog
    and compiled with this....
    javac -classpath /home/mohadib/java_restore DiveLog.java
    then ran it with this.....
    java -classpath /home/mohadib/java_restore divelog.DiveLog
    thanks,
    jd

  • Problem facing when uploadin file thru java applet using WSA

    I am facing a issue, when I am trying to upload a pdf file on a website which uses java applet and WSA as proxy. On the java applet window when I select the file a click upload, it gives " Upload failed : java.net.Unknownhostexception ".
    On checking the issue in java console getting following error "SEVERE: java.net.UnknownHostException: www.mca.gov.in
    java.net.UnknownHostException: www.mca.gov.in
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
    at javazoom.transfer.client.http.HTTPTransfer.headInfo(Unknown Source)
    at javazoom.transfer.client.http.HTTPUploadTransfer.dbupdate(HTTPUploadTransfer.java:973)
    at javazoom.transfer.client.http.HTTPUploadTransfer.run(HTTPUploadTransfer.java:155)
    at java.lang.Thread.run(Unknown Source)
    network: Connecting http://www.mca.gov.in:80/ with proxy=DIRECT
    29-Oct-2009 15:03:58 javazoom.transfer.client.http.HTTPTransfer headInfo
    SEVERE: java.net.UnknownHostException: www.mca.gov.in
    29-Oct-2009 15:03:58 javazoom.transfer.client.http.HTTPUploadTransfer run
    INFO: Upload failed"

    Done, what next ?
    Noah

  • Problem while calling RFC in java

    hi,
    I writed a java program  calling a batch input RFC.  The RFC return an internal table which storing the system messages of the batch input process. My problem is:
    When i debug the java program,the RFC excecuted and return the correct internal table to me.
    But when i executed it not in debug mode, there is no batch input messages return to me.
    My code is:
    package com.hongta.com.z_delivery_bdc;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.JCO;
    import com.sap.mw.jco.JCO.ParameterList;
    @author Administrator
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class ConnectRFC extends Object {
         JCO.Client mConnection;
         JCO.Repository mRepository;
         String filePath;
         String BDCLOG;
         JCO.Function function;
         public void Connect1() {
              filePath =
                   "C:
    Documents and Settings
    Administrator.3939200975DB4C5
    desktop
    cigaXY2008-12-15.xml";
              function = null;
              try {
                   // Change the logon information to your own system/user
                        mConnection = JCO.createClient("610", // SAP client
              "xxxxxx", // userid
              "xxxxxx", // password
              null, // language
              "10.96.0.53", // application server host name
         "01"); // system number
          // mConnection.setAbapDebug(true);
                   mConnection.connect();
                   mRepository = new JCO.Repository("ARBsoft", mConnection);
              } catch (Exception ex) {
                   ex.printStackTrace();
                   System.out.println("jco connect failed");
                                            mConnection.disconnect();
                   System.exit(1);
              //JCO.Table codes = null;
              try {
                   function = this.createFunction("Z_BAPI_CONTRACT_BDC");
                   if (function == null) {
                        System.out.println(
                             "Z_BAPI_contract_bdc" + " not found in SAP.");
                        if ( mConnection != null && mConnection.isAlive()) {
                             mConnection.disconnect();
                        System.exit(1);
                   //function.getImportParameterList().setValue(filePath, "FILEPATH");               
                   //function.getImportParameterList().setValue(BDCLOG, "BDCLOG");
                   mConnection.execute(function);
                                   catch (Exception ex) {
                                       //System.out.println(ex.toString());
                                    ex.printStackTrace();
                                     System.out.println("execute failed");
                                            mConnection.disconnect();
                                     System.exit(1);
              JCO.Table codes = null;
              codes =
                 function.getTableParameterList().getTable("MESSAGE");
              try {
                        codes.firstRow();
                        for (int i = 0; i < codes.getNumRows(); i++, codes.nextRow()) {
                        System.out.println(codes.getString("CON")"  "codes.getString("MESG"));
              catch(Exception ex1){
                   ex1.printStackTrace();
                   System.out.println("codes");
              if ( mConnection != null && mConnection.isAlive()) {
                   mConnection.disconnect();
                   System.out.println("chenggong");
              public JCO.Function createFunction(String name) throws Exception {
                   try {
                        IFunctionTemplate ft =
                             mRepository.getFunctionTemplate(name.toUpperCase());
                        if (ft == null){
                             return null;
                        return ft.getFunction();
                   } catch (Exception ex) {
                        throw new Exception("Problem retrieving JCO.Function object.");
              public static void main(String[] args) {
                   ConnectRFC app = new ConnectRFC();
                   app.Connect1();
    Regards,
    taowenbo.

    hi,
    i had resolved my problem in other way.I don't upload my data using ws_upload now,but upload with table.
    here is my code.Maybe helpful to somebody:
           JCO.Table C_XYORDERTable;
         JCO.Table C_XYORDPR_FINALTable;
         public void getXyordprFinalElement(Element e) {
              try {
                   for (Iterator i = e.getChildren().iterator(); i.hasNext();) {
                        Element child = (Element) i.next();
                        if (child.getName().equals("ORDER_ID"))
                             C_XYORDPR_FINALTable.setValue(child.getText(), "ORDER_ID");
                        else if (child.getName().equals("ID"))
                             C_XYORDPR_FINALTable.setValue(child.getText(), "ID");
                        else if (child.getName().equals("PRODUCT_ID"))
                             C_XYORDPR_FINALTable.setValue(
                                  child.getText(),
                                  "PRODUCT_ID");
                        else if (child.getName().equals("MATNR"))
                             C_XYORDPR_FINALTable.setValue(child.getText(), "MATNR");
                        else if (child.getName().equals("QUANTITY"))
                             C_XYORDPR_FINALTable.setValue(child.getText(), "QUANTITY");
                   C_XYORDPR_FINALTable.nextRow();
              } catch (Exception ex) {
                   ex.printStackTrace();

  • How can I get error message when calling pl/sql

    Hi,
    I call a pl/sql java wrapper generated by Rosetta.
    public static void startWf(
    OracleConnection _connection,
    BigDecimal p_goal_header_id,
    BigDecimal p_submiter_userid,
    String p_commit,
    String p_init_msg_list,
    String [] x_return_status,
    BigDecimal [] x_msg_count,
    String [] x_msg_data
    ) throws SQLException
    the pl/sql is written by the standard way of OAF backend,
    PROCEDURE start_wf ( p_goal_header_id in number
              ,p_submiter_userid     in number
    ,p_commit in varchar2 DEFAULT FND_API.G_TRUE
              ,p_init_msg_list in varchar2 DEFAULT FND_API.G_FALSE
    ,x_return_status out varchar2
    ,x_msg_count out number
    ,x_msg_data out varchar2);
    when running this procedure in TOAD, in case of error, following script can print error message:
    if l_return_status <> 'S' then
    dbms_output.put_line('Result');
    dbms_output.put_line('status: '||l_return_status);
    dbms_output.put_line('error count: '||l_msg_count);
    dbms_output.put_line('Loop Error');
    dbms_output.put_line('Err: '||fnd_msg_pub.get(-1,p_encoded=>'F'));
    for i in 2..l_msg_count loop
    dbms_output.put_line('Err: '||fnd_msg_pub.get(p_encoded=>'F'));
    end loop;
    end if;
    if l_return_status = 'S' then
    dbms_output.put_line('Success');
    end if;
    end;
    My question is when calling pl/sql java wrapper from Java, in case of Error, return_status="E", then in order to get exact error msg, is there any equivalent java method such as get error from pageContext or OADBTransaciton.. etc instead of calling again pl/sql fnd_msg_pub.get to get error msg?
    thanks
    Lei

    Lei,
    You can use
    checkErrors(OADBTransaction pTx,
    int pMessageCount,
    String pReturnStatus,
    String pMessageData)
    method in OAExceptionUtils Class.For details look at javadoc of OAExceptionUtils Class.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Form displays modeless despite being called using ShowDialog() when called in a separate thread

    I have a java application which loads a C++ dll in order to launch VB components.
    Recently the VB activex components were upgraded to C# .NET.But some of the activex components referenced within the C# dlls had to be retained as is.
    There were issues of the C# components  not being launched since the Activex components cannot be Instantiated 
    in a Multi threaded Aparatment thread. Java as far as I know does not support single threaded apartments.
    So we had to create a new thread in the C++ dll (which acts like the interface between Java and C#) and then
    the components were launching properly.
    Now the issue is that even when the forms are being called using ShowDialog, the modality is lost.
    Does anybody know why this happens and a possible solution to the issue.

    I have a java application which loads a C++ dll in order to launch VB components.
    Recently the VB activex components were upgraded to C# .NET.But some of the activex components referenced within the C# dlls had to be retained as is.
    There were issues of the C# components  not being launched since the Activex components cannot be Instantiated 
    in a Multi threaded Aparatment thread. Java as far as I know does not support single threaded apartments.
    So we had to create a new thread in the C++ dll (which acts like the interface between Java and C#) and then
    the components were launching properly.
    Now the issue is that even when the forms are being called using ShowDialog, the modality is lost.
    Does anybody know why this happens and a possible solution to the issue.
    Hello,
    It seems like this issue is similar to this one
    ShowDialog call of a windows form is not really modal when called from a java Application.
    Since we could not test it directly, I would recommend you try to call it by specifying the owner for that form.
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. &lt;br/&gt; Click
    &lt;a href=&quot;http://support.microsoft.com/common/survey.aspx?showpage=1&amp;scid=sw%3Ben%3B3559&amp;theme=tech&quot;&gt; HERE&lt;/a&gt; to participate the survey.

  • Abnormal disconnect when calls forwarded to vm on busy or noan

    Avaya S8700 <> h.323 trunk group <> CCME 4.0.3
    Inbound calls over IP trunk disconnect when forwarded to AIM-CUE upon noan or busy. No problems observed when call is answered. Nor are there issues with inbound calls to same number placed over POTS line. Has anybody experienced similar issues with Avaya / Cisco operability?

    Hi Thomas,
    I am pretty sure that this a transcoding issue,especially seeing that calls routed through the POTS line are working properly have a look;
    Codecs and Transcoding
    Cisco Unity Express supports only G.711 voice streams, so all calls made into the system (including those from IP phones, PSTN gateway ports and any other VoIP equipment in your network) must use G.711 if they enter the AA or voice mail pilot numbers that terminate on Cisco Unity Express.
    If you require that G.729A calls traverse IP segments of your network between sites, and that these calls forward or dial direct into Cisco Unity Express AA or voice mail, then you must use a transcoding resource collocated with Cisco Unity Express to change the voice stream from G.729A to G.711 before the voice stream enters the AA or voice mail pilot numbers.
    From this doc;
    http://www.cisco.com/en/US/products/sw/voicesw/ps5520/products_implementation_design_guide_chapter09186a00804993c0.html#wp1011776
    Hope this helps!
    Rob
    Please remember to rate helpful posts.....

  • Lync 2013 : two problems 1) quicked off from meeting when presenter change 2) Freeze when leaving first call of day

    Hello,
    I have two problems with Microsoft Lync 2013 (see level in screenshot). The first one appeared after May Windows updates and is so annoying that I decided myself to open a post in this forum, with the second one. The first problem is the most important for
    me (see why when reading) and the second one is the cherry on the cake if solved, but is minor.
    1) I'm kicked off from meetings when presenters change
    In an online meeting, when presenters change, I'm kick off since last May updates (very clear since it didn't happen before). I'm unable to specify if it occurs when I'm presenter or just attendee, but that could influence. I will try to report if/when I
    notice a difference.
    THIS IS REALLY IMPORTANT, Please help me solve this !
    2) Lync freezes for approx. 30' to 1min. when leaving first call of day
    I reboot my PC every day. I always notice that after leaving voice call from my first meeting of the day, Lync freezes (doesn't respond message) for 30' to 1min. This is when I leave audio, not meeting window. This never occurs again in the course of the
    day. Windows goes into hourglass, then it works again.
    Does anyone know about this ? Any action to help diagnose or solve this ?
    Again this is less important than first problem
    Thanks for help
    -Pierre

    The steps to remove the update:
    Open Control Panel, click Programs, and then, under Programs and Features, clicking View installed updates.
    Click the update that you want to remove, and then click Uninstall.
    For Lync 2013 May 2014 update, it is KB2880980.
    You can check the following website about the drivers:
    http://www.driverscape.com/download/plantronics-c320-m
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Lisa Zheng
    TechNet Community Support

  • Java.lang.Class- getFields() results in JVM crash when called through JNI

    From a C++ application, I use Invocation APIs to create a JVM and call some Java methods using JNI
    I get a crash in jvm.dll with EXCEPTION_ACCESS_VIOLATION
    when I try to call "getFields" method of java.lang.Class in order to get the Fields of the java class
    This method call, should return a java/lang/reflect/Fields[] on success
    I am able to get the method ID of this method by using pEnv->GetMethodID(..)
    However, when I call this method using CallObjectMethod(..), HotSpt JVM crashes with access violation with the dump given below.
    Any clues on how to debug and find the problem?
    Or has anyone tried getting the fields of a Java class from C++ by calling reflection APIs uing JNI?
    Thanks in advance!
    Sample code
    jclass testerClass = pEnv->FindClass("com/test/Tester");
    jmethodID cid = pEnv->GetMethodID(testerClass,"<init>","()V");
    if(NULL == cid)
    pEnv->ExceptionDescribe();
    jobject testerObject = pEnv->NewObjectV(testerClass, mid);
    jmethodID mid = pEnv->GetMethodID(testerClass, "getClass",
                             "()Ljava/lang/Class;");
    jobject clsObj = (jobject)pEnv->CallObjectMethod(testerObject, mid);
    pEnv->ExceptionDescribe();
    jclass      jCls = pEnv->GetObjectClass(clsObj);
    jmethodID midGetFields = pEnv->GetMethodID(jCls, "getFields",
                                            "()[Ljava/lang/reflect/Field;");
    jobjectArray jobjArray = (jobjectArray)pEnv->CallObjectMethod(testerObject, midGetFields);
    pEnv->ExceptionDescribe();
    Crash dump
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x809E69F
    Function=JVM_FindSignal+0x11505
    Library=D:\Java\j2re1.4.2_03\bin\client\jvm.dll
    Current Java thread:
         at java.lang.Class.privateGetDeclaredFields(Unknown Source)
         at java.lang.Class.privateGetPublicFields(Unknown Source)
         at java.lang.Class.getFields(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x00419000      E:\SC\SC12.1\SCApplications\SNMP\Bin\JNITester.exe
    0x77F50000 - 0x77FF7000      C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F46000      C:\WINDOWS\system32\kernel32.dll
    0x10000000 - 0x10023000      E:\SC\SC12.1\SCApplications\SNMP\Bin\JniUtils.dll
    0x00320000 - 0x00332000      E:\SnmpIpmNativeTestDriver\MTFStubHelper.dll
    0x00340000 - 0x0035B000      E:\SnmpIpmNativeTestDriver\MTFXMLFileAPI.dll
    0x12000000 - 0x122B1000      e:\sc\sc12.1\bin\xerces-c_2_2_0D.dll
    0x77DD0000 - 0x77E5D000      C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x78086000      C:\WINDOWS\system32\RPCRT4.dll
    0x10200000 - 0x1026C000      e:\sc\sc12.1\bin\MSVCRTD.dll
    0x102A0000 - 0x102B7000      e:\sc\sc12.1\bin\MSVCIRTD.dll
    0x5F800000 - 0x5F8E9000      e:\sc\sc12.1\bin\MFC42uD.DLL
    0x77C70000 - 0x77CB0000      C:\WINDOWS\system32\GDI32.dll
    0x77D40000 - 0x77DCC000      C:\WINDOWS\system32\USER32.dll
    0x5F700000 - 0x5F746000      e:\sc\sc12.1\bin\MFCD42uD.DLL
    0x5F500000 - 0x5F5C6000      e:\sc\sc12.1\bin\MFCO42uD.DLL
    0x10480000 - 0x104FE000      e:\sc\sc12.1\bin\MSVCP60D.dll
    0x15020000 - 0x15042000      e:\sc\sc12.1\bin\SCTraceLib.dll
    0x6D510000 - 0x6D58D000      C:\WINDOWS\System32\dbghelp.dll
    0x77C10000 - 0x77C63000      C:\WINDOWS\system32\msvcrt.dll
    0x77C00000 - 0x77C07000      C:\WINDOWS\system32\VERSION.dll
    0x00360000 - 0x0037D000      e:\sc\sc12.1\bin\SCFileManager.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\System32\PSAPI.DLL
    0x00420000 - 0x00580000      e:\sc\sc12.1\bin\BctCoreCL.dll
    0x5D920000 - 0x5D929000      C:\WINDOWS\System32\RPCNS4.dll
    0x71B20000 - 0x71B31000      C:\WINDOWS\system32\MPR.dll
    0x71C20000 - 0x71C6E000      C:\WINDOWS\System32\NETAPI32.dll
    0x71AB0000 - 0x71AC5000      C:\WINDOWS\System32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\System32\WS2HELP.dll
    0x15000000 - 0x15012000      e:\sc\sc12.1\bin\CTEventLog.dll
    0x773D0000 - 0x77BC2000      C:\WINDOWS\system32\SHELL32.dll
    0x70A70000 - 0x70AD4000      C:\WINDOWS\system32\SHLWAPI.dll
    0x771B0000 - 0x772D1000      C:\WINDOWS\system32\ole32.dll
    0x77120000 - 0x771AB000      C:\WINDOWS\system32\OLEAUT32.dll
    0x1F7A0000 - 0x1F7D6000      C:\WINDOWS\System32\ODBC32.dll
    0x77340000 - 0x773CB000      C:\WINDOWS\system32\COMCTL32.dll
    0x763B0000 - 0x763F5000      C:\WINDOWS\system32\comdlg32.dll
    0x08000000 - 0x08138000      D:\Java\j2re1.4.2_03\bin\client\jvm.dll
    0x76B40000 - 0x76B6C000      C:\WINDOWS\System32\WINMM.dll
    0x5FD00000 - 0x5FD0D000      C:\WINDOWS\System32\MFC42LOC.DLL
    0x71950000 - 0x71A34000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
    0x1F840000 - 0x1F857000      C:\WINDOWS\System32\odbcint.dll
    0x5DAC0000 - 0x5DAC7000      C:\WINDOWS\System32\rdpsnd.dll
    0x00FE0000 - 0x00FE7000      D:\Java\j2re1.4.2_03\bin\hpi.dll
    0x01000000 - 0x0100E000      D:\Java\j2re1.4.2_03\bin\verify.dll
    0x01010000 - 0x01029000      D:\Java\j2re1.4.2_03\bin\java.dll
    0x01030000 - 0x0103D000      D:\Java\j2re1.4.2_03\bin\zip.dll
    0x76C90000 - 0x76CB2000      C:\WINDOWS\system32\imagehlp.dll
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 132K [0x15050000, 0x150f0000, 0x15530000)
    eden space 512K, 25% used [0x15050000, 0x15071250, 0x150d0000)
    from space 64K, 0% used [0x150d0000, 0x150d0000, 0x150e0000)
    to space 64K, 0% used [0x150e0000, 0x150e0000, 0x150f0000)
    tenured generation total 1408K, used 0K [0x15530000, 0x15690000, 0x19050000)
    the space 1408K, 0% used [0x15530000, 0x15530000, 0x15530200, 0x15690000)
    compacting perm gen total 4096K, used 964K [0x19050000, 0x19450000, 0x1d050000)
    the space 4096K, 23% used [0x19050000, 0x191410e0, 0x19141200, 0x19450000)
    Local Time = Wed Aug 25 21:06:44 2004
    Elapsed Time = 0
    # HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
    # Error ID : 4F530E43505002EF
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode)

    You are right, I tried getting the java.lang.Class reference for the com.test.Tester by calling getClass() on com.test.Tester
    And using this jclass reference for java.lang.Class, I tried getting the method ID of getFields and eventually the Field[]
    Thanks for the help
    I have some more questions.
    Assumption - Using JNI, I got the fields array of com.test.Tester and I am iterating through the fields
    1.Assuming that the Tester class had an Integer field say m_nIntVal, then once I get the jobject equivalent of this Field in C++.
    Now I need to get the type of the field (I call the method java.lang.reflect.getType() from JNI)
    This gives me a jclass reference to it's type i.e java.lang.Integer
    2.I need to get the name of this type i.e I want to get the name of the type in a string as "java.lang.Integer"
    For this, on the jclass reference of java.lang.Integer got in Step 1, I call getClass() from JNI (to get the java.lang.Class) and then getName()
    Now, for calling getClass(), I need a temporary object reference corresponding to the jclass of java.lang.Integer, The problem is that Integer does not have a default constructor, so my call to create the jobject fails.
    But, since I do not know that I am constructing an Integer (remember that is what I am trying to find out - getType), I cant pass any values to constructor
    Now, how do I go about creating a jobject of Integer, without knowing that I am constructing that, as this does not have a default constructor without parameters
    Also, I tried using AllocObject to get the jobject and then tried to get the method ID of getClass(). Even this failed
    3. If the com.test.Tester class had a primitive "int" field, say m_nPrimitiveInt
    for which java provides a Class representation, I am able to get the jclass reference to the type of m_nPrimitiveInt
    Now, how do I get the name of the type as "int" in a string?
    Forllowing a similar procedure like in Step 2 fails when I try to pass the jclass reference to the type of m_nPrimitiveInt to the GetMethodID
    with the error FATAL ERROR in native method: JNI received a class argument that is not a class
    Can you tell me what is the way out?
    Thanks in advance,
    Also, can I mail you with some doubts that I have? If its ok, please contact me at [email protected]

Maybe you are looking for

  • Where's the list view in Calendar?

    I want my list view back in Calendar...

  • Case (in)sensitive file names

    Hello, In my program I have to know if the file names in the operating system the program runs on are case sensitive or not. Example: If "words.txt" and "Words.txt" are the same files or can be different files (suppose they are in the same directory)

  • Viewing webpage videos

    I'm curious if anyone is able to view any of the videos displayed on apple's website on the touch. I can't, it says that the format is not supported... but it did work with other sites. I do find it a bit weird that you cannot view the contents of th

  • XML Publisher Datasource XML Data Template

    Hello, I am trying to create function (Program Units) in my XML Data template, I get the following ERROR. XX Custom Application: Version : UNKNOWN Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved. XXTESTNEW module: XX TEST Report-New

  • Invoke Report From Database trigger

    Hi, Is it possible to invoke a report from a database trigger? The requirement is to start a report after a record was inserted in a table. Thank you, Alex.