IDOC ISSUE-10/10 POINTS ASSIGNED

Hi all
I m facing problem to upload data through idoc.the scenario is like we receive electric meter reading in flat file format. And to upload that data JAVA code is written which will create an IDOC FILE this authorization is only give to 2-3 person in organization and to basis guy also as user changed it’s password in SAP and in JAVA the java code is not going to create the IDOC file and data is not going to upload. after changing user password in sap system ,user not able to upload the data.
ISU_MR_UPLOAD01 is the idoc file generated. So is there any authorization issue, password issue how to see and view IDOC IN SAP, can any one help me out into this.
The error with java throws is as;
1ST ERROR IN TRACE FILE
ERROR file opened at 20061109 133610 India Standard, SAP-REL 640,0,59 RFC-VER 3  MT-SL
T:2736 ======> User TR has no RFC authorization for function group SYST .
T:2736 <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
2ND ERROR ON COMMAND PROMT
C:\j2sdk1.4.2_07>cd bin
C:\j2sdk1.4.2_07\bin>java sandsupload
Creating IDoc...Exception in thread "main" com.sap.mw.idoc.IDoc$Exception: (2) I
DOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type "ISU_MR_UPLOAD01
" is unavailable.
        at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.<init>(JCoIDoc.java:233)
        at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.<init>(JCoIDoc.java:187)
        at com.sap.mw.idoc.jco.JCoIDoc.createDocument(JCoIDoc.java:10521)
        at sandsupload.main(sandsupload.java:35)
