BAPIs and JAVA , method setValue() is giving error ???

Hello all
I havea bapi ,which i m calling from my java application using JCO ,
The function module : 'ZBAPINEW1'
Import parameter : IN1 type ZBAPI_NEW1 ( ZBAPI_NEW1 is a structure having 'CARRID' as the only field inside )
now the code inside the java pgm is as follows
  IFunctionTemplate ft = repository.getFunctionTemplate("ZBAPINEW1");
  JCO.Function func = ft.getFunction();
JCO.ParameterList input = func.getImportParameterList();
<u><i> <b>input.setValue("AA","IN1");</b></i></u>
it is here that it is giving me error that the value string"AA" cant be assigned to a structure "IN1" , which is understandable ..but now  my qn is how to assign import values to the fields of the BAPI function module whic are of type structure.
PLz help !!
Thank in advance
Nilesh

hi
i went through ur link
but i didn understand 1 thing
input.setValue("INFO_TABLT", "QUERY_TABLE");
here the QUERY_table is an import parameter in ur function module , so is it of type DDIC structure which contaisn some fileds or directly some DDIC field .IF this is aDDIC structure (as in my case) how can we assign the value to the structure , rather iw ant ot assign that value to one field in that structure (         IN1-carrid in my case) .
thank
nilesh

