Java Importer Genrates Package

hi all,
i create one class named Hello.class. it contains one method named World() it return string value "Hello World". i'm using forms 6i (patch 10) and jdk 1.2.2 when i use java importer and i select this class from the java importer it create procedure named Hello. but the problem is it creates funciotn like new_9797 and world_347 instead of NEW or WORLD. why it adds some number with function. it creates lots of other functions also but all r with number. can u please help me.
thanks in advance
Shakeel

This is because you have the option "Generate Persistent Names" set on - Go to the importer dialog - press the Options button and uncheck this box. That will solve your problem.

Similar Messages

  • Use Java Bean or Java Importer

    I have created my java class to validate a user against LDAP and now I would like to use that class in my own 9i login form. In order to pass the class variable values to the form is it better to create a java bean or use the Java Importer? Which is better for performance?

    Mike,
    Java Beans added to Forms are downloaded to teh client as part of the application startup. The jar files get permanently cached on teh client until they are renewed on the server. For your original request, the funtionality already exists in a Forms9i demo
    http://otn.oracle.com/sample_code/products/forms/files/Forms9iOID_DEMO.zip
    Viewlet:
    http://otn.oracle.com/sample_code/products/forms/demo/9i/forms_services_demos/sso_oid_integration/viewlet/forms_integration_oid/OID90_viewlet.html
    To authenticate
    <Java Importer class package>.authenticateUser(<obj ORA_JAVA.JOBJECT>,user_dn VARCHAR2,password VARCHAR2) RETURN BOOLEAN;
    Frank

  • SAP Ides ECC 6.0 Install: Import ABAP - Package SAPDODS Error - ORA-00903

    Experts,
    Good Morning!
    I'm trying to install SAP IDES ECC 6.0 version on a Windows 2008 R2 Server with Oracle 11g DB (11.2).
    System Info: 16GM RAM & 600GB Hdd. Prereqs passed.
    I'm getting the following error during the Import ABAP phase (16 of 29) in the sapinst log:
    "An error occurred while processing option Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > Oracle > Central System > Central System( Last error reported by the step: Program 'Migration Monitor' exits with error code 103. "
    Here's the dump of import_monitor.java.log
    java version "1.4.2_32"
    Java(TM) 2 Runtime Environment, Standard Edition (build 4.1.012)
    SAP Java Server VM (build 4.1.012 1.6-b03, Oct 21 2011 14:18:45 - 41_REL - optU - windows amd64 - 6 - bas2:161688 (mixed mode))
    Import Monitor jobs: running 1, waiting 1, completed 141, failed 0, total 143.
    Loading of 'SAPDODS' import package: ERROR
    Import Monitor jobs: running 0, waiting 1, completed 141, failed 1, total 143.
    Here's the dump of import_monitor.log:
    INFO: 2014-07-05 13:42:53
    Data codepage 4103 is determined using TOC file 'C:\Target\Export1\DATA\D010TAB.TOC' for package 'D010TAB'.
    TRACE: 2014-07-05 13:42:53 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPDODS' import package is started.
    TRACE: 2014-07-05 13:42:53 com.sap.inst.migmon.LoadTask processPackage
    Loading of 'SAPDODS' import package into database:
    C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe -i SAPDODS.cmd -dbcodepage 4103 -l SAPDODS.log -stop_on_error
    ERROR: 2014-07-05 13:42:54 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPDODS' import package is interrupted with R3load error.
    Process 'C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe -i SAPDODS.cmd -dbcodepage 4103 -l SAPDODS.log -stop_on_error' exited with return code 2.
    For mode details see 'SAPDODS.log' file.
    Standard error output:
    sapparam: sapargv(argc, argv) has not been called!
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    WARNING: 2014-07-05 13:43:21
    Cannot start import of packages with views because not all import packages with tables are loaded successfully.
    WARNING: 2014-07-05 13:43:21
    1 error(s) during processing of packages.
    INFO: 2014-07-05 13:43:21
    Import Monitor is stopped.
    Here's the log of SAPDODS...
    C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20140705134253
    C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/720_REL/src/R3ld/R3load/R3ldmain.c#13 $ SAP
    C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: version R7.20/V1.4 [UNICODE]
    Compiled Aug 16 2011 02:26:36
    patchinfo (patches.h): (0.098) DB6: correction for R3load PL 91 on HP-UX and SOLARIS (note 1609719)
    process id 1488
    C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe -i SAPDODS.cmd -dbcodepage 4103 -l SAPDODS.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF16
    (SQL) INFO: Searching for SQL file SQLFiles.LST
    (SQL) INFO: SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file C:\Target\Export1\DB/SQLFiles.LST
    (SQL) INFO: C:\Target\Export1\DB/SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file DODS.SQL
    (SQL) INFO: DODS.SQL not found
    (SQL) INFO: Searching for SQL file C:\Target\Export1\DB/ORA/DODS.SQL
    (SQL) INFO: found C:\Target\Export1\DB/ORA/DODS.SQL
    (SQL) INFO: Trying to open C:\Target\Export1\DB/ORA/DODS.SQL
    (SQL) INFO: C:\Target\Export1\DB/ORA/DODS.SQL opened
    (DB) ERROR: DDL statement failed
    (DROP TABLE "/BI0/APERS_BOD00")
    DbSlExecute: rc = 103
      (SQL error 942)
      error message returned by DbSl:
    ORA-00942: table or view does not exist
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    DbSl Trace: Error 903 in exec_immediate() from oci_execute_stmt(), orpc=0
    DbSl Trace: ORA-00903 occurred at SQL stmt (parse error offset=15)
    (DB) ERROR: DDL statement failed
    (  CREATE TABLE [/BI0/APERS_BOD00]         (  [TCTUSERNM] nvarchar(000012)          NOT NULL  ,           [TCTOBJVERS] nvarchar(000001)          NOT NULL  ,           [TCTSYSID] nvarchar(000010)          NOT NULL  ,           [TCTQUACT] nvarchar(000001)          NOT NULL  ,           [TCTOBJNM] nvarchar(000040)          NOT NULL  ,           [TCTTLOGO] nvarchar(000004)          NOT NULL  ,           [RECORDMODE] nvarchar(000001)          NOT NULL  ,           [TCTTIMSTMP] nvarchar(000014)          NOT NULL   )          WITH ( DATA_COMPRESSION = PAGE )   )
    DbSlExecute: rc = 99
      (SQL error 903)
      error message returned by DbSl:
    ORA-00903: invalid table name
    (DB) INFO: disconnected from DB
    C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: job finished with 1 error(s)
    C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: END OF LOG: 20140705134254
    FYI - A retry does not help. Also tried to search for the error on scn, google but haven't been able to find the right solution.
    Can you help?
    Regards,
    Cobain.

    Divyanshu - sorry to ask but can you explain why i need to update r3load and r3trans to resolve this error? Just want to understand why I'm doing a correction so I can learn from the same.
    Also, can you clarify the file update process:
    For R3load:
    a) the r3load used by the command is dated 8/16/2011 (location:C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\...)
    b) the r3load i have in my db folder is dated 10/23/2011 (location:C:\Final\Installer\BS7i2011_Installation_Master_\DATA_UNITS\BS2011_IM_WINDOWS_X86_64\ORA\UC\...)
    Do i replace (a) with (b)?
    For R3trans:
    How do I update this file?
    - Cobain.

  • Java.lang exception package/simpleForm. init ()

    hi;
    I am learning j2me. and i used Nokia feature pack 2, S60 emulator. I created simple application for test and i got java.lang exception. package/simpleform.<init>().
    I wasted all my time on this. and search for help. I think my method of developing is right but i dont know what problem is plz help me.
    Can any one advise me well know book for j2me developing
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    * @author Kami
    public class SimpleForm extends MIDlet implements CommandListener {
    Form frm ;
    Display display;
    Command Exit_cmd= new Command("Exit",Command.EXIT,1);
    // Command Ok_cmd= new Command("Ok",Command.OK,1);
    public void startApp() {
    display= Display.getDisplay(this);
    frm= new Form("First Form");
    frm.append("This is Sample Form;");
    // frm.addCommand(Ok_cmd);
    frm.addCommand(Exit_cmd);
    frm.setCommandListener(this);
    display.setCurrent(frm);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    public void commandAction(Command c, Displayable d) {
    if(c==Exit_cmd){
    notifyDestroyed();
    }

    The cause is case mismatch.
         Your method signature : public int Add2Numbers(int x,int y) --- Upper Case
    But the signature produced is
    ouldn't find a matching Java operation for WSDD operation "add2Numbers" (2 args)
    ( from the error trace ) -- Lower case.
         Change the case of your method to add2number (lowercase ) as per conventions and you code will work.
    Rgdz,
    Saroj Kumar

  • How do you import a package into Forte?

    I'm attempting to use a Java package from http://www.braju.com that essentially implements the standard C functions printf / sprintf, as part of an exercise to convert a C program to Java.
    I can go into a (gasp!) Windows ME DOS window, set my Classpath to include C:\java\classes (where I put the hb15.zip file), and following the directions on Henrik's website I can type:java com.braju.format.Format -helpand see it work- but when I try to compile with Forte, the line...import com.braju.format.*;causes it to say, "package com.braju.format does not exist."
    I just installed the early release (version 3) of Forte, which has no problem with standard Java imports such as:import java.lang.Math;Does anybody know what the problem is?

    Hi.
    I am using NetBeans 3.2 but I think it's pretty the same.
    So here is how to set your classpath for your compiler :
    1) decide what you're using as a compiler : internal or external compiler
    2) go to main menu : Project - > Settings
    3) Expand "Compiler Types" node
    4) Select from here the compiler you're using (internal, external, fastjavac , etc )
    5) click on the "Expert" tab and you'll find a "classpath" field that must be editable
    6) append/add your location to the existing classpath
    Now it should work.
    They may be some (GUI) differences between the Forte and NetBeans main menu, but I think you've got the idea.
    Regards,
    Rick

  • How to import a package in jsp

    i've searching here and i've not found answer to this, so i write it here.
    i've created a class to send mail, it imports the javax.mail.* and javax.activation.*, in a package named jspbeans.
    now, when i try to use this package in my jsp page (using tomcat), gives me the error:
    Package jspbeans not found in import
    import jspbeans.*;
    the code for my jsp page is:
    <%@ page language="java" %>
    <html>
    <head>
    <title>Sending mail from JSP</title>
    </head>
    <body>
    <%@ page import="jspbeans.*"%>
    <jsp:usebean id="sendmail" class="jspbeans.SendMail" scope="page"/>
    <jsp:setProperty name="sendmail" property="host" value="mail.wavelinksystems.com"/>
    <jsp:setProperty name="sendmail" property="to" value="[email protected]"/>
    <jsp:setProperty name="sendmail" property="from" value="[email protected]"/>
    <jsp:setProperty name="sendmail" property="msg" value="testing 1 2 3..."/>
    <jsp:setProperty name="sendmail" property="subject" value="test"/>
    <%//sendmail.send();%>
    <p>
    Mail has been sent to <jsp:getProperty name="sendmail" property="to"/>
    </body>
    </html>and the path of this jsp page is:
    C:\WINDOWS\Desktop\tomcat\jakarta-tomcat-3.3.1\webapps\ROOT\pruebas\jspMailTest.jsp
    the path for the package is:
    C:\WINDOWS\Desktop\tomcat\jakarta-tomcat-3.3.1\webapps\ROOT\pruebas\jspbeans
    what am i doing wrong?
    what am i missing?
    how do i have to import the package?
    thanks

    it generates a
    java.lang.NoClassDefFoundError: javax/mail/MessagingException
    i changed the package to that directory and the import generates no errors, if i do nothing but the import, and soem printing, the page is generated, but when i try to assign the variables, generates that error, why is it?

  • Problem with importing jsp packages

    Hi guys. I'm having a problem compiling a class that imports jsp packages.
    I'm getting errors along the lines of:
    C:\>javac HelloTag.java
    HelloTag.java:4: package javax.servlet.jsp does not exist
    import javax.servlet.jsp.*;
    ^
    HelloTag.java:5: package javax.servlet.jsp.tagext does not exist
    import javax.servlet.jsp.tagext.*;
    - I've copied jsp-api.jar and servlet-api.jar to a folder that's in my path: C:\Program Files\Java\jre1.5.0_03\lib\ext
    Any suggestion?
    Thanks.

    U have to add the path into the classpath
    set CLASSPATH=%CLASSPATH%;jsp-api.jar ....
    the compile in the same cmd window
    Do not use the CLASSPATH environment variable. Use the -classpath option while compiling and specify the path to your jar file.
    javac -classpath <path to jar file> filename.javacheers,
    ram.

  • Import and package does not exist

    I have a program and I wish to import a package that I've made. I have tried to do this with:
    import clientcode.*;but I keep getting the error message java:8: package clientcode does not exist
    I am completely new to Java and have no idea how to get around this. Please help

    Do you use ide or compile classes from command line?
    Most likely it's a classpath problem.

  • How to import a package of my own

    Hi,
    I have downloaded a file upload package located in "c:/transfer/Picasso_ljm/jakarta-tomcat-4.0.1/webapps/junmin/WEB-INF/classes/org1/apache/commons/fileupload/", the package name is "org1.apache.commons.fileupload". I have another package which is created by myself, located in "c:/transfer/Picasso_ljm/jakarta-tomcat-4.0.1/webapps/junmin/WEB-INF/classes/record/". The package name is "record.".
    I want to import fileupload package in java files in record package, what should I do?
    Thanks a lot!
    ljm

    I think you misunderstand my question. I find out already. Thanks!
    in classes under record package, I should write:
    import org1.apache.common.fileupload.*;
    when I compile my class, I need to specify my classpath so that the java file can find this package.
    Sorry for this simple question.
    ljm

  • Standards or best practises for Java imports?

    I was just wondering how some of the more seasoned developers out there handle Java imports. I'm fairly new to Java programming and as far as I know there is very little difference between explicitly importing individual classes and importing entire packages, other than at compilation time on large projects, however I'm wondering if there is an official standard or if you have any personal preferences for it.
    Personally I always used to import packages unless I was only using one class from the package, however I have a friend who swears by importing individual classes for everything you use unless you are using almost every class in the package. I'm thinking that a happy medium might be to put a level of inclusion on your work, say if you use less than 50% of classes you should import them individually, but if you use more than 50% you should import the entire package.
    I realise that it doesn't make a great deal of difference to the overall outcome of a project, I'm just looking for your opinions and experiences with it.

    If you're working on a large codebase with a team, then it is helpful to use explicit imports, so that others can readily see which package particular classes come from.
    Also consider the case where there two classes from different packages share a name. In this case you must use at least one explicit import.
    But what if this situation doesn't exist (yet). You import two packages using wildcards. And then later someone comes along and creates a class in the second package with a name used by a class in the first package. Suddenly the class with the wildcard imports won't compile. Perhaps this is a contrived example.
    Regarding personal practice, I usually use explicit imports for the first reason listed above. But secondly, I like to do so because it forces me to remember the package to which the class belongs. Most programmers type pretty quickly, so it's not much of a burden.
    By the way, the compile-time cost, if it is even measurable, is no factor whatsoever. Writing readable and maintainable code is much more important.

  • Java.util.vector package

    What is in the java.util.vector package and why is it used (imported)?
    Thanks

    Can you tell me what the Vector class is use for?First of all, forget about Vector. When anyone mentions Vector, your response should be "You're still using Vector? Are you still in 1.1?"
    Use ArrayList. It's basically the same but better. It's a List. You know what a List is right? It's a group or ordered items that can contain duplicates. An ArrayList is basically a List that is backed by an array. The greate thing about it is that it automatically makes itself bigger as needed and implements probably the most commonly supported Java type: Collection.

  • Why can't I import my package

    Ok, I am new to java and getting really frustrated. I have read through over 50 postings and nothing seems to work. Here is my problem. I have the following class definfitions located in c:java/classes in two different files
    hello_again.java
    package test;
    public class hello_again
         public void say_hi()
              System.out.println("Hello Again!");
    HelloWorldApp.java
    import test.*;
    class HelloWorldApp
    public static void main(String[] args)
    System.out.println("Hello World!");
    The classpath is set as follows:
    SET CLASSPATH=.;C:\java\classes
    I comple hello_again.java and all is good. But when I try to compile HelloWorldApp.java I get the following error:
    HelloWorldApp.java:1: package test does not exist
    import test.*;
    ^
    1 error
    What am I doing wrong. Please help;

    Because the compiler is trying to find hello_again.class in c:\java\classes\test. You want to arrange your code in a directory structure under the classpath that mimicks the package path, so if you have a package named com.batman.helloworldtests, then given the class path c:\java\classes, you want to put the source in c:\java\classes\com\batman\helloworldtests\. Does that make sense?

  • Problem importing a package

    Hello all! I'm relatively new to Java programming, but an experienced programmer in other languages, which is why this problem is so disturbing.
    I'm running through an exercise in the Thinking in Java book that introduces you to packages and importing packages. The code runs fine if I explicitly import the package by name, but not if I use the "*" wildcard.
    I'm running on Windows NT, and my CLASSPATH variable is:
    CLASSPATH=.;D:\Java\Books
    Here are the programs that work:
    //P.java
    package tools;
    public class P {
      public static void rint(String s) {
        System.out.print(s);
      public static void rint(int i) {
           System.out.print(i);
      public static void rintln(String s) {
        System.out.println(s);
      public static void rintln(int i) {
           System.out.println(i);
    //PrintTest.java
    import tools.*;
    public class PrintTest {
      public static void main(String[] args) {
           P.rint("Test String print - No line feed...");
           P.rintln("---");
           P.rint(1);
           P.rintln("");  //Force line feed.
           P.rintln(2);
           P.rintln("---");
    }Both of these files reside in the D:\test directory, and I compile them from that directory.
    To compile the P.java program, I use the following statement: javac -d . P.java
    The P.class file ends up in the D:\test\tools directory, which is fine. When I try to compile the PrintTest.java file, I get an error for each reference to the P class as follows:
    PrintTest.java:6: cannot resolve symbol
    symbol: method rint (java.lang.String)
    location: class P
    P.rint("Test string print - No line feed");
    However, if I change the first line in the PrintTest.java program to:
    import tools.P;
    Then it works.
    Why is the import working with an explicit call to the class, but not with the "*" wildcard? Any help would be greatly appreciated. I've been through all of the forums, the documentation, etc. and can't find a definitive answer.
    Thanks in advance,
    Tim

    Here is the error that I'm getting when I compile the PrintTest.java file.
    PrintTest.java:6: cannot resolve symbol
    symbol: method rint (java.lang.String)
    location: class P
    P.rint("Test string print - No line feed");
    Actually, I get one error for each reference to the P class in the PrintTest code, so there are 6 errors total.
    The P.class file is in the \tools directory under the directory where the PrintTest.java file exists, so the "import tools.P;" command works and the file runs OK, but when I switch to the "import tools.*" command, I get these errors. I'm just confused as to why it works when it is explicitly imported, but not when it is wild-carded.
    Thanks for the help! I'll keep trying...

  • Java Import -- please help!!!

    I look into http://otn.oracle.com/sample_code/products/forms/content.html for the demo of Java Importer.
    Does anyone knows where / how can I get the source code?
    According to that demo, the Importer creates functions called new() for each of the constructors in the class.
    For me, after I imported one of the class "successfully",
    I can't see this function new().
    How can I get it? Does anyone has the sample code for the package body?
    Please help!!! Anybody?
    thanks

    Hi Shay,
    Where is this src subdirectory?
    I see other demo (i.e the Oracle 9i forms demos) with source in it, but not Java Importer demo. It only has Viewlet next to it.
    Am I looking into the wrong thing?
    thanks

  • Java importer gives securityException

    I'm getting following message when trying to import my own class(es) to forms through java importer :
    ========================
    Importing Class TestFormsApp...
    Exception occurred: java.lang.SecurityException: class "oracle.ewt.lwAWT.AbstractPainterComponent"'s signer information does not match signer information of other classes in the same package
    ========================
    All the packages (f60all.jar, f60common.jar, forms.jar etc.) are generated when installing forms and should not have been modificated at any way.
    Path :
    ===========
    set path=%path%;d:\sun_jdk_130\jre\bin\classic
    Classpath :
    ===========
    set classpath=%classpath%;E:\Oracle\Ora81\tools\common60\java\Importer.jar;D:\Projects\NetForest\Mh\FileTransfer\;E:\oracle\home\jdbc\lib\classes111.jar;E:\Oracle\Ora81\forms60\java\forms.jar;
    What could be the case? Do I need to unarchive and make a jar and sign the generated jar again? These Oracle supplied Jar -files should be correct, i Guess?
    Thanks:
    -Jukka-

    Ok, solution for this securityException was found from this forum.
    Re: Jdev webservice and java.util.Collection
    -Jukka-

Maybe you are looking for

  • Pie Chart Legend Control

    Hi, guys. I am a fresh learner in Flex. Now. I am trying to learn how to use chart. I found all of the legend areas are displaying  to things; Color and related category. I want to know that is it possible that I also display category values in the l

  • Solaris 10 x86 Firewire (IEEE 1394) camera frame grabbing

    How do you do frame (sequence) grabbing from Firewire (IEEE 1394) camera on Solaris 10 x86? What API can I use? XIL documentation doesn't seem to mention Firewire cameras specifically. And I tried to compile Linux libdc1394 on Solaris 10 x86, but got

  • Is the iphone panorama pic option available for the ipad, if so where can I find it?

    A friend recently showed me her iphone 5 panoroma pic app that comes with the phone. We thought my almost new ipad would have it but it does not. Any ideas on how I can find and install that app on my ipad. Preferably to interface with my apple camer

  • Tabs are inoperative

    When I click on a tab, or use file>open tab or ctrl/t nothing happens. I have downloaded firefox and re-installed but to no effect. Any clues? It did work ok until a short time ago.

  • Notebook HP Pavilion zd8130EA, maximum RAM configuration.

    Hello, I would like to expand to the maximum the memory of the notebook HP Pavilion zd8130EA - (EB872EA) currently equipped with 512 MB ​​DDR2 400MHz (2x256 MB). According to the official datasheet, the notebook supports up to 2 GB of DDR2 memory. Th