the part of java code
try {
            //create a JCo client pool
            JCO.addClientPool( "MyPool",    //pool name
                               3,           //maximum pool connections
                               "333",       //SAP client
                               " TR",    //user ID
                               " XYZ",  //password
                               "EN",        //language
                               " 1.1.1.1   ", //app server host name
                               "00" );   //system number
            //create an IDoc repository
            IDoc.Repository idocRep = JCoIDoc.createRepository("MyIDocRepository", "MyPool");
            //create a new and empty MATMAS02 document
            System.out.print("Creating IDoc...");
     Line where it shows error
            IDoc.Document doc = JCoIDoc.createDocument(idocRep, "ISU_MR_UPLOAD01");
            //get the root segment from the document
            //The root segment does not contain any fields or data. It is only
            //used as the standard parent segment and won't be transmitted when
            //the document is sent to an SAP system.
            IDoc.Segment segment = doc.getRootSegment();
            //create and add a new and empty child segment of type E1MARAM
            //and fill the segment data

Hello,
If the IDoc is creaetd in systen with error or with anty status,you can view it via we02 transaction.
But if it's autorisation issue,i guess IDoc will not get created.
Thanks.

Similar Messages

  • Idoc trigerring with change pointer under conditions

    Hello dear experts
    Could you please tell me how can i trigger an outbound idoc using the change pointer ( RBDMIDOC program)?
    I have to generate the ARTMAS outbound idoc ONLY when the material status which is the table MARA is set to a certain value.
    I can manage to trigger the outbound idoc but i did not manage to restrict this triggering according to the value of the material status fields.
    Thanks for all your answers.
    Best Regards.
    Yannick

    I tested using filter on Dist Wh and change pointers - for us, Dist Wh filter for material set on plant.  When we made change to matierial, only if change to plant was made, so plant was included in idoc segment, did the filter work.  If change material description, plant not on idoc segment so was sent .  Looking for alternative...

  • Delete Shipping point assignment with plant

    In my current system there are a lot of shipping points assigned to Plants. It is taking a lot of time to delete them. Is there any easier way to delete all these assigments in bulk? Please let me know if there is any report that I can run inorder to delete them.
    Thank you,
    Ravi

    GO TO SPRO -> Enterprises structure -> Assignment -> Logestic Execution -> assign shipping point to site then search for plant and delet the shipping point which you don't want to keep,
    and
    SPRO -> Logestic Execution -> SHIPPING -> assign shipping point and delet the shiping points from shipping point determination
    Regards,

  • IDOC was struck due to assignment to a profitability segment

    Hi all,
    Idoc was struck with 51 error for an intercompany billing as follows
    IDOC was struck due to" assignment to a profitability segment has no effect for account 500000".
    What may be the route cause for this .

    Hello,
    I suppose you have account-based CO-PA active.  Then goto OKB9.
    Regards
    Waza

  • Can you get a power point program for the mac, my daughter has a power point assignment and i am not sure how to do it on the mac

    Can you get a power point program for the mac, my daughter has a power point assignment and i am not sure how to do it on the mac

    You can use a free alternative like openoffice for this:
    http://www.openoffice.org/porting/mac/
    or libre office which is a fork of open office:
    http://www.libreoffice.org/

  • Issue with OSPF Point-to-Multipoint over CES Cloud

    I'm having an issue running ospf point-to-multipoint over a CES cloud.  The reason I want to do this is that not every site has the same bandwidth and this way I can use neighbor statements to specify the cost to each neighbor.
    To make this work I have to shut down the cloud facing interface on each node and bring them up one at a time.  Everything runs fine until I then shut one of them down and bring it up again, I'm only able to form adjanceis with 2-3 nodes - the other nodes get stuck in either INIT or EXSTART until OSPF give up do to too many retires.  If I then repeat the process of shutting down the interface on each node and bringing them back up it works again.
    I've tried both " ip ospf network point-to-multipoint" and " ip ospf network point-to-multipoint non-broadcast" with the same results.
    Here are the router types involved and the firmware they are running:
    1. asr1006 asr1000rp1-adventerprisek9.03.10.00.S.153-3.S-ext.bin
    2. asr1006 asr1000rp1-adventerprisek9.03.10.00.S.153-3.S-ext.bin
    3. 2821 c2800nm-ipbasek9-mz.151-3.T4.bin
    4. 2821 c2800nm-ipbasek9-mz.151-3.T4.bin
    5. 2921 c2900-universalk9-mz.SPA.150-1.M1.bin (ipbasek9 license)
    6. 2921  c2900-universalk9-mz.SPA.153-2.T.bin (ipbasek9 license)
    7. 2821 c2800nm-ipbasek9-mz.151-3.T4.bin
    Here is the relevant config from one of the routers:
    interface GigabitEthernet1/0/6
     description CES
     bandwidth 50000
     ip address 10.226.126.30 255.255.255.224
     no ip redirects
     ip flow ingress
     ip flow egress
     ip ospf authentication message-digest
     ip ospf message-digest-key 1 md5 blahblahblah
     ip ospf network point-to-multipoint non-broadcast
     ip ospf dead-interval 3
     ip ospf hello-interval 1
     load-interval 30
    router ospf 1
    router-id 10.226.1.9
    ispf
    auto-cost reference-bandwidth 10000
    timers throttle spf 10 100 5000
    timers throttle lsa 10 100 5000
    timers lsa arrival 80
    passive-interface default  
    no passive-interface GigabitEthernet1/0/6
    network 10.226.126.0 0.0.0.31 area 0
    neighbor 10.226.126.6 cost 1000
    neighbor 10.226.126.5 cost 3333
    neighbor 10.226.126.4 cost 3333
    neighbor 10.226.126.3 cost 3333
    neighbor 10.226.126.2 cost 3333
    neighbor 10.226.126.1 cost 200
    All the routers have at least one other interface running OSPF point-topoint with no issues.  The ASRs also have some stub areas in addition to area 0.  I've tried taking the ASRs out of the loop and testing, but the results are the same.
    Please let me know if you have any ideas or need more details.
    Thanks.

    Hi Peter,
    believe me: I was perplexed as well and it took me some time to understand what was going on.
    I've created a simple gns3 lab (topology attached) with handy IP- and MAC addresses:
    R1: 192.168.0.1; 02:00:00:00:11:11
    R3: 192.168.0.3; 02:00:00:00:33:33
    R4: 192.168.0.4; 02:00:00:00:44:44
    The host routes for the point-to-multipoint interfaces play an important role:
    R3#show ip route 192.168.0.0
    C 192.168.0.0/24 is directly connected, FastEthernet1/0
    O 192.168.0.1/32 [110/1] via 192.168.0.1, 00:02:44, FastEthernet1/0
    O 192.168.0.4/32 [110/64] via 172.16.34.4, 00:02:44, Serial0/1
    Now, with a debug arp enabled on R1 we can see what happens when we shutdown and re-enable Fa1/0.
    R1(config-if)#do show ip int brief f1/0
    Interface IP-Address OK? Method Status Protocol
    FastEthernet1/0 192.168.0.1 YES NVRAM administratively down down
    R1(config-if)#do show ip arp
    <no output>
    R1(config-if)#no shut
    IP ARP: sent rep src 192.168.0.1 0200.0000.1111,
    dst 192.168.0.1 ffff.ffff.ffff FastEthernet1/0
    IP ARP: sent rep src 192.168.0.1 0200.0000.1111,
    dst 192.168.0.1 ffff.ffff.ffff FastEthernet1/0
    IP ARP: creating incomplete entry for IP address: 192.168.0.4 interface FastEthernet1/0
    IP ARP: sent req src 192.168.0.1 0200.0000.1111,
    dst 192.168.0.4 0000.0000.0000 FastEthernet1/0
    IP ARP: creating incomplete entry for IP address: 192.168.0.3 interface FastEthernet1/0
    IP ARP: sent req src 192.168.0.1 0200.0000.1111,
    dst 192.168.0.3 0000.0000.0000 FastEthernet1/0
    IP ARP: rcvd rep src 192.168.0.4 0200.0000.4444, dst 192.168.0.1 FastEthernet1/0
    IP ARP: rcvd rep src 192.168.0.3 0200.0000.4444, dst 192.168.0.1 FastEthernet1/0
    IP ARP: rcvd rep src 192.168.0.4 0200.0000.3333, dst 192.168.0.1 FastEthernet1/0
    IP ARP: rcvd rep src 192.168.0.3 0200.0000.3333, dst 192.168.0.1 FastEthernet1/0
    R1(config-if)#do show ip arp
    Protocol Address Age (min) Hardware Addr Type Interface
    Internet 192.168.0.1 - 0200.0000.1111 ARPA FastEthernet1/0
    Internet 192.168.0.3 0 0200.0000.3333 ARPA FastEthernet1/0
    Internet 192.168.0.4 0 0200.0000.3333 ARPA FastEthernet1/0
    R1(config-if)#do show ip ospf neighbor
    Neighbor ID Pri State Dead Time Address Interface
    4.4.4.4 0 INIT/ - 00:00:16 192.168.0.4 FastEthernet1/0
    3.3.3.3 0 FULL/ - 00:00:16 192.168.0.3 FastEthernet1/0
    OSPF: Rcv hello from 4.4.4.4 area 0 from FastEthernet1/0 192.168.0.4
    OSPF: Send immediate hello to nbr 4.4.4.4, src address 192.168.0.4, on FastEthernet1/0
    OSPF: Send hello to 192.168.0.4 area 0 on FastEthernet1/0 from 192.168.0.1
    OSPF: End of hello processing
    Because of the hostroute to R4, R3's proxy ARP answeres an ARP request for R4 (the same happens on R4)! At this point we have IP connectivity to R4 (via R3) but this doesn't work for OSPF's link local traffic.
    So just for the fun of it, we could configure a static ARP entry to verify if that will fix the problem:
    R1(config)#arp 192.168.0.4 0200.0000.4444 arpa
    %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on FastEthernet1/0 from LOADING to FULL, Loading Done
    R1(config)#no arp 192.168.0.4 0200.0000.4444 arpa
    IP ARP: creating incomplete entry for IP address: 192.168.0.4 interface FastEthernet1/0
    IP ARP: sent req src 192.168.0.1 0200.0000.1111,
    dst 192.168.0.4 0000.0000.0000 FastEthernet1/0
    IP ARP: rcvd rep src 192.168.0.4 0200.0000.4444, dst 192.168.0.1 FastEthernet1/0
    IP ARP: rcvd rep src 192.168.0.4 0200.0000.3333, dst 192.168.0.1 FastEthernet1/0
    Or we could avoid that R3 installs an OSPF hostroute to 192.168.0.4.
    R3(config)#ip prefix-list NO-HOSTROUTES deny 192.168.0.0/24 ge 32
    R3(config)#ip prefix-list NO-HOSTROUTES permit 0.0.0.0/0 le 32
    R3(config)#router ospf 1
    R3(config-router)#distribute-list prefix NO-HOSTROUTES in
    R3(config-router)#do show ip route 192.168.0.4
    Routing entry for 192.168.0.0/24
    Known via "connected", distance 0, metric 0 (connected, via interface)
    R1(config)#do clear ip arp 192.168.0.4
    IP ARP: sent req src 192.168.0.1 0200.0000.1111,
    dst 192.168.0.4 0200.0000.3333 FastEthernet1/0
    IP ARP: creating incomplete entry for IP address: 192.168.0.4 interface FastEthernet1/0
    IP ARP: sent req src 192.168.0.1 0200.0000.1111,
    dst 192.168.0.4 0000.0000.0000 FastEthernet1/0
    IP ARP: rcvd rep src 192.168.0.4 0200.0000.4444, dst 192.168.0.1 FastEthernet1/0
    %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on FastEthernet1/0 from LOADING to FULL, Loading Done
    An interesting detail is the destination MAC address in the first request. Seems like the MAC address of the former ARP entry was still cached somewhere.
    The adequate solution to solve the problem is of course disabling proxy-ARP.
    I was quite surprised to see that that the protocol logic obviously ignores the fact of being in the same subnet but rather simply check if there is another entry for the requested host in the routing table.
    The sanity checks section of RFC 1027 says
    "An ARP subnet gateway implementation must not reply if the physical networks of the source and target of an ARP request are the same."
    and it seems to me that IOS has not implemented this check. I'm looking forward to hear your opinion!
    Thanks for joining,
    best regards
    Rolf

  • IDOC ISSUE full point assigned

    Hi all
    I m facing problem to upload data through idoc.the scenario is like we receive electric meter reading in flat file format. And to upload that data JAVA code is written which will create an IDOC FILE this authorization is only give to 2-3 person in organization and to basis guy also as user changed it’s password in SAP and in JAVA the java code is not going to create the IDOC file and data is not going to upload. after changing user password in sap system ,user not able to upload the data.
    ISU_MR_UPLOAD01 is the idoc file generated. So is there any authorization issue, password issue how to see and view IDOC IN SAP, can any one help me out into this.
    The error with java throws is as;
    1ST ERROR IN TRACE FILE
    ERROR file opened at 20061109 133610 India Standard, SAP-REL 640,0,59 RFC-VER 3  MT-SL
    T:2736 ======> User TR has no RFC authorization for function group SYST .
    T:2736 <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
    2ND ERROR ON COMMAND PROMT
    C:\j2sdk1.4.2_07>cd bin
    C:\j2sdk1.4.2_07\bin>java sandsupload
    Creating IDoc...Exception in thread "main" com.sap.mw.idoc.IDoc$Exception: (2) I
    DOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type "ISU_MR_UPLOAD01
    " is unavailable.
            at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.<init>(JCoIDoc.java:233)
            at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.<init>(JCoIDoc.java:187)
            at com.sap.mw.idoc.jco.JCoIDoc.createDocument(JCoIDoc.java:10521)
            at sandsupload.main(sandsupload.java:35)
    the part of java code
    try {
                //create a JCo client pool
                JCO.addClientPool( "MyPool",    //pool name
                                   3,           //maximum pool connections
                                   "333",       //SAP client
                                   " TR",    //user ID
                                   " XYZ",  //password
                                   "EN",        //language
                                   " 1.1.1.1   ", //app server host name
                                   "00" );   //system number
                //create an IDoc repository
                IDoc.Repository idocRep = JCoIDoc.createRepository("MyIDocRepository", "MyPool");
                //create a new and empty MATMAS02 document
                System.out.print("Creating IDoc...");
         Line where it shows error
                IDoc.Document doc = JCoIDoc.createDocument(idocRep, "ISU_MR_UPLOAD01");
                //get the root segment from the document
                //The root segment does not contain any fields or data. It is only
                //used as the standard parent segment and won't be transmitted when
                //the document is sent to an SAP system.
                IDoc.Segment segment = doc.getRootSegment();
                //create and add a new and empty child segment of type E1MARAM
                //and fill the segment data

    Seems like the error is because the user passed through the JCO call does not have the necessary authorizations...in SAP. Trace the authorizations for that user and grant what is needed... in particular the functions about the IDOC setup and structure used by the repository...
    Enjoy

  • CUA sync with child client issue for indirect role assignment.

    Hello Security experts,
    we have a indirect role assignment set up in our ECC environment. there is a syncronization issue from the parent CUA to the chlild client. The role assignments have been made to role although they are not always reaching target system without having to sync up either the role or the IDu2019s position # manually.   This has been an ongoing issue CUA has on any role or user from time to time.   any hint on fixing this issue. please help..

    Whole idea of CUA is to manage your roles and users centrally, on the contrary you can manage the roles/profiles by setting up the attributes for the CUA thorugh Central user Management console - SCUM Transaction.
    CUA has its own pros -
    Central rep,Users Sync,Role Provisioning statergy - Global composites(consists of individual child roles) Distibuted model -Provisioing at individual child systems for roles, etc.Central user store,easy maintenance.
    on the contrary - change documents is always a concern ( because cua uses - interface Ids or the RFC ids to push the idocs from cua to child system), CUA maintenance while system refresh - Copied distribution models have to be deleted and re-created, system backups has to be defined per you distribution model, password maintenance if defined global then Child systems act as inactive nodes, reading the roles into cua which are created in childs so as to establish a pointer to that system.
    It also depends on the number of systems you have in your landscape so that you can calculate the overhead and then have a Go -no-Go decison on CUA.
    Overall, I consider CUA as a good approach provided we streamline the process of provisioning, de-provisioning per the cua standards.
    Rakesh

  • IDOCs issue

    Hello,
       When we load data from R3, everything looks good. But when we load data from flat files, the IDOCS get stuck with status 64. We need to manually execute these IDOC's and after which load goes geen. But it happens all the times when we load flat file data and only in development box. Can you please guide me on how to fix this issue!
    Thanks.

    I got your question . Please find the suggestion as per my understanding .
    In case of R/3 background jobs are there which process the IDOCS which are there .
    But in case of flatfiles it was missing . So better ask the Basis team or the team which looks for the
    scheduling of the jobs .
    So may be you can ask the Basis team or ABAP team who can develop a BDC in a program which will be scheduling by jobs and can pull the data .
    Assign marks is the best way to appreciate help

  • Idoc issues - value changes

    I have an issue where we recieve a field in an IDOC -
    <E1PLOGI SEGMENT="1">
    <E1PITYP SEGMENT="1">
      <E1P1001 SEGMENT="1">
        <SOBID>UK76610 XE10FINANCE</SOBID>
    But from another system it appears as
    <E1PLOGI SEGMENT="1">
    <E1PITYP SEGMENT="1">
      <E1P1001 SEGMENT="1">
        <SOBID>UK76610   XE10FINANCE</SOBID>
    As you can see there are to additional spaces in the second example.
    I am using a rather complex mapping sequence to chop the data up (substring without length), lookup values, add a number mask then concatanate a value on the end.  Can you use the substring from a space within a field, instead of a fixed point?
    It works perfectly in Development but in test the fewer spaces cause a problem with the mapping.

    > Barry,
    >
    > Then what you have to do is to write a UDF. It will
    > check the space and take the substring starting from
    > the space to the end. Is this what you are looking
    > for?
    >
    > ---Satish
    That is it! 
    I have a udf I've written already, but that was for a fixed point and not a space. 
    int i = Integer.parseInt(a);
    String c = b.substring(10,i);
    return c;
    I will change this then?

  • T40 Wireless Issue - No IP Address Assigned

    I am using a T40 in wireless mode and am unable to get automatic assignment of the IP address. Connection to the wireless access point is confirmed but there is no internet connectivity because the IP address assignment is not being completed. The wireless network is working because I have a second laptop which attaches with no issues. This laptop was working but my son was visiting over the holidays and he could not get his laptop to linkup. To make a long story short some wireless setup adjustments were made to my unit to try to determine the problem with his. I don't know what they were. Now neither laptop works. I am confident this is a setup issue but I can't seem to find the setup adjustment that needs to be made.  Does anyone have some ideas where I can start?

    Hi Dsnyder5516,
    Welcome to the forum!
    I suggest using System Restore in Windows to the point where your wireless was working fine.
    I hope it helps.
    Maliha (I don't work for lenovo)
    ThinkPads:- T400[Win 7], T60[Win 7], IBM 240[Win XP]
    IdeaPad: U350
    Apple:- Macbook Air [Snow Leopard]
    Did someone help you today? Compliment them with a Kudos!
    Was your question answered today? Mark it as an Accepted Solution! 
      Lenovo Deutsche Community     Lenovo Comunidad en Español 
    Visit my YouTube Channel

  • ALE-IDocs: Issue on COGRP1 & COGRP6 Message Types

    Dear Experts,
    I need to send the Cost center groups data and Profit Center groups data from one system to other, I had sent this for one time using the tcodes, from now on I need to send only the changed data, so configured the ALE for this.
    I activated change pointers generally in BD61 and then activated change pointers for message types in BD50. Cost Center Group (COGRP1), Profit Center Group (COGRP6).
    Why is RBDMIDOC program not showing any output when executed with standard message types COGRP1 and COGRP6 ?
    It is working fine with other message types like MATMAS, DEBMAS, COSMAS, PRCMAS, CREMAS.
    Tcode: BD59: Assignment of Object Type to Message
    Tcode: WE30: Develop IDoc Types
    Tcode: BD52: Change document items for message type
    So, COGRP1 does not have assignment of all the segments that are displayed for the IDoc Type: COGRP01 in WE30. Do we need to assign all these segments and fields to the message type in BD59? If so, how to create this ALE Object Types and what are these table names and fields in BD52., any user exits kind of thing for populating the fields if we do this way?
    I am really having trouble and great confusion with this.
    I would really appreciate you if you could provide me an answer or a hint.
    Thanks in advance for the time you spent on this.
    RV

    Hi,
    You need to follow following steps for the activation of change pointer.
    1) Enable change pointer globally <b>(BD61)</b>
    2) Enable Change Pointers for a Message Type <b>(BD50)</b>
    3) Specify the Fields for Which Change Pointers Are to Be Written <b>(BD52).</b>
    <b>BD59</b> is used to Assign Filter Object Type to IDoc Field. Then you can add filter while creating distribution model.This is used when you have to filter the Idoc at distribution stage. It has nothing to do with the change pointer technique.
    In BD52 , you have to assign the change pointer object(this you can find using <b>T.code SCDO</b>), table name and field.In your case change doc object is <b>ALESETS</b>
    Just make sure that you are making changes in Cost center groups data and Profit Center groups and then execute program RBDMIDOC.
    Regards,
    Monika

  • Customized IDOC Issue

    Hi,
    Upto now we worked on standard IDOC's. so no issues upto now.
    Now we are dealing with the customized idoc's. we have one standard idoc in R/3 200 client an we customized that idoc according to our requirement.
    Now we transfered and released that IDOC from 200 client to 300 client for XI use.
    When we are trying to Import the IDOC into IR we are unable to see that Z IDOC( Customized) in the IDOC list.
    We have provided the SAP R/3  300 client user logon details only.
    What may be the Issue
    Regards
    Suman

    Hi,
    You need to add Mesage Type to the Extended IDoc.
    Add message Type to the Extended IDoc in Transaction WE82.
    Please follow steps in Transaction WEDI to extended the IDoc.
    In WEDI  Transaction --> Go to DEVELOPMENT
    and follow all the below steps:
       IDOC Segemnts   -- WE31
       IDOC Types       -
      WE30
       Message Types  -
    WE81
       IDOCType/Message Types  --- WE82
    For Outbound Processing
        Create Process Code --- WE41
    For Inbound Processing
         Register Function Module  --- BD51
         Assign Function Module,Message Type to IDOC Type -- WE57
      Create Inbound Process Code --- WE42.
      Please follow above mentioned Steps.
    Now IDOC will be available in XI to import.
    Thanks,
    Kishore.

  • Issues with using a assigned package

    I have a task where I've been given pre compiled classes to create a program with. However, I'm having issues using them, and I'm not sure what's going on...
    Theoretically, the following code should work (to test the class for example):
    import question.*;
    public class Quiz {
         final private static int NoOfQuestions = 5;
         public static void main(String[] args) {
              // Create the library
              Question question = new QuestionLibrary();
              // For each question:
              for (int i = 0; i < NoOfQuestions; i++) {
                   // Show where we are
                   System.err.println("Before getQuestion()" + i);
                   // Getf the question
                   String q[] = question.getQuestion();
                   // Show where we are again, and print the first line of the question.
                   System.err.println("After getQuestion()" + i + "\n\n" + q[0] + "\n");
              // It worked
              System.err.println("All good - finishing");
    }The questionLibrary constructor goes and loads some plain text question files and dishes them out in a random order upon calls to getQuestion().
    The javadoc provided shows that getQuestion should return an array of Strings, each line of the question in a different string.
    When the code is compiled and run, the call to getQuestion() throws a null pointer exception, however, on different occasions the call will work as expected. Over many runs of the program, all the questions in the files have been printed out at some point (since they are given randomly), so I know it's not the question files having bad formatting, or one question that breaks the program. The question files total 5 questions, but the run of the program has never passed 3 questions before it fails.
    I know it's probably hard to know exactly what's going on, but is there anything I've forgotten? Or anything I should check?
    Damian

    Damo The Viking,
    I love your nic... though I'm not all sure that there ever were any good ones.
    Is this an exercise in testing? If so, Have you considered that maybe this bug was "injected" explicitly too give you a bug to find? If that's the case it's really not very subtle "bug" is it... every random so many times (I'd guess one in four probability) chuck an error. Even Blind Freddy could find that.
    If you're not sure what's going on I suggest you decompile the provided class files... I've uploaded my old decompiler (it's shareware, pay up after 30 days use) to [DJ_java_decompiler_377.zip|http://groups.google.com/group/comp_lang_java_exchange/web/DJ_java_decompiler_377.zip] [1.7 MB].
    Aside: Please does anyone know of a good "modern" decompiler? Preferably ingrated into Eclipse?... Mine doesn't seem to know about generics, and it's GUI is "a bit poxy".
    If this isn't actually an exercise in testing, then impress the beejazus out of your lecturer by extending the provided class, and overriding the method which has the error.
    If you want more guidance from me I'm going to need to see an SSCCE; the stack trace of the NPE; and of course the jar containing the question package (join my google group and post it up there).
    Cheers. Keith.

  • Regarding Idoc issue

    Hi Folks,
    I have triggered the Idoc from R/3 to XI.
    For the statue 30: I can see the text as:
    Receiver exists , No filters , No conversion , No version change
    Please let me know the meaning of this.
    can we use any code page conversion parameter in ALE to convert the data.
    Issue is like:
    In the Idoc I am getting the data correctly. But when the Idoc sent to XI with the help of batch run it went with some invalid character set. (I have checked inbound message payload in XI)
    I have re-triggered the same Idoc manually using the logon language as chenese and now it went to XI with the correct Chinese character set.
    Please guide me why it is transferred to Xi with Invalid data for the first time ?
    Thanks,
    SPMD.

    Hi ,
    I will explain you oit clearly.We are sending idoc to XI.
    we have 2 cases here:
    1st case:
    Idoc triggered for the first time and in data segements we can see the data as:
    name : ³£ÖÝÊа²½°Ù»õÓÐÏÞ¹«Ë¾ --this is in data segment.
    In XI (Inbound payload) we see the same data:   (Inbounb payload )
    My doubt is when the same idoc triggered for the first time the data conversion is not done and when the same Idoc is triggered manually the data conversion happend and we se the correct data in chinese format.
    Appreciate your help.
    Thanks,
    SPMD

Maybe you are looking for

  • Restore from time capsule not working

    Like many others I received this email last week: Dear iMac owner, Apple has determined that certain 1TB Seagate hard drives used in 21.5-inch and 27-inch iMac systems may fail. These systems were sold between October 2009 and July 2011. My imac is b

  • Video In adapter for digital camera

    I need an adapter that will allow me to establish a video connection from a Nikon D90 digital camera to my iMac in order to show on the computer screen, in my classroom, a live image of whatever appears on the monitor on the back of the camera (menus

  • Web services - problem accessing xsld

    Using BIPEE standalone 10.1.3.3. I would like to play around with BIP PublicReportService web service but I might be missing a set up step. The BIP manual says " After you have installed or deployed Oracle BI Publisher, there is a unique URL associat

  • Missing start button, task bar and min,max buttons when open iTunes

    Its like the screen is cut off on the top and bottom.  I use windows 7 but this doesn't happen when I have any other program open.  How do I fix?

  • Mac book shuts down right after start up

    my macbook shuts off after initial start up