Exception in calling methods on a com object using jcom

Hi All,
I am trying to conect to CognosUpfront thorugh there com interface using weblogic
jcom architecture.
Steps followed :
Generated java classes for corresponding com dll
Added it to classpath
Enable the jcom mode and native mode of server.
Register the server jvm for native mode using regjvm.
After following all these steps I am able to create the object of UpfrontSession
but I am not able to call any method on this.
Its giving me NullPointerException
Can someone help me to solve this problem...
Stacktrace is below
java.lang.NullPointerException
at bicognos.UpfrontSession.login(UpfrontSession.java:192)
at jsp_servlet._portlets._iframetest.__iframetest._jspService(iframeTest
.jsp:29)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
r.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
er.java:190)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6316)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Thanx and regards,
Manish Rathi

kamranA wrote:
cout << "Part Number = " << part.getNumber() << endl;
This is exactly what Jace, http://jace.reyelts.com/jace, helps you do. Your code would look exactly like this:JNIEXPORT jobjectArray JNICALL Java_translate_CgmTranslation_createCGM
  ( JNIEnv *env, jobject thisobject, jobject jPart ) {
  Part part( jPart );
  cout << "Part Number = " << part.getNumber() << endl;
}The roughly equivalent bare-bones JNI would be:JNIEXPORT jobjectArray JNICALL Java_translate_CgmTranslation_createCGM
  ( JNIEnv *env, jobject thisobject, jobject jPart ) {
  jclass partClass = env->GetObjectClass( jPart );
  jmethodID partNumberMethod = env->GetMethodID( partClass, "getNumber", "()Ljava/lang/String;" );
  if ( ! methodID ) {
    cout << "Unable to locate the method ID for Part.getNumber()" << endl;
    return;
  jstring jPartNumberStr = static_cast<jstring>( env->CallObjectMethod( jPart, partNumberMethod ) );
  if ( env->ExceptionOccurred() ) {
    cout << "An exception occurred while calling Part.getNumber()" << endl;
    return;
  const char* partNumberStr = env->GetStringUTFChars( jPartNumberStr, NULL );
  if ( ! partNumberStr ) {
    cout << "A JNI failure occurred while trying to retrieve the contents of the part number string." << endl;
    return;
  cout << "Part Number = " << partNumberStr << endl;
  env->ReleaseStringUTFChars( jPartNumberStr, partNumberStr );
}See any differences?
God bless,
-Toby Reyelts

Similar Messages

  • BAPI-VB, Unable to call method GetDetail of USER Object using SAP.BAPI.1

    Hi,
    I am trying to call SAP Methods using Excel VBA.
    In the below example, I am trying to get the user details.
    I can solve this, if I use SAP.Functions object, but not when I use SAP.BAPI.1 object.
    The Procedure GetUserDetails() works fine, but the 2nd one GetUserDetails2() fails?
    Can you tell what is the difference in calling SAP method with SAP.Functions and SAP.BAPI.1 ?
    Also how can I run the program GetDetails2() using SAP.BAPI.1
    Const CNT_STR_USR As String = "XXXXX"
    Const CNT_STR_PWD As String = "XXXXX"
    Const CNT_STR_APPLN_SRVR As String = "ides47"
    Const CNT_STR_SYSTEM As String = "IDS"
    Const CNT_STR_SYS_NUM As String = "00"
    Const CNT_STR_CLIENT As String = "800"
    Const CNT_STR_LOGON_LANG As String = "EN"
    Const CNT_STR_LOG_FILE As String = "C:sap_vb.txt"
    Const CNT_INT_LOG_LEVEL As Integer = 9
    'Works Fine
    Public Sub GetUserDetails()
    'Using SAP Functions
    Dim obSAPFn As Object
    Dim obFuncUsrDtl As Object
    Dim obFuncRtrn As Object
    Dim obFuncLogDtl As Object
    Dim sRetStatus As String * 1, sErrText As String, sUsrGroup As String * 12
    Dim iRetRowCount As Integer, iLoop As Integer
    Dim bErrFlag As Boolean
    'Set obSAPFn = New SAPFunctions
    Set obSAPFn = CreateObject("SAP.Functions")
    obSAPFn.Connection.ApplicationServer = CNT_STR_APPLN_SRVR
    obSAPFn.Connection.SystemNumber = CNT_STR_SYS_NUM
    obSAPFn.Connection.User = CNT_STR_USR
    obSAPFn.Connection.Password = CNT_STR_PWD
    obSAPFn.Connection.Language = CNT_STR_LOGON_LANG
    obSAPFn.Connection.Client = CNT_STR_CLIENT
    obSAPFn.LogLevel = CNT_INT_LOG_LEVEL
    obSAPFn.LogFileName = CNT_STR_LOG_FILE
    'Check For Connection
    If obSAPFn.Connection.Logon(0, True) = False Then
        MsgBox "R/3 connection failed"
    Exit Sub
    Else
        If obSAPFn.Connection.IsConnected Then
    '    MsgBox "Connected"
        Else
        MsgBox "Not COnnected"
        Exit Sub
        End If
    End If
    'Get User Details.
    Set obFuncUsrDtl = obSAPFn.Add("BAPI_USER_GET_DETAIL")
    obFuncUsrDtl.Exports("USERNAME") = CNT_STR_USR
    obFuncUsrDtl.Call
    Set obFuncRtrn = obFuncUsrDtl.Tables("RETURN")
    iRetRowCount = obFuncRtrn.RowCount
    bErrFlag = False
    For iLoop = 1 To iRetRowCount
        If obFuncRtrn(iLoop, "TYPE") = "E" Then
    '        ErrorUsuario = True
            sErrText = "E" & obFuncRtrn(iLoop, "ID") & obFuncRtrn(iLoop, "NUMBER") & _
                         " " & obFuncRtrn(iLoop, "MESSAGE")
            MsgBox sErrText
            bErrFlag = True
            Exit For
        End If
    Next
    If bErrFlag = False Then
    Set obFuncLogDtl = obFuncUsrDtl.Imports("LOGONDATA")
    sUsrGroup = obFuncLogDtl("CLASS")
    MsgBox sUsrGroup
    End If
    Set obFuncRtrn = Nothing
    Set obFuncLogDtl = Nothing
    Set obFuncUsrDtl = Nothing
    obSAPFn.Connection.LogOff
    Set obSAPFn = Nothing
    End Sub
    ' Does not work
    Public Sub GetUserDetails2()
    'Using BAPI Object
    Dim obSapBAPICtrl As Object 'BAPI control object
    'Dim obSAPConn As Object 'Connection object
    Dim obSAPUSER As Object ' To Get Details of USER Object
    Dim obLogondata As Object, obDefaults As Object, obAddress As Object, obCompany As Object
    Dim obSnc As Object, obParameter As Object, obProfiles As Object, obActivitygroups As Object
    Dim obReturn As Object, obAddComrem As Object, obAddRml As Object, obAddPag As Object
    Dim obAddUri As Object, obAddSsf As Object, obAddPrt As Object, obAddRfc As Object
    Dim obAddX400 As Object, obAddSmtp As Object, obAddTlx As Object, obAddTtx As Object
    Dim obAddTel As Object, obAddFax As Object, obParameter1 As Object
    Dim sRetStatus As String * 1, sTransId As String, sUsrGroup As String
    Dim iRetRowCount As Integer, iLoop As Integer
    Set obSapBAPICtrl = CreateObject("SAP.BAPI.1")
    obSapBAPICtrl.Connection.ApplicationServer = CNT_STR_APPLN_SRVR
    obSapBAPICtrl.Connection.SystemNumber = CNT_STR_SYS_NUM
    obSapBAPICtrl.Connection.User = CNT_STR_USR
    obSapBAPICtrl.Connection.Password = CNT_STR_PWD
    obSapBAPICtrl.Connection.Language = CNT_STR_LOGON_LANG
    obSapBAPICtrl.Connection.Client = CNT_STR_CLIENT
    obSapBAPICtrl.LogLevel = CNT_INT_LOG_LEVEL
    obSapBAPICtrl.LogFileName = CNT_STR_LOG_FILE
    'Don't show the logon details
    'Connect to SAP
    If obSapBAPICtrl.Connection.Logon(0, True) = False Then
        MsgBox "R/3 connection failed"
        Exit Sub
    Else
        If obSapBAPICtrl.Connection.IsConnected Then
    '    MsgBox "Connected"
        Else
        MsgBox "Not COnnected"
        Exit Sub
        End If
    End If
    ‘Could not find a way to pass the User Id?
    ‘ Is this the right way to pass the user Id for this Object?
    Set obSAPUSER = obSapBAPICtrl.GetSAPObject("USER", CNT_STR_USR)
    Set obLogondata = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Logondata")
    Set obDefaults = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Defaults")
    Set obAddress = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Address")
    Set obCompany = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Company")
    Set obSnc = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Snc")
    Set obParameter = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Parameter")
    Set obProfiles = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Profiles")
    Set obActivitygroups = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Activitygroups")
    Set obReturn = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Return")
    Set obAddComrem = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddComrem")
    Set obAddRml = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddRml")
    Set obAddPag = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddPag")
    Set obAddUri = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddUri")
    Set obAddSsf = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddSsf")
    Set obAddPrt = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddPrt")
    Set obAddRfc = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddRfc")
    Set obAddX400 = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddX400")
    Set obAddSmtp = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddSmtp")
    Set obAddTlx = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTlx")
    Set obAddTtx = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTtx")
    Set obAddTel = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTel")
    Set obAddFax = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddFax")
    Set obParameter1 = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Parameter1")
    sTransId = obSapBAPICtrl.CreateTransactionID()
    'obSapBAPICtrl.TransactionId = sTransId
    obSAPUSER.GetDetail Logondata:=obLogondata, Defaults:=obDefaults, Address:=obAddress, _
    Company:=obCompany, Snc:=obSnc, Parameter:=obParameter, Profiles:=obProfiles, _
    Activitygroups:=obActivitygroups, Return:=obReturn, AddComrem:=obAddComrem, _
    AddRml:=obAddRml, AddPag:=obAddPag, AddUri:=obAddUri, AddSsf:=obAddSsf, _
    AddPrt:=obAddPrt, AddRfc:=obAddRfc, AddX400:=obAddX400, AddSmtp:=obAddSmtp, _
    AddTlx:=obAddTlx, AddTtx:=obAddTtx, AddTel:=obAddTel, AddFax:=obAddFax, _
    Parameter1:=obParameter
    iRetRowCount = obReturn.RowCount
    If iRetRowCount > 0 Then
        For iLoop = 0 To iRetRowCount
            sRetStatus = obReturn(iLoop, "TYPE")
            If sRetStatus = "S" Then
            sUsrGroup = obLogondata("CLASS")
            MsgBox sUsrGroup
            End If
        Next
    End If
    Set obSAPUSER = Nothing
    obSapBAPICtrl.Connection.LogOff
    'Set obSAPConn = Nothing
    Set obSapBAPICtrl = Nothing
    End Sub
    Regards,
    Vikas

    The problem was occuring because, the structure Return was not holding any values.
    But the other tables which returned values were getting populated.
    Regards,
    Vikas

  • Calling methods from the Business Object BUS2032

    Hi all,
    Is it possible to call methods from the Business Object BUS2032.
    If so, how can it be done??
    Regards,

    Hi Marv,
    you sure can. Here is an extract from the SAP Help. I found it at http://help.sap.com/saphelp_46c/helpdata/en/c5/e4ad71453d11d189430000e829fbbd/frameset.htm
    <b>Programmed Method Call</b>
    Call (fictitious) method Print of object type VBAK (sales document). The method receives the parameters Paperformat and Printertype as input.
    * Call method Print of object type VBAK
    * Data declarations
    DATA: VBAK_REF TYPE SWC_OBJECT.
    SWC_CONTAINER CONTAINER.
    * Create object reference to sales document
    SWC_CREATE_OBJECT VBAK_REF 'VBAK' <KeySalesDoc>
    * Fill input parameters
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'Paperformat' 'A4'.
    SWC_SET_ELEMENT CONTAINER 'Printertype' 'Lineprinter'.
    * Call Print method
    SWC_CALL_METHOD VBAK_REF 'Print' CONTAINER.
    * Error handling
    IF SY-SUBRC NE 0.
    ENDIF.
    Cheers
    Graham

  • Error calling method of a PBNI object

    Dear All,
    We are facing issue of "Error calling method of a PBNI object". We are calling web services of WCF after some time to refresh data.We need help to solve this issue as we have to go live with client.
    It's really urgent!
    Regards
    Imran Zaheer

    Hi Chris,
    Thanks for your concern.
    1) PB version & Build?
         PB builder 12.5.2 build 5609
    2) MS-Window version?
         Windows 7 professional.
    3) Why are you using PBNI and what kind of class are you utilizing in that context?
         We are calling webservices through soap objects.
    4) What error(s) codes and messages are you getting?
        we get "Error calling method of a PBNI object"
    5) Why are you not using PB.net that supports WCF natively (I wish PB classic did)?
        For this we need to convert our whole application in PB.Net which is not feasible for us.
    6) Can you lightly describe your over-all architecture and application approach to Web Services?
         We have replace EASERVER with WCFserver and we are calling webservices for fetching( pulling) data from WCF server. It's a soft of 3 tier architecture.
    Regards .... Imran

  • JVM crash when calling no-arg methods of a COM object with JACOB

    When I try to call no-arg functions of a COM object with JACOM JVM crashes with the following error
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x770e47c5, pid=5424, tid=3392
    # JRE version: 6.0_17-b04
    # Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode, sharing windows-x86 )
    # Problematic frame:
    # C [ntdll.dll+0x347c5]
    The log is at [http://paste.linux-sevenler.org/index.php?id=32319|http://paste.linux-sevenler.org/index.php?id=32319]
    Thanks in advance
    Serkan

    This only happens with sun JDK IBM jdk works fine

  • Calling methods located inside ActiveX objects from Java

    Hi folks,
    I understand that I can wrap ActiveX methods in C and call using JNI, but I am looking for an elegant way to call methods inside of Active X controls directly. There are a set of classes in com.ms.ActiveX package that allow this, but I am receiving a java.lang.UnsatisfiedLinkError: initPolicyEngine at runtime. I can't find any documentation from Microsoft on this (go figure). Has anyone ever used the com.ms packages, or does anyone know of an elegant solution avoiding wrappers and JNI? I have sucessfully used the neva objects vendor classes, but I find them too bulky for mainstream use. Any thoughts are appreciated. Thanks.

    Hi,
    - If you use the package com.ms.* You'll need to run your application in the Microsoft VM (jview.exe).
    - If you run it inside the browser you cannot use the java plugin, and your applet needs to be signed.
    If this doesn't help, please provide the version of your msjava.dll.
    Regards,
    Kurt.

  • Calling methods from inside a tag using jsp 2.0

    My searching has led me to believe that you cannot call methods from in the jsp 2.0 tags. Is this correct? Here is what I am trying to do.
    I have an object that keeps track of various ui information (i.e. tab order, whether or not to stripe the current row and stuff like that). I am trying out the new (to me) jsp tag libraries like so:
    jsp page:
    <jsp:useBean id="rowState" class="com.mypackage.beans.RowState" />
    <ivrow:string rowState="${rowState}" />my string tag:
    <%@ attribute type="com.mypackage.beans.RowState" name="rowState" required="true" %>
    <c:choose>
         <c:when test="${rowState.stripeToggle}">
              <tr class="ivstripe">
         </c:when>
         <c:otherwise>
              <tr>
         </c:otherwise>
    </c:choose>I can access the getter method jst fine. It tells me wether or not to have a white row or a gray row. Now I want to toggle the state of my object but I get the following errors when I try this ${rowState.toggle()}:
    org.apache.jasper.JasperException: /WEB-INF/tags/ivrow/string.tag(81,2) The function toggle must be used with a prefix when a default namespace is not specified
    Question 1:
    Searching on this I found some sites that seemed to say you can't call methods inside tag files...is this true?...how should I do this then? I tried pulling the object out of the pageContext like this:
    <%@ page import="com.xactsites.iv.beans.*" %>
    <%
    RowState rowState = (RowState)pageContext.getAttribute("rowState");
    %>I get the following error for this:
    Generated servlet error:
    RowState cannot be resolved to a type
    Question 2:
    How come java can't find RowState. I seem to recall in my searching reading that page directives aren't allowed in tag files...is this true? How do I import files then?
    I realized that these are probably newbie questions so please be kind, I am new to this and still learning. Any responses are welcome...including links to good resources for learning more.

    You are correct in that JSTL can only call getter/setter methods, and can call methods outside of those. In particular no methods with parameters.
    You could do a couple of things though some of them might be against the "rules"
    1 - Whenever you call isStripeToggle() you could "toggle" it as a side effect. Not really a "clean" solution, but if documented that you call it only once for each iteration would work quite nicely I think.
    2 - Write the "toggle" method following the getter/setter pattern so that you could invoke it from JSTL.
    ie public String getToggle(){
        toggle = !toggle;
        return "";
      }Again its a bit of a hack, but you wouldn't be reusing the isStriptToggle() method in this way
    The way I normally approach this is using a counter for the loop I am in.
    Mostly when you are iterating on a JSP page you are using a <c:forEach> tag or similar which has a varStatus attribute.
    <table>
    <c:forEach var="row" items="${listOfThings}" varStatus="status">
      <tr class="${status.index % 2 == 0 ? 'evenRow' : 'oddRow'}">
        <td>${status.index}></td>
        <td>${row.name}</td>
      </tr>
    </c:forEach>

  • What transform engine does the 'transform' method on an xmltype object use?

    Does anybody know what transform engine is used when I call the 'transform' method on an xmltype object? I would like to use extension functions within my stylesheets but do not know what functions are available or the syntax for using them. Is there any documentation on this processor?
    I am using oracle 9.2.0.7.
    Thanks

    Thanks for your responses. I guess being written in C makes it faster than the java one (?). I understand I won't be able to add my own extension functions, but does anyone know if there are any built-in ones, for example a node-set function?

  • Method not found error when creating COM object

    i am trying to initiate a COM object with CF and Imagemagick
    on windows 2003. when i initiate the object i get the error "The
    selected method convert was not found." if i do a dump of the
    method in the COM object but i cant call it. what am i missing?
    the code i am using is attached.
    the VBscipt sample that comes with imagemagick works fine,
    its just that CF cant all it. any ideas?
    thanks
    NF

    Hi,
    Have you had a reponse or find the solution?
    I have a similar problem, no error message but that kill the
    session.
    Thanks
    Didier

  • Calling Methods from Business Object BUS2032

    Hi all,
              Is it possible to call methods from the Business Object BUS2032.
       If so, how can it be done?? 
    Regards,

    Hi Marv,
    you sure can. Here is an extract from the SAP Help. I found it at http://help.sap.com/saphelp_46c/helpdata/en/c5/e4ad71453d11d189430000e829fbbd/frameset.htm
    <b>Programmed Method Call</b>
    Call (fictitious) method Print of object type VBAK (sales document). The method receives the parameters Paperformat and Printertype as input.
    * Call method Print of object type VBAK
    * Data declarations
    DATA: VBAK_REF TYPE SWC_OBJECT.
    SWC_CONTAINER CONTAINER.
    * Create object reference to sales document
    SWC_CREATE_OBJECT VBAK_REF 'VBAK' <KeySalesDoc>
    * Fill input parameters
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'Paperformat' 'A4'.
    SWC_SET_ELEMENT CONTAINER 'Printertype' 'Lineprinter'.
    * Call Print method
    SWC_CALL_METHOD VBAK_REF 'Print' CONTAINER.
    * Error handling
    IF SY-SUBRC NE 0.
    ENDIF.
    Cheers
    Graham

  • Sun JDK 1.3.1 calling a Microsoft COM object???

    My question, which inevitably in my eyes has been deemed impossible to answer, is as follows: How can one incorporate MS VM to connect to an MS COM object using Sun�s JDK 1.3.1?
    I�ve tried the following: I ran the simple example of a COM object with a client interfacing with that COM object that came with MS SDK for Java 4.0. I built the *java files using the given makefile (jvc).  I registered the Hub with javareg and created a hub.tlb with jactivex. 
    Using JBuilder 4.0, I built a small non-swing object that created in instance of the Client class from above:
    import sample.dcom.*;
    public class Main
    public Main()
    try
    // MS Client � the Client class creates the COM object connection to HUB
    Client client = new Client();
    catch( Exception exception )
    System.err.println("Default exception caught");
    System.err.println(exception);
    exception.printStackTrace();
    I was able to compile/make the above snippet of code, but without having access to the com.ms* classes and without loading a library (since the Hub class actually references a native function), I was not able to run my application:
    java.lang.UnsatisfiedLinkError: addListener
         at hub.Hub.addListener(Native Method)
         at sample.dcom.Client.<init>(Client.java)
         at am.temp.Main.<init>(Main.java:30)
         at am.temp.Main.main(Main.java:44)
    However, if run the following command: jview Main, I get the necessary results. Which is what I thought would happen. I tried doing the same thing within a swing application, however, to my not-so-surprise, MS doesn�t contain swing components. I�ve read through many forum headaches: �I�ve tried appending rt.jar�, �You can�t mix MS with Sun�, etc.
    Therefore, has anyone had any luck creating/connecting/instantiating a MS COM object while trying to run it under Sun�s VM? Note: I have to do it this way since the application I�m trying to connect to is built as a COM server and I�m using Java as my application language.
    Thank you.

    gui != COM.
    In other words COM objects are not limited to GUI objects. From your question it looks like you have a COM object which is a gui component. And you want to use it in swing. If it is just a fancy drop down box then I would say the complexity isn't worth it. If it does more, then I believe that people have put 'windows' into swing frames. You can search this forum or perhaps the "Advanced Programming" (or even all forums) for more discussion on that.

  • CAll method inside layout

    Hi all,
             how can we call method inside Layout

    Hi,
    Layout is used for designing,
    Code can be written in eventhandler, you can call the methods in eventhandler.
    Please refer the following links for more information.
    [Layout|http://help.sap.com/saphelp_nw70/helpdata/en/e6/a85e3ba69d493ce10000000a11402f/content.htm]
    [Event Handler|https://wiki.sdn.sap.com/wiki/display/BSP/EventHandlersin+BSP]
    Hope this helps you.
    Regards
    Rajani

  • Problem instantiating COM+ object

    Hi,
    I'm trying to instantiate a com+ object using
    <cfobject> and I'm getting:
    An exception occurred when instantiating a Com object
    The cause of this exception was that: AutomationException:
    0x80070002
    The com object is built in c# .net and implements the
    iDispatch interface. We're running mx 7, and using the following
    syntax to instantiate the object:
    <cfobject type = "com" action = "create" class =
    "COMService" name = "myCOMService" context = "local" />
    Can anyone suggest any pointers?
    Thanks,

    Turns out it was a problem with the COM+ component. Googling
    the specific error code 0x80070002 helped to uncover the
    problem.

  • Photoshop COM Object Scripting via PhP

    Has anyone had any joy creating a photoshop COM Object using PhP?
    Normally you would do something like this :
    $ps = new COM("Photoshop.Application.8") or die ("Failed to initialize.");
    var_dump($ps);
    I can see photoshop launched in the task manager, but when run in my browser appears to be stuck in a loading cycle, no output of the Object.
    Doing this :
    $ps = new COM("Microsoft.XMLDOM") or die ("Failed to initialize.");
    var_dump($ps);
    Correctly outputs 'object(com)#1 (0) { }'
    ie. an initialized XMLDOM COM object.
    If i can initialize Photoshop as a COM object i should be able to script it directly in PhP, rather than using the command line to execute a droplet that calls an action to execute a VB/JSX Script.

    I would like some information on this as well...

  • How to specify a type of COM-object activation

    How to specify a type of COM-object activation: in-proc, local server etc - in C# client? I want to use a .NET analog of CLSCTX_INPROC_SERVER constant. Documentation for used COM component insist that all types of activation are possible.

    When you create an instance of a COM object using COM Interop, it is the equivalent of calling CoCreateInstance with CLSCTX_ALL.
    (See COM Interop Part 1: C# Client Tutorial.)
    If you don't like the automatic behavior, then Create the object manually (PInvoke CoCreateInstance) and just marshal the interface pointer to get a runtime callable wrapper by specifying
    MarshalAs(UnmanagedType.Interface) on the result.  (The DllImport signature provided at the pinvoke.net link above marshals it this way.)

Maybe you are looking for

  • How do I assign a disk drive to backup my iPad

    I am trying to update to iOS 8.1.1, using iTunes on my PC.  However, there is insufficient space in my C: drive to backup the iPad Mini.  I have other hard drives that have space and want to use one of the other drives for iTunes to perform the backu

  • How to transfer or copy my complete address book from my BB to another smartphone

    Hello Everybody, Could someone tell me how to transfer or copy my complete address book from my BB Torch 9800 to another smartphone and vice-versa? Many thanks in advance for your replies. Best regards, Eric ---------------------------------------- [

  • Utl_http package from our custom pl/sql package.

    We have a requirement to invoke a thrid party Url that uses HTTPS. For this we are using the call to utl_http package from our custom pl/sql package. When we invoke the custom package form Oracle Forms it works fine. But when we try to invoke the sam

  • Splitting source record

    Hi Gurus, I am not ABAP specilaist, I am trying to split source records(field xyz) to two fields (feild 1: xyz1, Field 2: xyz2) in target. Basically source data filed will have values starting with J and Z. Example: J001,Z010 etc.. Now in the transfo

  • Why is my computer telling me the Creative Cloud installer is not responding?

    I've tried re-downloading it several times now and the same thing happens each time. Please help, my laptop crashed and I'm trying to get creative cloud back on my computer so that I can work.