Similar Messages

  • Adstpall.sh and adstrtal.sh scripts is giving error in R12

    Team,
    I am trying to start and stop the services using adstpall.sh and adstrtal.sh but its giving error.
    -bash-3.00$ sh adstpall.sh
    You are running adstpall.sh version 120.10.12010000.4
    Enter the APPS username: apps
    Enter the APPS password:
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstpall.sh <appsusername/appspassword>
    adstpall.sh <applications_username/applications_password> -secureapps
    adstpall.sh -nodbchk
    adstpall.sh: exiting with status 1
    -bash-3.00$ sh adstrtal.sh
    You are running adstrtal.sh version 120.15.12010000.3
    Enter the APPS username: apps
    Enter the APPS password:
    adstrtal.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstrtal.sh <appsusername/appspassword>
    adstrtal.sh <applications_username/applications_password> -secureapps
    adstrtal.sh -nodbchk
    adstrtal.sh: exiting with status 1
    But I am able to login to DB with the same.
    -bash-3.00$ sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Sat Mar 26 09:29:27 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select name from v$database;
    NAME
    R1212112
    SQL> select banner from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Autoconfig on the Apps tier and Db tier is completing successfully without any issues.
    COuld you please help me in rectifying the issue.

    Hi Srini,
    I tried the below but It didnt work:
    /slot/ems6596/appmgr/inst/apps/r1212112_rws60007rems/admin/scripts
    -bash-3.00$ adstpall.sh apps/apps
    You are running adstpall.sh version 120.10.12010000.4
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstpall.sh <appsusername/appspassword>
    adstpall.sh <applications_username/applications_password> -secureapps
    adstpall.sh -nodbchk
    adstpall.sh: exiting with status 1
    -bash-3.00$ adstpall.sh
    You are running adstpall.sh version 120.10.12010000.4
    Enter the APPS username: apps
    Enter the APPS password:
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstpall.sh <appsusername/appspassword>
    adstpall.sh <applications_username/applications_password> -secureapps
    adstpall.sh -nodbchk
    adstpall.sh: exiting with status 1
    Any help into this.

  • After Merging the search tool Area and Mast head ivew its giving error

    Hi Porat Gurus,
                      I have merged the Mast head Ivew with the top level tool area and  added all  the components that is required for tool area search in mast head Ivew in the lightheader page and deploying its giving error
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 11:50_14/10/08_0008_7205750
    See the details for the exception ID in the log file.
    plz tell where do i search for this exception
    i could nt find anything in default trace
    thanks in advance
    johny

    Hi,
    Steps need to for Merging the search tool Area and Mast head iview,
    1. copy the search area properties from the tool area and paste the properties in masthead property file.
    2. copy the tool area jar in the lib folder of the tool area par and paste that in to lib folder of masthead par.
    3. copy the search area variables and methods from the tool area jsp and paste variables and methods in masthead HeaderiView.jsp file.
    4. copy the search area properties from the tool area portalapp xml and paste the properties in masthead portalapp xml file.
    Check these steps are done.i hope this will help u.
    Regards,
    Kathiresan R

  • Hello, good morning ! I have the creative cloud photography ( photoshop lightroom + ) and suddenly my Lightroom is giving error asking serial . Where I find my serial ? Help me!

    Hello, good morning! I have the creative cloud photography (photoshop + lightroom) anda suddenly my Lightroom is giving error asking serial. Where I find my serial? Help me!!!

    Hi Morana,
    Adobe Creative cloud applications do not have any serial numbers. They are activated through your adobe id.
    Please refer to the help document to fix this issue:
    Creative Cloud applications ask for serial number
    Regards,
    Sheena

  • BAPI:BAPI_TRLSRVAPS_SAVEMULTI2 for TLane creation is giving error

    Hi Gurus,
    I am executing BAPI:BAPI_TRLSRVAPS_SAVEMULTI2 for TLane creation. when i am passing required values like , location from , Location to, model, version, lot size , etc.
    After executing the BAPI is returning that ''Entry was not processed because there is no changing parameter available''. Can any one experienced this before. As i am creating a new TLane, why this error should come???

    Hi ,
    Best way to check the parameter list is ,use the bapi BAPI_TRLSRVAPS_GETLIST (SCM 4.0) or similar available in 5.0 to read the existing transportation lanes successfully created in system.Check all the parameters and update similar parameters for BAPI_TRLSRVAPS_SAVEMULTI2.
    Ofcourse then you can come to exact parameters functionally important to you by trial and error.
    Otherwise you can use the APO loader tool to create the transportation lanes.Although SAP discourages to use it in the production system , for testing it is fine.Please check the FAQ note 551972.
    Regards,
    Nikhil Nalgirkar

  • Both my laptop and desktop at work are giving error "Sync encountered an error while syncing: unknown error. This just started for no obvious reason

    firefox 4.0.1
    I don't think this started when i upgraded, only noticed this today on both computers
    Running XP on both.

    If you have tried everything, you should, first open a bug with the log of your server error (so the team can fix it) and then replace the info in the server. It's probably corrupted:
    * [https://philikon.wordpress.com/2011/06/13/how-to-file-a-good-sync-bug/ How to file a good Sync bug.]
    * [[Replace your Sync information]]

  • Errror in RFC connection between SCM ABAP stack and JAVA Stack

    Hi All
    we have installed SCM Abap stack and SCM java stack on same system within single database.when i create rfc connection AI_RUNTIME_JCOSERVER from SCM Java stack to SCM Abap Stack its working fine,but when i am configuring same from SCM Abap to SCM Java using SM59 its giving error.
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: failed to open file G:\usr\sap\SCD\DVEBMGS00\data\sideinfo.DAT
    Error Details     LOCATION: SAP-Gateway on host OPS20SCD1.Octal.pet / sapgw00
    Error Details     CALL: fopen
    Error Details     COMPONENT: SAP-GW-LIB (ReadSideInfo)
    Error Details     COUNTER: 1854
    Error Details     ERROR NUMBER: 2
    Error Details     ERROR TEXT: ENOENT: No such file or directory OR: The system cannot find the fi*
    Error Details     MODULE: gwxxside.c
    Error Details     LINE: 274
    Error Details     RETURN CODE: 451
    Error Details     SUBRC: 0
    Error Details     RELEASE: 701
    Is it compulsory to create RFC connection between abap and java installed on the same system.
    plese suggest.
    Regards

    to configure acceptance of the ABAP (integrated ITS / WebGUI) saplogonticket on the java stack, just log into the java stack (http://FQDN:50xxx/nwa) and select configuration  THe last item in the list is Trusted System... click.
    on the ensuing page, click on the add trusted system button --> by querying trusted sytem.
    Enter the required data on the page:
    system type: ABAP
    host name: FQDN
    System Nr: your instance number
    client (of the productive client)
    and a username and pw with superuser priveliges in the system (SAP_ALL/SAP_NEW, etc).
    the click next
    On the final screen, click finish.
    You have now SSO setup between the ABAP and Java stacks. To configure SSO to accept java saplogontickets on ABAP see:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b0310d6-0801-0010-3185-b2371a280372
    This should resolve your question.

  • Xmlgen and java version

    trying to figure out which jars need to be in my classpath.
    Using 1.4.2 I get
    911@file:/C:/sgml/NISO/2005/05Std/dtbook121a.dtd
    generating document #1
    Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ranges/Do
    cumentRange
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    etc,
    with 1.5 I get
    Exception in thread "main" java.lang.NullPointerException
    at com.sun.msv.generator.DOM2toSAX2.convertAttributes(Unknown Source)
    at com.sun.msv.generator.DOM2toSAX2.onElement(Unknown Source)
    at com.sun.msv.generator.DOM2toSAX2.traverse(Unknown Source)
    at com.sun.msv.generator.Driver.run(Unknown Source)
    at com.sun.msv.generator.Driver.main(Unknown Source)
    1. Which jars are needed please?
    I currently have
    set x=/myjava/xmlgen
    set cp=%x%/xmlgen.jar;%x%/msv.jar;%x%/xerces.jar;%x%/xercesImpl.jar
    2. Which version of java has it been proven with please?
    TIA, DaveP

    Further information.
    Using the provided xerces.jar, recent xmlParserAPIs.jar and java 1.4.2
    the error reduces to
    java -cp /myjava/xmlgen/xmlgen.jar;/myjava/xmlgen/xmlParserAPIs.jar com.sun.msv.generator.Driver -dtd dtbook121b.dtd -root {}book
    parsing a grammar: dtbook121b.dtd
    generating document #1
    Exception in thread "main" java.lang.NullPointerException
    at com.sun.msv.generator.DOM2toSAX2.convertAttributes(Unknown Source)
    at com.sun.msv.generator.DOM2toSAX2.onElement(Unknown Source)
    at com.sun.msv.generator.DOM2toSAX2.traverse(Unknown Source)
    at com.sun.msv.generator.Driver.run(Unknown Source)
    at com.sun.msv.generator.Driver.main(Unknown Source)
    regards DaveP

  • RESOURCE_NOT_FOUND for XSLT and Java Mappings (SXMB_MONI)

    Experts,
    I need your opinion / experience about a problem that we have been facing here:
    XI 3.0 was upgraded to PI 7.0, but since then all interfaces that uses XSLT and Java Mappings throws a RESOURCE_NOT_FOUND error in SXMB_MONI only in the production environment.
    We found SAP Note 951318 that describes exactly the scenario we have here. The note also inform that the issue is solved at SP 07 (for PI 7.0).
    The problem is that we find out that abap and java instance are with different SP ( SP 13 for abap and SP 09 for java) after XI upgrade to 7.0, since they had a error at java instance.
    Have anyone of you facing with this problem?
    I believe that even having a SP greater than 07 (as sap note 951318 requires), as we have an difference between abap and java SP, this issue might have been causing the problem.
    Points will be given.
    Regards,
    Daniela

    Yes, thats true. As you can see,
    In XI 3.0 (SAP Netweaver'04), the issue is solved in:
               SP 18,
               SP 17, patch 1 (archive SAPXITOOL17_1. sca for XI Tools)
               SP 16, patch 4 (archive SAPXITOOL16_4.sca for XI Tools).
    you need to import and put a patch if you are using XI 3.0. but in your case it is PI 7.0.
    So please check out the SAP Note : 950608 and download SP 07,patch 2 (archive SAPXITOOL07_2.sca for XI Tools).and Note 952402 .
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • BAPI  BAPI_PR_CHANGE  giving error message: Enter G/L Account

    Hi Folks,
    I am using bapi Enter G/L Account to add new item in existing PR number.
    In return table, bapi is giving error mesage that, 'Enter G/L Account' . But i don't know where to pass the G/L number to this bapi and from where i can get the G/L number for existing PR document.
    Regards
    PG

    Hi,
    Enter the G/L account in the structure PRACCOUNT field GL_ACCOUNT. Enter the Purchase requistion item no in the field PREQ_ITEM  in the structure PRACCOUNT.
    Also,
    Enter the Purchase requistion item no in the field PREQ_ITEM  in the structure PRACCOUNTX. Set update field to 'X'  in the structure PRACCOUNT field GL_ACCOUNT.
    Hope it helps.
    Sujay

  • Error during VM container communication between ABAP and JAVA

    Hello,
    While creation of SC, I am getting error "Error during VM container communication between ABAP and JAVA"
    Based on earlier responses in this forum, I checked following activity.
    1. T Code - BBP_CND_CHECK_CUST
    Result - IPC Pricing is Active and IPC is now running in VMC
    2. Run Report - RSVMCRT_HEALTH_CHECK
    Result - The Java component is deactivated
    3. As per OSS note 854170, Profile parameters were existed as below
    a) vmcj/enable - on
    b) vmcj/option/maxJavaHeap = 200M
    So, How to get Java component activated?
    Thanks,
    Rahul Mandale

    Thanks Markus,
    For SM53, I am getting resulets as " Java is not active on this application server - Message no. SVMCRT011"
    Can you suggest, what I need to do for it? I can't use SRM Shopping cart because of it. thanks in advance, Rahul
    and dev_w0 trace ....
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Wed Aug 31 15:45:40 2011
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\CUS\DVEBMGS04\exe\dboraslib.dll' ...
    B  Library 'D:\usr\sap\CUS\DVEBMGS04\exe\dboraslib.dll' loaded
    B  Version of 'D:\usr\sap\CUS\DVEBMGS04\exe\dboraslib.dll' is "700.08", patchlevel (0.46)
    B  New connection 0 created
    M sysno      04
    M sid        CUS
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    52
    M intno      20050900
    M make:      multithreaded, Unicode, optimized
    M pid        456
    M
    M  kernel runs with dp version 210000(ext=109000) (@(#) DPLIB-INT-VERSION-210000-UC)
    M  length of sys_adm_ext is 572 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 456) [dpxxdisp.c   1293]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          18304     (1408)
    M  DpShMCreate: sizeof(tm_adm)          3954072     (19672)
    M  DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    M  DpShMCreate: sizeof(comm_adm)          528064     (1048)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1452)
    M  DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 05C00040, size: 4613144)
    M  DpShMCreate: allocated sys_adm at 05C00040
    M  DpShMCreate: allocated wp_adm at 05C01E28
    M  DpShMCreate: allocated tm_adm_list at 05C065A8
    M  DpShMCreate: allocated tm_adm at 05C065D8
    M  DpShMCreate: allocated wp_ca_adm at 05FCBB70
    M  DpShMCreate: allocated appc_ca_adm at 05FD1930
    M  DpShMCreate: allocated comm_adm at 05FD3870
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 06054730
    M  DpShMCreate: allocated gw_adm at 06054770
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 060547A0
    M  DpShMCreate: allocated wall_adm at 060547A8
    X  EmInit: MmSetImplementation( 2 ).
    X  MM diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.

    M Wed Aug 31 15:45:41 2011
    M  ThInit: running on host crmsys

    M Wed Aug 31 15:45:42 2011
    M  calling db_connect ...
    C  Prepending D:\usr\sap\CUS\DVEBMGS04\exe to Path.

    C Wed Aug 31 15:45:47 2011
    C  Client NLS settings: AMERICAN_AMERICA.UTF8
    C  Logon as OPS$-user to get SAPSR3's password
    C  Connecting as /@CRM on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   0619F158   061A46F4   061A3F7C
    C  Attaching to DB Server CRM (con_hdl=0,svchp=061A3EC8,svrhp=061B5794)
    C  Starting user session (con_hdl=0,svchp=061A3EC8,srvhp=061B5794,usrhp=061CA558)

    C Wed Aug 31 15:45:48 2011
    C  Now '/@CRM' is connected (con_hdl 0, nls_hdl 0).
    C  Got SAPSR3's password from OPS$-user
    C  Disconnecting from connection 0 ...
    C  Closing user session (con_hdl=0,svchp=061A3EC8,usrhp=061CA558)
    C  Now I'm disconnected from ORACLE
    C  Connecting as SAPSR3/<pwd>@CRM on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   0619F158   061A46F4   061A3F7C
    C  Starting user session (con_hdl=0,svchp=061A3EC8,srvhp=061B5794,usrhp=061CA558)
    C  Now 'SAPSR3/<pwd>@CRM' is connected (con_hdl 0, nls_hdl 0).
    C  Database NLS settings: AMERICAN_AMERICA.UTF8
    C  Database instance CRM is running on CRMSYS with ORACLE version 10.2.0.1.0 since 20110831

    B Wed Aug 31 15:45:49 2011
    B  Connection 0 opened (DBSL handle 0)
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT TIM MAX OPT Date     Time   DBHost         
    B  000 000 R/3              000000000 ACTIVE       NO  YES NO  000 255 255 20110831 154542 CRMSYS         
    M  db_connect o.k.
    M  ICT: exclude compression: .zip,.cs,.rar,.arj,.z,.gz,.tar,.lzh,.cab,.hqx,.ace,.jar,.ear,.war,.css,.pdf,.js,.gzip,.uue,.bz2,.iso,.sda,.sar,.gif

    I Wed Aug 31 15:46:12 2011
    I  MtxInit: 0 0 0
    M  SHM_PRES_BUF               (addr: 0A7C0040, size: 4400000)
    M  SHM_ROLL_AREA          (addr: 788A0040, size: 61440000)
    M  SHM_PAGING_AREA          (addr: 0AC00040, size: 32768000)
    M  SHM_ROLL_ADM               (addr: 0CB50040, size: 615040)
    M  SHM_PAGING_ADM          (addr: 0CBF0040, size: 525344)
    M  ThCreateNoBuffer          allocated 544152 bytes for 1000 entries at 0CC80040
    M  ThCreateNoBuffer          index size: 3000 elems
    M  ThCreateVBAdm          allocated 12160 bytes (50 server) at 0CD10040
    X  EmInit: MmSetImplementation( 2 ).
    X  MM diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    X  ES initialized.
    B  db_con_shm_ini:  WP_ID = 0, WP_CNT = 13, CON_ID = -1
    B  dbtbxbuf: Buffer TABL  (addr: 10E700C8, size: 30000000, end: 12B0C448)
    B  dbtbxbuf: Buffer TABLP (addr: 12B100C8, size: 10240000, end: 134D40C8)
    B  dbexpbuf: Buffer EIBUF (addr: 0FBA00D0, size: 4194304, end: 0FFA00D0)
    B  dbexpbuf: Buffer ESM   (addr: 134E00D0, size: 4194304, end: 138E00D0)
    B  dbexpbuf: Buffer CUA   (addr: 138F00D0, size: 3072000, end: 13BDE0D0)
    B  dbexpbuf: Buffer OTR   (addr: 13BE00D0, size: 4194304, end: 13FE00D0)
    M  rdisp/reinitialize_code_page -> 0
    M  icm/accept_remote_trace_level -> 0
    M  rdisp/no_hooks_for_sqlbreak -> 0
    M  CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.

    S Wed Aug 31 15:46:15 2011
    S  *** init spool environment
    S  initialize debug system
    T  Stack direction is downwards.
    T  debug control: prepare exclude for printer trace
    T  new memory block 1946AA80

    S Wed Aug 31 15:46:16 2011
    S  spool kernel/ddic check: Ok
    S  using table TSP02FX for frontend printing
    S  1 spool work process(es) found
    S  frontend print via spool service enabled
    S  printer list size is 150
    S  printer type list size is 50
    S  queue size (profile)   = 300
    S  hostspool list size = 3000
    S  option list size is 30
    S      found processing queue enabled
    S  found spool memory service RSPO-RCLOCKS at 1D6D00A8
    S  doing lock recovery
    S  setting server cache root
    S  found spool memory service RSPO-SERVERCACHE at 1D6D0430
    S    using messages for server info
    S  size of spec char cache entry: 297028 bytes (timeout 100 sec)
    S  size of open spool request entry: 2132 bytes
    S  immediate print option for implicitely closed spool requests is disabled

    A Wed Aug 31 15:46:18 2011

    A  -PXA--
    A  PXA INITIALIZATION
    A  PXA: Fragment Size too small: 73 MB, reducing # of fragments
    A  System page size: 4kb, total admin_size: 5132kb, dir_size: 5076kb.
    A  Attached to PXA (address 688A0040, size 150000K)
    A  abap/pxa = shared protect gen_remote
    A  PXA INITIALIZATION FINISHED
    A  -PXA--


    A Wed Aug 31 15:46:20 2011
    A  ABAP ShmAdm attached (addr=57A40000 leng=20955136 end=58E3C000)
    A  >> Shm MMADM area (addr=57EB5E58 leng=126176 end=57ED4B38)
    A  >> Shm MMDAT area (addr=57ED5000 leng=16150528 end=58E3C000)
    A  RFC Destination> destination crmsys_CUS_04 host crmsys system CUS systnr 4 (crmsys_CUS_04)

    A Wed Aug 31 15:46:21 2011
    A  RFC Options> H=crmsys,S=04,d=2,
    A  RFC FRFC> fallback activ but this is not a central instance.
    A   
    A  RFC rfc/signon_error_log = -1
    A  RFC rfc/dump_connection_info = 0
    A  RFC rfc/dump_client_info = 0
    A  RFC rfc/cp_convert/ignore_error = 1
    A  RFC rfc/cp_convert/conversion_char = 23
    A  RFC rfc/wan_compress/threshold = 251
    A  RFC rfc/recorder_pcs not set, use defaule value: 2
    A  RFC rfc/delta_trc_level not set, use default value: 0
    A  RFC rfc/no_uuid_check not set, use default value: 0
    A  RFC rfc/bc_ignore_thcmaccp_retcode not set, use default value: 0
    A  RFC Method> initialize RemObjDriver for ABAP Objects
    M  ThrCreateShObjects          allocated 13730 bytes at 0FFB0040

    N Wed Aug 31 15:46:22 2011
    N  SsfSapSecin: putenv(SECUDIR=D:\usr\sap\CUS\DVEBMGS04\sec): ok

    N  =================================================
    N  === SSF INITIALIZATION:
    N  ===...SSF Security Toolkit name SAPSECULIB .
    N  ===...SSF trace level is 0 .
    N  ===...SSF library is D:\usr\sap\CUS\DVEBMGS04\exe\sapsecu.dll .
    N  ===...SSF hash algorithm is SHA1 .
    N  ===...SSF symmetric encryption algorithm is DES-CBC .
    N  ===...sucessfully completed.
    N  =================================================

    N Wed Aug 31 15:46:23 2011
    N  MskiInitLogonTicketCacheHandle: Logon Ticket cache pointer retrieved from shared memory.
    N  MskiInitLogonTicketCacheHandle: Workprocess runs with Logon Ticket cache.
    M  JrfcVmcRegisterNativesDriver o.k.
    W  =================================================
    W  === ipl_Init() called
    B    dbtran INFO (init_connection '<DEFAULT>' [ORACLE:700.08]):
    B     max_blocking_factor =  15,  max_in_blocking_factor      =   5,
    B     min_blocking_factor =  10,  min_in_blocking_factor      =   5,
    B     prefer_union_all    =   0,  prefer_join                 =   0,
    B     prefer_fix_blocking =   0,  prefer_in_itab_opt          =   1,
    B     convert AVG         =   0,  alias table FUPD            =   0,
    B     escape_as_literal   =   1,  opt GE LE to BETWEEN        =   0,
    B     select *            =0x0f,  character encoding          = STD / <none>:-,
    B     use_hints           = abap->1, dbif->0x1, upto->2147483647, rule_in->0,
    B                           rule_fae->0, concat_fae->0, concat_fae_or->0

    W Wed Aug 31 15:46:24 2011
    W    ITS Plugin: Path dw_gui
    W    ITS Plugin: Description ITS Plugin - ITS rendering DLL
    W    ITS Plugin: sizeof(SAP_UC) 2
    W    ITS Plugin: Release: 700, [7000.0.52.20050900]
    W    ITS Plugin: Int.version, [32]
    W    ITS Plugin: Feature set: [10]
    W    ===... Calling itsp_Init in external dll ===>
    W  === ipl_Init() returns 0, ITSPE_OK: OK
    W  =================================================
    E  Enqueue Info: rdisp/wp_no_enq=1, rdisp/enqname=<empty>, assume crmsys_CUS_04
    E  Replication is disabled
    E  EnqCcInitialize: local lock table initialization o.k.
    E  EnqId_SuppressIpc: local EnqId initialization o.k.
    E  EnqCcInitialize: local enqueue client init o.k.

    B Wed Aug 31 15:46:48 2011
    B  table logging switched off for all clients

    M Wed Aug 31 15:47:55 2011
    M  SecAudit(RsauShmInit): WP attached to existing shared memory.
    M  SecAudit(RsauShmInit): addr of SCSA........... = 05BD0040
    M  SecAudit(RsauShmInit): addr of RSAUSHM........ = 05BD07A8
    M  SecAudit(RsauShmInit): addr of RSAUSLOTINFO... = 05BD07E0
    M  SecAudit(RsauShmInit): addr of RSAUSLOTS...... = 05BD07EC

    A Wed Aug 31 15:48:44 2011
    A  RFC FRFC> fallback on the central gateway crmsys sapgw04 activ

    B Wed Aug 31 15:49:47 2011
    B  dbmyclu : info : my major identification is 3232288873, minor one 4.
    B  dbmyclu : info : Time Reference is 1.12.2001 00:00:00h GMT.
    B  dbmyclu : info : my initial uuid is D98FA690E8AA314D9B69930868792664.
    B  dbmyclu : info : current optimistic cluster level: 0
    B  dbmyclu : info : pessimistic reads set to 2.

  • JNI - core dump - internal error on linux after calling Java method

    I'm getting a core dump after calling athe main statric method using JNNI.
    On linux.
    I can get the class id correcttly but when I attempt to call the method it craches with an internal error , anyone know why it would crash instead of just not work.
    if(cls)
        main_methodID = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
           printf("Class Found Successfully\n");
      else
        printf ( "cls not found\n");
        return 0;
      if(main_methodID)
              jstring first_str = env->NewStringUTF("The First String");//create string
              jobjectArray args = (jobjectArray)env->NewObjectArray(1,env->FindClass("java/lang/String"), first_str);//new array with 2 elements
                   env->SetObjectArrayElement(args, 2, first_str);//insert the second string into index 1 of the array
              jstring second_str = env->NewStringUTF("The Second String");//create string
              env->SetObjectArrayElement(args, 1, second_str);//insert the second string into index 1 of the array
         env->CallStaticVoidMethod(cls, main_methodID, args);//pass the array to the Java main method
                                  The JAVA method is
      public static void main(String[] args) {
        System.out.println("Main method in Framework");
            Framework framework = new Framework();
                                 

    I see yere points but what I see on linux is it makes it to the constructor of the Java object and somewhere afterwards it bails out, the Java app does work alone. It appears to have problems initializing the JFrame, could there be a problem with the Java inheritance when a JVM is invoked throurgh native invocation??
    Here's some of the Java stuff
    public class Framework extends WindowAdapter {
        public int numWindows = 0;
        private Point lastLocation = null;
        private int maxX = 500;
        private int maxY = 500;
        public Framework() {
            System.out.println("JAVA Framework cnst");//GETTING HERE
            makeNewWindow();
        public void makeNewWindow() {
            System.out.println("JAVA makeWindow"); //GETTING HERE
            JFrame frame = new MyFrame(this); //NOT GETTING HERE!!!!!!!!!
            numWindows++;
            System.out.println("Number of windows: " + numWindows);
            System.out.println("Frame location: " + lastLocation);
            frame.setVisible(true);
            System.out.println("Post Java set frame visible");
        public static void main(String[] args) {
        System.out.println("Main method in Framework");
            Framework framework = new Framework();//GETTING HERE
    class MyFrame extends JFrame {
        protected Dimension defaultSize = new Dimension(200, 200);
        protected Framework framework = null;
        public MyFrame(Framework controller) {
            super("New Frame");
            System.out.println("MyFrame cnst ");//NOT GETTING HERE!!!!!!
            framework = controller;
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
            addWindowListener(framework);
            JMenu menu = new JMenu("Window");
            menu.setMnemonic(KeyEvent.VK_W);
           setSize(defaultSize);
    }

  • Runtime error Calling Java Methods from C++

    I'm trying to add Java methods to an existing C++ program.
    I'm working in W2000 enviroment using Cygnus GCC compiler.
    Before adding these methods, I tested invoke example from Jni tutorial.
    All worked properly. But the problems arouse when I tried to run non-static methods.
    Here is the code I'm testing now:
    #include <stdio.h>
    #include <jni.h>
    #define PATH_SEPARATOR ';'
    #define USER_CLASSPATH "." /* where Prog.class is */
    int main(int argc, char *argv[]) {
    JNIEnv *env;
    JavaVM *jvm;
    JDK1_1InitArgs vm_args;
    jint res;
    jclass cls;
    jmethodID mid;
    jobject jobj;
    char classpath[1024];
    vm_args.version = 0x00010001;
    JNI_GetDefaultJavaVMInitArgs(&vm_args);
    sprintf(classpath, "%s%c%s",
    vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
    vm_args.classpath = classpath;
    res = JNI_CreateJavaVM(&jvm,(void **)&env,&vm_args);
    if (res < 0) {
    fprintf(stderr, "Can't create Java VM\n");
    exit(1);
    cls = env->FindClass("Prog");
    if (cls == 0) {
    fprintf(stderr, "Can't find consola class\n");
    exit(1);
    mid = env->GetStaticMethodID(cls, "Entrada", "()V");
    if (mid == 0) {
    fprintf(stderr, "Can't find consola.consola\n");
    exit(1);
    env->CallStaticVoidMethod(cls, mid);
    /*     jobj = env->NewObject(cls, mid);
    if (jobj == 0) {
    fprintf(stderr, "Can't find Prog.main\n");
    exit(4);
    jvm->DestroyJavaVM();
    And the java code Prog.java:
    public class Prog {
    public static void Entrada() {
    Consola Cons = new Consola();
    And Consola a user class tha shows a Java window and let's do something more.
    These code works fine and The Prog and Consola classes run properly.
    But when I try to change Entrada method to non-static, following error appears in a window.
    Microsoft Visual C++ Runtime library
    Runtime Error !
    Program: D:\javaini\JNI-INVOKE\invoke.exe
    abnormal program termination
    If I try
    jobj = env->NewObject(cls, mid);
    if (jobj == 0) {
    fprintf(stderr, "Can't find Prog.main\n");
    exit(4);
    instead of
    env->CallVoidMethod(cls, mid);
    I get the same error.
    Could anybody help me ?
    Am I doing anything wrong ?
    Thanks in advance. Ignasi Villagrasa.

    I found it.
    In JNI examples I saw
    mid = env->GetMethodID(cls, "<init>", "()V");
    to run constructor.
    And then NewObject function.
    So it's solved.
    But I find another problem now.
    If the class I'm calling is a graphic java class (In this case from swing), when the window is closed the application in C++ stops too.
    Should I create another thread to manage the window ?
    Couldn't I follow running lines after NewObject method ?
    Thanks in advance, Ignasi Villagrasa.

  • How use XSD and Java? What classes/methods?

    I want to use an XSD instead of a DTD with my XML and Java. Does anyone know the classes/methods I should use to do this? Is it even possible? Can you send sample code?

    here is the helper function... hope it helps...
    import java.io.IOException;
    import java.math.*;
    import java.text.*;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    public class SAXParserDemo
         public SAXParserDemo()
         public void performDemo(String uri)
              System.out.println("Parsing XML file: " + uri + "\n\n");
              ContentHandler contentHandler = new MyContentHandler();
              ErrorHandler errorHandler = new MyErrorHandler();
              try
                   XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
                   parser.setContentHandler(contentHandler);
                   parser.setErrorHandler(errorHandler);
                   parser.setFeature("http://xml.org/sax/features/validation", true);
                   parser.parse(uri);
              catch(IOException e)
                   System.out.println("Error reading URI: " + e);
              catch(SAXException e)
                   System.out.println("Error in parsing: " + e);
         public static void main(String[] args)
              if(args.length != 1)
                   System.out.println("Usage: java SAXParserDemo [XML URI]");
                   System.exit(0);
              String uri = args[0];
              SAXParserDemo parserDemo = new SAXParserDemo();
              parserDemo.performDemo(uri);
    class MyErrorHandler implements ErrorHandler
         public void warning(SAXParseException exception) throws SAXException
              throw new SAXException("Warning encountered."+exception);
         public void error(SAXParseException exception) throws SAXException
              throw new SAXException("Error encountered: "+exception);
         public void fatalError(SAXParseException exception) throws SAXException
              throw new SAXException("Fatal error encountered."+exception);
    class MyContentHandler implements ContentHandler
         private Locator locator;
         public void setDocumentLocator(Locator locator)
              //System.out.println("     * setDocumentLocator() called");
              this.locator = locator;
         public void startDocument() throws SAXException
              //System.out.println("System Message: Parsing begins...");
         public void endDocument() throws SAXException
              //System.out.println("System Message: ...Parsing ends.");
         public void processingInstruction(String target, String data) throws SAXException
              //System.out.println("System Message: PI: Target: "+target+" and Data: "+data);
         public void startPrefixMapping(String prefix, String uri)
              //System.out.println("System Message: Mapping starts on prefix "+prefix+" mapped to URI "+uri);
         public void endPrefixMapping(String prefix)
              //System.out.println("System Message: Mapping ends on prefix "+prefix);
         public void startElement(String namespaceURI, String localName, String rawName, Attributes atts) throws SAXException
              //System.out.println("System Message: startElement: "+localName);
              if(!namespaceURI.equals(""))
                   //System.out.println("System Message: in namespace "+namespaceURI+" ("+rawName+")");
              else
                   //System.out.println("System Message: has no associated namespace");
              int i;
              for(i=0;i<atts.getLength();i++)
                   //System.out.println("System Message: Attribute: "+atts.getLocalName(i)+"="+atts.getValue(i));
         public void endElement(String namespaceURI, String localName, String rawName) throws SAXException
              //System.out.println("System Message: endElement: "+localName+"\n");
         public void characters(char[] ch, int start, int length) throws SAXException
              String s = new String(ch, start, length);
              //System.out.println("System Message: characters: "+s);
         public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
              String s = new String(ch, start, length);
              //System.out.println("System Message: ignorableWhitespace: ["+s+"]");
         public void skippedEntity(String name) throws SAXException
              //System.out.println("System Message: Skipping entity: "+name);
    }

  • Report Script returns no data and "java.io.FileNotFoundException" error

    When attempting to write to a new file (Eg: C:\TEST.txt), Report Script returns no data and "java.io.FileNotFoundException" error occurs.
    This error occurs only in Essbase 9.3.1.3 release, however it works fine in release 9.3.1.0.
    After running the report the script, it pops up the follwing message:
    "java.io.FileNotFoundException: ..\temp\eas17109.tmp (The system cannot find the file specified): C:\TEST.txt"
    When checked the TEST.txt, it was empty.

    Sorry folks, I just found out the reason. Its because there was no data in the combination what I was extracting.
    but is this the right error message for that? It should have atleast create a blank file right?

Maybe you are looking for

  • OIM 9.1.0 behaves weird during installation

    Hi All, I am trying to install OIM 9.1.0.1 on the following configuration: OS: Windows 2003 server SP2 jdk: Sun jdk1.5.0_12 App Server: jboss 4.2.3.GA database: Oracle 10g I have successfully installed java, and database and run the prepare_xl_db.bat

  • Video file size in Zen Moz

    I recently bought a Zen Mozaic and I've stored some avi movies in it. As avi videos can take many disc space ( up to 700 MB) I tried to shrink the video size (by lowering the resolution). Although in my computer, these files have shrunken in size, wh

  • Clipping paths in photoshop .... imported to indesing

    I have a catalog I am doing. I have not wokred with clipping paths in years. I am clueless on what is going on here. Can someone look at this photoshop image and tell me how to import it into indesign without the black background? THe photographer sa

  • Can I use locked Iphone4 ATT in other countries?

    I've not unlocked my iphone4, can I use it in western European countries?? Thank you!

  • [Solved] Deluge Not Working After Update. Some glib error.

    Here's my error: http://pastebin.com/m1ca1471c What should I do? Last edited by Loafers (2009-12-14 06:51:30)