SQLJ translator for ISO/ANSI does not create .SER profile (Jdev 9.0.0 prev)

The SQLJ translater that comes with JDeveloper 9.0.3 preview does not create profiles (.SER) when running with -codegen=ansi or iso. Thus producing none runnable code.
It is not possible to set any switches in JDev.
Previous versions of the translated did produce the .SER files.
Is there a workaround possible?
Thanks,
Robert

Fo the answer and a workaround look here:
Re: A field is missing in my table.....
-Robert

Similar Messages

  • SQLJ translator for ISO/ANSI does not create .SER profile (Jdev 9.0.3 prev)

    The SQLJ translater that comes with JDeveloper 9.0.3 preview does not create profiles (.SER) when running with -codegen=ansi or iso. Thus producing none runnable code.
    It is not possible to set any switches in JDev.
    Previous versions of the translated did produce the .SER files.
    Is there a workaround possible?
    Thanks,
    Robert
    P.S.: I posted this also in the SQLJ forum.

    Robert,
    My mistake - you are correct, the change I mentioned was put in just after the Preview Release. The .ser files will go into the project source directory in the Preview Release. But this should be the same behavior as in previous releases - are you seeing a difference in behavior between a past release and the Preview Release? Everything up to and including the 9.0.3 Preview Release should put the .ser files in the project source directory. When the 9.0.3 Production Release is available, they will be put into the project output directory instead.
    The fix to put the .ser files into the output directory is not in the translator.jar file. It is in the core JDeveloper code (in jdev.jar). So unfortunately it is not a fix that could be easily dropped into the Preview Release. However, it will be available in the 9.0.3 Production Release.
    -Matt Hawkins, JDeveloper Team

  • SQLJ Translation does not create profile file

    SQLJ Translation does not create profile file.
    After translating a small file HelloWorld.sqlj
    the following files are created:
    HelloWorld_SJProfileKeys.class
    HelloWorld.class
    HelloWorld.java
    Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
    The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
    My environment variables were set up with instructions from:
    http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
    When I run java HelloWorld to run the .java file, I get the error:
    SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
    I searched the internet high and low for a similar error to mine but I could not find a match.
    I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
    but it does not help me.
    "ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
    If you see an exception such as:
    java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
    java.lang.ClassNotFoundException:
    xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
    then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
    Any ideas? Thanks in advance,
    John
    Helloworld.sqlj before translation:
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orac",
    "scott",
    "tiger"
    // get the current date from the database
    #sql { SELECT sysdate INTO :current_date FROM dual };
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    HelloWorld.java after translation:
    /*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orcl",
    "scott",
    "tiger"
    // get the current date from the database
    /*@lineinfo:generated-code*//*@lineinfo:28^7*/
    // #sql { SELECT sysdate  FROM dual  };
    sqlj.runtime.profile.RTResultSet __sJT_rtRs;
    sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
    if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
    sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
    if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
    synchronized (__sJT_execCtx) {
    sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
    try
    sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
    __sJT_rtRs = __sJT_result;
    finally
    __sJT_execCtx.releaseStatement();
    try
    sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
    if (!__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
    current_date = __sJT_rtRs.getDate(1);
    if (__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
    finally
    __sJT_rtRs.close();
    /*@lineinfo:user-code*//*@lineinfo:28^58*/
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    }/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
    private static HelloWorld_SJProfileKeys inst = null;
    public static java.lang.Object getKey(int keyNum)
    throws java.sql.SQLException
    if (inst == null)
    inst = new HelloWorld_SJProfileKeys();
    return inst.keys[keyNum];
    private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
    private java.lang.Object[] keys;
    private HelloWorld_SJProfileKeys()
    throws java.sql.SQLException
    keys = new java.lang.Object[1];
    keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
    }

    SQLJ Translation does not create profile file.
    After translating a small file HelloWorld.sqlj
    the following files are created:
    HelloWorld_SJProfileKeys.class
    HelloWorld.class
    HelloWorld.java
    Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
    The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
    My environment variables were set up with instructions from:
    http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
    When I run java HelloWorld to run the .java file, I get the error:
    SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
    I searched the internet high and low for a similar error to mine but I could not find a match.
    I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
    but it does not help me.
    "ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
    If you see an exception such as:
    java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
    java.lang.ClassNotFoundException:
    xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
    then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
    Any ideas? Thanks in advance,
    John
    Helloworld.sqlj before translation:
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orac",
    "scott",
    "tiger"
    // get the current date from the database
    #sql { SELECT sysdate INTO :current_date FROM dual };
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    HelloWorld.java after translation:
    /*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orcl",
    "scott",
    "tiger"
    // get the current date from the database
    /*@lineinfo:generated-code*//*@lineinfo:28^7*/
    // #sql { SELECT sysdate  FROM dual  };
    sqlj.runtime.profile.RTResultSet __sJT_rtRs;
    sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
    if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
    sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
    if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
    synchronized (__sJT_execCtx) {
    sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
    try
    sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
    __sJT_rtRs = __sJT_result;
    finally
    __sJT_execCtx.releaseStatement();
    try
    sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
    if (!__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
    current_date = __sJT_rtRs.getDate(1);
    if (__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
    finally
    __sJT_rtRs.close();
    /*@lineinfo:user-code*//*@lineinfo:28^58*/
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    }/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
    private static HelloWorld_SJProfileKeys inst = null;
    public static java.lang.Object getKey(int keyNum)
    throws java.sql.SQLException
    if (inst == null)
    inst = new HelloWorld_SJProfileKeys();
    return inst.keys[keyNum];
    private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
    private java.lang.Object[] keys;
    private HelloWorld_SJProfileKeys()
    throws java.sql.SQLException
    keys = new java.lang.Object[1];
    keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
    }

  • I created in iMovie, and extracted audio from one of the clips to use in the title sequence.  All is well, export to iDVD and it plays OK, but when I burn the DVD the audio for the titles does not play. Any suggestions?

    I created in iMovie, and extracted audio from one of the clips to use in the title sequence.  All is well, export to iDVD and it plays OK, but when I burn the DVD the audio for the titles does not play. Any suggestions?

    I am on a MacBook Pro with OS 10.6.7 running iMovie '11 and iDVD 7.1.1.  Thanks for any input.

  • HT2534 The option to enter 'None' for credit card does not seem to appear on the iphone 3G that I got for my mother. Please advise how I may create an itunes account, thank you

    Hello
    Subject: Create itunes account without credit card for iPhone 3G
    The option to enter 'None' for credit card does not seem to appear on the iphone 3G that I got for my mother. Please advise how I may create an itunes account, thank you

    Creating iTunes Store, App Store, iBookstore, Mac App Store account w/o a credit card

  • MRP does not creates Shcedule Line

    I have a valid scheduling agreement LPA in place. Scheduling Agreement is approved and released status.
    I have source list also maintained for same scheduling agreement with long validity and MRP indicator as 2 - Create Schedule line automatically. 
    I am running MRP using following parameters in MD02.
    Processing key          NETCH               Net Change in Total Horizon
    Create purchase req.    3                   Planned orders
    Delivery schedules      3                   Schedule lines
    Create MRP list         1                   MRP list
    Planning mode           3                   Delete and recreate planning data
    Scheduling              2                   Lead Time Scheduling and Capacity Planni
    Even schedule line and other parameters maintained properly, MRP creates planned order and does not creates Schedule Line automatically. Material Master is maintained MRP Type PD, Lot Size as Replenishment to maximum stock level, Safety stock, No strategy and availability on.
    What I am doing wrong? With same setting in other system it is working perfectly fine.
    Any feedback appreciated.
    Thanks
    PP

    Hi
    Check whether the Agreement Open Target value .
    If the target quantity was completed . so system will not create the Schedule lines for the material
    2. If you mainatian the open period in the smk.
    so system will create the planned order instead of schedule agreement. check

  • Error: Number range  for object RESB does not exist

    Hi
    I'm trying to convert a planned order (to purch requisition) partially via trxn code MD04. Upon saving I get the above error msg. The complete text of msg is as  follows. I've maitained the number ranges of all the objects specified in this error msg. Can somebody explain on how to overcome this problem?
    Many thanks
    BE
    Error Msg Text:
    Number range  for object RESB does not exist
         Message no. 61501
    Diagnosis
         The system cannot create a document for an MRP element if no number
         range or interval has been maintained in Customizing of MRP or if t
         number range you have maintained is not allowed.
         Below is a list of MRP elements that are affected:
         Number range object  MRP element
         PLAF                 planned order (operative oder simulative)
         EBAN                 purchase requisition
         RESB                 dependent requirements
         MDSM                 simulative dependent reqmts (long-term plannin
         MDTB                 MRP list
    Procedure
         Check the number ranges in Customizing. If you do not have the necessa
         authorization, please get in touch with your systems administration.

    Hi
    Thanks for the reply. But I have maintained the number ranges for matl. reservations/dependant requirements at OMI2. Here is the screen shot..Do find anything wrong with it? Pl advice.
    NR Object                             MRES/DREQ
    No.                          From Number            To Number          Curr Number          Ext
    01                           0000000001               8999999999           380                    blank
    02                           9000000000               9500000000           blank                  checked
    RB                          9500000001               9999999999           blank                  checked
    Number ranges for the plants are assigned to 01 (0000000001 to 8999999999).
    thanks
    BE
    Edited by: Brian Elfie on Jan 10, 2008 11:27 AM

  • Mail does not create new emails based on the highlighted mailbox, but rather the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part?

    Mail does not create new emails based on the highlighted mailbox, but rather according the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part? (I do have the setting for creating new emails from the highlighted mailbox checked.)

    The questions about time was not only because of thinking about the Time Machine, but also possible impact on recognizing which messages remaining on a POP server (doesn't apply to IMAP) have been already downloaded. In the Mail folder, at its root level, in Mail 3.x there is a file named MessageUidsAlreadyDownloaded3 that should prevent duplicate downloading -- some servers may not communicate the best with respect to that, and the universal index must certainly be involved in updating that index file. If it corrupts, it can inhibit proper downloading. However, setting the account up in a New User Account and having the same problem does not point that way, unless your POP3 server is very different from most.
    That universal index is also typically involved when messages are meant to be moved from the Inbox to another mailbox -- in Mail 3.x the message does not move, but rather is copied, and then erased from the origin mailbox. That requires updating the Envelope Index to keep track of where the message is, and should keep track of where it is supposed to have been removed after the "Move".
    Ernie

  • Adobe After Effects CC 2014 Multi-machine rendering does not create RCF after Collect-File

    This was working in the previous release.  After going through all of the steps to perform a multi-machine render, not only does it say it is limiting it to 5 machines instead of the usual 99 (and I have over 100 cores on the render farm) but "Collect Files" (File/Dependencies/Collect Files) does not create the Render Control File (RCF) that kicks off the process on the other machines, like it did before and is supposed to do.
    This release was supposed to fix the 32 core limitation on render nodes (my server has 48), but now does nothing at all.
    Anyway, I assume there is a check box somewhere that says "do something" that hasn't been checked and another that says "Maybe my machine has more than 5 cores", and I would appreciate being steered in the direction of these new mis-features.
    Just as background, the 48 core server does show the little TV screen that monitors the watch folder, and I know for a fact that process looks for the "RCF" file.  Looking at the directory specified for "collect files", I can see that no RCF file is created, only 1 file, a report.txt file which contains this information is produced:
    Report created:
      7/9/2014 1:54:12 AM
    Project name: highup.aep
    Source files collected to:
      P:\temp\highup folder
    Source files collected: All
    Collected comps: 
      Thomas Falke - High Again High On Emotion)
    Number of collected files:  1
    Size of collected files:  63.4 MB
    Collected source files:
      C:\Users\Jeff K\Videos\Down\2014-2015\Thomas Falke - High Again High On Emotion).mp4
    Rendering plug-ins:
      Classic 3D
    Effects used:  1
    Effect:  Detail-preserving Upscale

    The dialog box has been slightly refactored.  You must click "Allow watch folder rendering" and then all is good.  Hope this helps anyone else.  Thanks to Rafil at customer support chat for this.

  • The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.

    I am getting the following error when attempting to INSERT the results of an "EXEC(@MDXQuery) at SSAS LinkedServer":
    The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.
    Here is code that illustrates what I am doing:
    DECLARE @MDX varchar(max);
    SET @MDX='
    SELECT
    [Measures].[Extended Service Count]
    } ON COLUMNS,
    NON EMPTY [Organization].[By Manufacturer].[Manufacturer]
    ON ROWS
    FROM (
    SELECT
    {[Organization].[Org Tree].&[2025],[Organization].[Org Tree].&[2040]} ON 0
    FROM [MyCube]
    /* Test 1 */
    EXECUTE(@MDX) at SSASLinkedServer;
    /* Test 2 */
    DECLARE @ResultsB TABLE (
    Manufacturer varchar(255)
    , ExtendedServiceCount float
    INSERT INTO @ResultsB (Manufacturer, ExtendedServiceCount) EXECUTE(@MDX) at SSASLinkedServer;
    Test 1 succeeds, returning expected results, and Test 2 fails returning the error mentioned above.
    Other articles I've found so far don't seem to apply to my case.  I am not creating any explicit transactions in my code.   When I use OPENQUERY, I am able to do the insert just fine, but not when I use EXEC @MDX at LinkedServer.
    Unfortunately in some variations of the query, I run into the 8800 character limit on OPENQUERY, so I need to use this other approach.
    Any ideas?
    -Tab Alleman

    Hi Tab,
    In this case, SQL Server Analysis Services doesn’t support Distributed Transactions by design. Here is a similar thread about this issue for your reference, please see:
    http://social.technet.microsoft.com/Forums/en-US/8b07be45-01b6-49d4-b773-9f441c0e44c9/olaplinked-server-error-msolap-for-linked-server-olaplinked-server-does-not-support-the?forum=sqlanalysisservices
    One workaround is that use SQLCMD to execute the EXEC AT command and saved the results to a file, then import using SSIS.
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Payment Wizard Does not create the File

    Hi I am trying to run the payment wizard and in the final step it says it ran successful and create the outgoing payments but it does not create the payment file for the bank.
    Step 1
                Start a new Payment run
    Step 2
               payment type : out going
               payment method : bank transfer
               File Path : Go to Desktop and file name is test
    Step3
              Select the business partner
    Step 4
             Select the date range
    Step 5
            Select the payment method
    Step 6
            Select the Invoices
    Step 7
            Execute
    It says successfully Executed the payment and create outgoing payment for the business partner.
    But it does not create the payment file (test in the Desktop)
    Please help me!!!
    Thanks
    Sanjaya

    Hi Sanjaya,
    Check the link
    Payment Wizard
    Payment Wizard Run does not create Payment/Check
    Payment Wizard/Engine - creation of Bank File
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • MS Outlook 2010 Add in Create pdf - does not create pdf of draft emails- Adobe Acrobat Pro X

    In MS Outlook 2010 Add in Create pdf- does not create pdf of draft emails- this maybe the case, but just wanted to make sure this is normal for the program- though I guess one can print as an Adobe pdf but it does not maintain the hyperlinks of email addresses etc. the functionality is compromised in a print vs create a pdf.

    Here's a workaround by the team:
    Right click on the message from Explorer list view or folder view and chose the option to convert to PDF.

  • Need to create a sales order that does not create demand

    Hi,
    We need to create a no cost sales order - that does not create demand
    In our current set-up when we try to create a no cost sales order with a material ( It Cat = Norm) we see demand being created in MD04
    What configuration settings will allow us a deliverable order - that does not create demand (no MRP run?)
    Thanks,
    SM

    Hello,
    For this set of requirement i think the best option would be to configure a New Sales Order Type and a new Schedule Line Category. In VOV6, While you are defining a new Schedule line category in the transaction flow make sure to switch off the three check box.
    Transfer of requirements / Begin assembly order from SD
    Availability check for sales
    Product allocation active
    Then when we are assigning this newly defined Schedule line Category to Item category, make sure to leave the field of MRP Type as blank in VOV5.
    Regards,
    Sarthak

  • Number range  for object MDTB does not exist - Message no. 61501

    Hi All ,
      I have done the necessary configurations in PP say
    Order Type
    Order Type Dependent Parameters
    Scheduling parameters for planned & production order
    Confirmation parameters
    Availabilty check etc
    and iam able to create planned & production order and confirma the production order.
    I want to configure for MRP: -
    Settings done are
    Have activeted planning file entry for all plants.
    When i run MRP system throws a error <b>Number range  for object MDTB does not exist - Message no.61501 </b>
    Is there anything to do with plant parameters OPPQ and Mrp Group OPPR.
    I just tried plant parameters,standard 0001 is not available for copying.
    Suggest me how to proceed to set MRP.
    Shankar

    Hi shankar
      it is a good practice while creating the plant copying the plant from the standard plant so that all the standard table enteries will be copied  for the plant as the standard plant is not there youcan think of copying from any other plant similar to your plant which has the required entry. else
    in SE16N  check the NRIV table for the Object MDTB. if enteris found then make the table entry with the help of abaper.
    hope this helps
    regards
    SK

  • Server does not create ois ?

    Hi folks !
    At first I wanted to send some Strings via the Client to the Server and print them onto the screen. On a specific String "antwort" I would like to send an Object k from the Server to the Client and prove on the Client the correctness of the object by reading the attribute set on the serverside before sending.
    But somehow the server does not create the ObjectInputStreams and I don�t know why.
    That�s the code:
    // Server:
    public class Server {
    public Server() {
    try{
    String input = new String();
    ServerSocket sock = new ServerSocket(16348);
    Socket socket = sock.accept();
    System.out.println("socket"); // this line is printed on connection
    ObjectInputStream sockin = new ObjectInputStream(socket.getInputStream());
    System.out.println("objectinputstream"); // but this one never appears
    ObjectOutputStream sockout = new ObjectOutputStream(socket.getOutputStream());
    Kunde k = new Kunde();
    k.setNummer(13);
    while(!input.equals("Ende")){
    input = sockin.readObject().toString();
    if(input.equals("antwort")){
    sockout.writeObject(k);
    sockout.flush();
    sockout.reset();
    System.out.println(input);
    socket.close();
    catch(Exception e){
    public static void main(String[] args) {
    // TODO code application logic here
    new Server();
    // The Client
    public class Client {
    public Client() {
    try{
    Socket sock = new Socket("localhost",16348);
    // System.out.println(sock.isOutputShutdown());
    sock.setSoTimeout(5000);
    System.out.println("socket hergestellt");
    ObjectInputStream sockin = new ObjectInputStream(sock.getInputStream());
    System.out.println("sockin");
    ObjectOutputStream sockout = new ObjectOutputStream(sock.getOutputStream());
    System.out.println("sockout");
    String eing = "";
    System.out.println("vor while");
    while(!eing.equals("close")){
    eing = erwarteEingabe();
    System.out.println("Sende:"+eing);
    if(eing.equals("antwort")){
    sockout.writeObject(eing);
    Kunde k = (Kunde)sockin.readObject();
    System.out.println("Nummer des Kunden: "+k.getNr());
    else{
    sockout.writeObject(eing);
    sockout.flush();
    sockout.reset();
    catch(Exception e){
    System.out.println(e);
    public static void main(String[] args) {
    // TODO code application logic here
    new Client();
    private String erwarteEingabe(){
    String eing = "";
    System.out.println("nehme Eing entgegen");
    try{
    BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
    return b.readLine();
    catch(Exception e){
    System.out.println(e);
    return "";
    }

    When you create an ObjectInputStream it tries to read the object stream header from the underlaying stream. In this case both your server and client are waiting for the other one to send the header before they can continue. This problem can be avoided by simply creating the object output streams first:ObjectOutputStream sockout = new ObjectOutputStream(socket.getOutputStream());
    ObjectInputStream sockin = new ObjectInputStream(socket.getInputStream());

Maybe you are looking for