.jar file reusablility issue in oracle forms

hello all
i am using oracle forms
{code}
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
{code}
and using Database 10g
{code}
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
{code}
i am developing an application in oracle forms that sends message through GSM mobile when any transaction is commited.
i wrote a class in java , made .jar file , edited default.env file CLASSPATH = "my .jar file"
everything is working fine when i am trying the code in NETBEANS IDE, it sends messages again and over again with no delay..
PROBLEM:
the problem is that when i try to send message from oracle forms using that JAR file , it sends message for only single time , after that it neither shows me any error nor sends the message,
(1) can it be problem of closing COM port for reusablity.
(2) any other way to reuse the jar file.
(3) should i program to closo the used port. (but java program is working very well in NETBEANS IDE).
please suggest me what should i do to reuse .jar file again and over again.
thanks

thanks for your reply.
sorry if forgot to mention that how i am using this java code.
yes! i am using that java code using Java Importer in oracle forms 10g.
importing that jar file i used PL/SQL code to use the static public veriables in oracle forms
Procedure Send_Message(
    Cel_N In Varchar2
Is
  Ora_Obj Ora_Java.Jobject;
  Com_P    Varchar2(10);
  Cent_No  Varchar2(100);
  Send_Sms Number;
  Mesg     Varchar2(200);
Begin
  Ora_Obj := Smsclient.New(1);
  Smsclient.Setcomportname(Com_P);
  Smsclient.Setmsgcenternum(Cent_No);
  Send_Sms:= Smsclient.Sendmessage(Ora_Obj,Cel_N,Mesg);
Exception
When Ora_Java.Java_Error Then
  Message(Ora_Java.Last_Error);
When Others Then
  Message(Sqlerrm);
End;
this Smsclient.Sendmessage Class is working very well in both plateforms in NETBEANS IDE and oracle forms but the difference is in this class that
in NETBEANS IDE (when i run this class using F6 ) it works every time with no delay
but when i use this same class in pl/sql code through oracle forms it works only for one time.
COM ports and GSM modem is working property but why .jar file works for once.. and when i restart OC4J & oracle form at run time then it works for only once , meanse after starting OC4J i am able to send message through mobile for one time, means .jar file works only once, why not every time i call the class through oracle form..
what should i check .. please..
thanks

Similar Messages

  • How to list the JAR files loaded into the Oracle Database ?

    How to list the JAR files loaded into the Oracle Database ?

    From 11.1 onwards, the below two views are available to identify the jar files loaded into the Database.
    JAVAJAR$
    JAVAJAROBJECTS$
    By querying the JAVAJAR$ view you can know information about the JAR files loaded into the Database and using JAVAJAROBJECTS$ view you can find all the java objects associated with the given JAR file.
    These views are populated everytime you use LOADJAVA with "-jarsasdbobjects" option to load your custom java classes.
    But unfortunately this feature is available only from 11.1 onwards and there is no clear workaround for above in 10.2 or earlier.

  • How can I resolve the push button dot issue in oracle forms 10g..?

    Hi All,
    We have migrated to forms6i to forms10g, in 6i all the push button labels are displaying properly, but in 10g forms its giving dots like this … after displaying some characters. I guess its width problem but how come its changing in 10g alone.
    Kindly give me any workaround to resolve this issue
    Thanks in Advance
    Thangaraj.

    Hi All,
    We have migrated the forms 6i to forms 10g R2.We are facing push button issue like,the lable is displayed in the button is reduced.Assume the button's label name is Cancel.Actully it is displaying like Can.....Due to Java used in forming the buttons.We have forms count nearly 300.We have diffent size buttons.
    We have solution like
    1.Manually
    2.PC Creation
    3.Java Class and Jar Files
    4.JDAPI
    5.basejini.htm
    The method five,we have tried.But there is no changes after this changes also.
    Can you guys please let us know the correct menthod(with steps 1 by 1) to do this in quickly.
    2.There are look and feel 2 types oracle and generic,rather than this do we have any other type.We are looking for any cusrtomized settings in config files.
    Thanks in Advance.
    Regards,
    GR

  • EJB 3.0: deployment/jar file generation issue

    We have a web application project (ADF Faces) which depends on a model project (EJB 3.0 session/entity beans) that implements both business and persistence layers. This EJB project points to a utility jar file containing some classes we have built. When we run the web project from inside JDev, everything works perfectly, with no error. However, when generating EAR file (deploying web project to WAR) we experience an issue.
    As expected, JDev generated the war file for the web app, the jar file for the EJB and finally the EAR file containing both war and jar files. After that, we managed to deploy the ear file to our OAS 10.1.3 test instance (not standalone OC4J) and an error occured. The error is due to the fact JDev did not create the /lib subdirectory inside ejb project jar file /META-INF directory with our utility jar file inside.
    We tried to generate a separated jar file for the ejb project alone with the same results.
    Is this an IDE bug which does not pack the application as it should? What could we be doing wrong? If yes, is there a work-around? Like I said, the application runs fine on embedded server. Also, when the EJB application does not depend on external libraries, the deployment to OAS 10.1.3 works perfectly. We have tested it!
    Could anyone help us?
    Thanks in advance.
    Best Regards,
    Gustavo
    PS: Sorry for my English. :)

    Hi Shay! I follow what you said and it worked. However, we had to manually edit MANIFEST file for the EJB jar in order to add classpath clause to map our util jar. IMHO, JDev should do it for us. Anyway, we were able to deploy the app successfully.
    Best Regards,
    Gustavo

  • How to create a deployable ejb(.jar file) when we use Oracle application sever?

    Hi,
    In case if we use Weblogic we give following command on console to create a deployable ejb, while weblogic.jar is in classpath.
    java weblogic.ejbc temp.jar StudentBean.jar
    1)What are the classes or jar files we have to set in classpath,
    2)What console based command(like what I mentioned above for weblogic) can we use,
    so that we can create a deployable jar file in case if we are using Oracle application server.
    thanks,
    Milind

    You can discover the origins of a loaded class programatically. You want to print:
    TheClass.class.getProtectionDomain().getCodeSource().getLocation().toString();

  • Text field highlighting Issue in oracle forms 11g after migrating from 10g

    We have migrated the oracle forms from 10g to 11g.
    On 10g oracle form when I click on the text item then text item value gets hilighted in blue color but after converting same form(without making any code changes) into 11g version form when I click on then text item then value is NOT hilighted.
    Could please help me why it's behaving different? Are there any configuration changes required at the application server side?
    Thanks

    christian,
    We have forms 11.1.1.2.0.
    In oracle forms “text item value is highlighted When user clicks on text item” is controlled by form level property “KEEP CURSOR POSITION”.
    This property is not working with JAVA SUN plug-in in forms version 11.1.1.2.0.
    This issue has been fixed under Patch Set 2 (11.1.1.3.0). Please see below meta link.
    https://support.oracle.com:443/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocDsrc=KB&bmDocType=BULLETIN&bmDocID=1099499.1&from=BOOKMARK&bmDocTitle=Fixed%20Bugs%20List%20-%20Patch%20Set%202%20(11.1.1.3.0)%20for%20Oracle%20Fusion%20Middleware%2011g&viewingMode=1143))
    Thanks,
    Satish N

  • JAR File Caching Issues

    After the security update here, http://sunsolve.sun.com/search/document.do?assetkey=1-26-103079-1 any users referencing our applets do not use the jar files stored in cache if the DNS has changed. We use an akamai hosted solution for jar distribution (though this would also occur in any DNS load balancing situation) thus the IP is rather dynamic though the content is identical. As the security issues states, any Plugin versions 1.5.0_13 and above or 1.6.0_03 and above treat a new DNS as compeltely new jar files.
    Has anyone worked through similar situations? This renders the caching almost useless and we have a rather thick applet (3 Mb total jar files) which is quite an impact for a customer that is often low bandwidth to download daily.
    Thanks!

    Recently I tried to used some robot tools to test our application for performance issue. During the robot testing, I acceidentally discover some difference for the jar downloading which cause the above mentioned problem.
    At first, this http request has no problem and the jar file is NOT downloaded. Http server shows a response code of "304", meaning download not required.
    http_request
    "GET lib/posLookup.jar HTTP/1.1\r\n"
    "Accept: */*\r\n"
    "Accept-Encoding: gzip, deflate\r\n"
    "If-Modified-Since: Thu, 05 Dec 2002 17:22:12 GMT\r\n"
    "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T31246"
    "1)\r\n"
    "Host: defaulthost\r\n"
    "Connection: Keep-Alive\r\n"
    "Cookie: sesessionid=0001UULRZPFLU5IBRNBVHWUUAFI\r\n"
    "\r\n";
    Then after running for a while, the browser jumps into another page and finds that the same jar file "posLookup.jar" is required. It issue another http request to server as:
    http_request
    "GET lib/posLookup.jar HTTP/1.1\r\n"
    "cookie: sesessionid=0001UULRZPFLU5IBRNBVHWUUAFI\r\n"
    "User-Agent: Java1.3.1_02\r\n"
    "Host: defaulthost\r\n"
    "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\r\n"
    "Connection: keep-alive\r\n"
    "\r\n";
    But this time the user agent becomes Java1.3.1_02 and the accept type becomes text/html instead of original zip format. After this, I check the IE temporary file and found that the posLookup.jar is having a type of "HTML Document" instead of "Executable jar file".
    Does anyone know whether this is a bug of the Internet Explorer or it is bug of the Java Plugin?
    Appreciate any opinions or comments.
    Thanks

  • Which jar file to include for oracle.jdeveloper.webservices.runtime.Wrapped

    I am trying to make a Web Service client on my jakarta tomcat server....
    I used JDeveloper for generating my client .java file but i dont know which jar to include for oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.
    Somebody pls tell me which jar file i need to copy for this thing to run successfully .... thx

    Hi,
    After compatibility problems between stub generated with JDeveloper 10.1.3 and Oracle Application Server 10g (9.0.4), i decide to downgrade the project to JDeveloper 10.1.2, then more problems... the wsdl wich JDeveloper 10.1.3 accept perfectlly was not so well interpreted by JDev 10.1.2, and i have to do some adjustments on wsdl, then the code generated didn´t format well the soap message (namespaces).....and i made my self some code at the stub class....uffff.
    Now I have the java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub when the application run´s at the Application Server, and yes i include the jdev-rt.jar (included on 'JDeveloper Runtime' library)
    Any clues (changing the technology is not an option ...for now)?
    Thank´s

  • What is the .jar file or library for oracle.iam.identity.rolemgmt.api

    Hi Experts,
    I am using 11.1.1.6.0 version of Jdev.
    I need to use oracle.iam.identity.rolemgmt.api.RoleManager API in my application, but i am not able to find out the library or the jar file required.
    Somebody help me in adding the required libraries please.
    Thanks
    Gopi

    Hi Nishith,
    I am a new joinee.
    Not able to locate OIM_HOME. If you don't mind please give me the detailed steps to locate OIM_HOME.
    Thanks
    Gopi

  • After LOADing .jar file in to the oracle database  some classes r invalid

    Hi I have a .jar file to load it into the oracle database 11g.
    I use load java to load the .jar file.... I dont mention any resolver so I assume that all the .class files inside .jar are loaded as the schema user objects . Eg: if my schema is SCOTT they are loaded as SCOTT objects .. correct me if iam wrong because i see these lines on a site
    Many Java classes contain references to other classes, which is the essence of reusing code. A conventional Java virtual machine searches for classes, ZIP, and JAR files within the directories specified in the CLASSPATH. In contrast, the Oracle Java virtual machine searches database schemas for class objects. With Oracle, you load all Java classes within the database, so you might need to specify where to find the dependent classes for your Java class within the database.
    All classes loaded within the database are referred to as class schema objects and are loaded within certain schemas. All JVM classes, such as java.lang., are loaded within PUBLIC. If your classes depend upon other classes you have defined, you will probably load them all within your own schema. For example, if your schema is SCOTT, the database resolver (the database replacement for CLASSPATH) searches the SCOTT schema before PUBLIC. The listing of schemas to search is known as a resolver spec. Resolver specs are for each class, whereas in a classic Java virtual machine, CLASSPATH is global to all classes.*
    When locating and resolving the interclass dependencies for classes, the resolver marks each class as valid or invalid, depending on whether all interdependent classes are located. If the class that you load contains a reference to a class that is not found within the appropriate schemas, the class is listed as invalid. Unsuccessful resolution at runtime produces a "class not found" exception. Furthermore, runtime resolution can fail for lack of database resources if the tree of classes is very large.
    Now my question is that.... why are some of the classes becoming invalid... ?
    Edited by: learning_man on Mar 4, 2010 10:26 AM

    after loading class i see some additional characers prior to class name when i query user_objects and object_type='JAVA CLASS'

  • POST COMMIT FORM issue in Oracle Forms Personalization

    Hi All,
    I have following requirement in Oracle Forms Personalization :
    1. User updates a records( from the table xxtable) in the Form
    2. Following this, on saving the record, a stored procedure is called to pick those records which are updated/inserted and display. But its displaying still the old values, since commit has not occured.
    3. I have added new forms personalization using POST-DATABASE-COMMIT and POST-FORM-COMMIT. However, none of this trigger is firing.
    Used POST-UPDATE and POST-INSERT, but this trigger are not fetching the committed data but picking the old value.
    Please let me know, how this requirement can be achieved in Oracle forms personalization?
    Many Thanks in Advance.

    the difference in time is that you doing the following additional tasks in forms that you dont do in sqlplus:
    1. you are retrieving data into the fields of the form.
    2. creating the record.
    which is a network round-trip for each record. AFAIK.
    if its an option for you, I would create a global temporary table and then populate the temporary table with the required data. Then build a base table block based on the global temporary table. This way you can use the forms default functionality and its fast because you dont have to populate all the records on the form before you see the first record!
    :>)

  • DML issue in Oracle forms

    Hi,
    I have seen sometimes the queries which work in oracle sql*plus and Pl/Sql Developer,they dont work in Oracle forms, for example following query works in
    Pl/sql developer,but not in oracle forms
    select *
    from tablea
    where name in (variable)
    so if variable contains 'AA','BB'
    and records are there in table ,it will not fetch any records,whether variable is with quotes or not .........
    whenever there is a dml statement involving variables ..behavior is somewhat different ....so to get that done ....i normally transfer them to database procedure or function .....then it works fine ..
    Is it known bug or what.
    Regards,
    SS

    You can use a FORMS_DDL or EXECUTE IMMEDIATE
    select_dml := ' select * from tablea where name in ('||:variable||')';
    FORMS_DDL ( select_dml);if variable contains 'AA','BB'

  • How to use methods from a JAR file inside my springcontext (Oracle fusion 12c) class file?

    Dear Friends,
    I have a jar file, which has executed classes and methods in it. I want to make use of these methods inside my springcontext piece of code.
    Can someone please share an example  of how to write spingcontext code which is accessing classes/methods from  JAR files along with the any setup?
    Thanks,

    I have found the answer... as described in:
    http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
    the problem was that the properties are loaded with the getResource & getResourceAsStream methods and I didn't know that one. I thought that is was loaded through findClass because I saw the property files trying to be loaded through findClass.
    The truth is that it tries to load with the getRessources methods and if it fails tries with the findClass/loadClass.
    To Fix the problem, I have simply overriden the getRessourceAsStream to do my magic and that was it.
    Thanks

  • Distributing wlclient.jar file - Licensing issues?

    Hi,
    I am working on creating an Eclipse plug-in which will be using wlclient.jar file. This is a open source project and is not used for commercial purpose. May I know if there are any licensing restrictions to distribute wlclient.jar as part of the free eclipse plugin project?
    Thanks

    push

  • How do I save multiple files from database using oracle forms?

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    Hello,
    I have a form containing a block of records with files set up in a tabular layout. Each row has a checkbox to indicate if that row is selected. What I want to do is allow the user to save each file from checked rows to a directory of their choice on their machine when a button is pressed. Is it possible to do this in one command at the same time using WEBUTIL_FILE to save all the selected files to the same directory, or would I need to loop through each row and call the save dialog each time?
    Thanks.

    I'm not sure I follow. The SAVE_DIALOG is building the path including the filename where the files will be saved. If I have 5 different files I want to save at the same time and only show the dialog once, I will only have a path for one of the files. How could I loop through the rest afterwards?

Maybe you are looking for

  • HP Officejet Pro 8610 fax error message

    Good morning.  I have two Officejet Pro 8610s.  One is in my office running MS Office 7, the other is at home running Mac. To conserve power I have both printers set to turn off in the evenings.  Neither is being used as a fax machine and neither has

  • No thumbnails in timeline?

    All, I've been having some minor problems with my FCP5. Firstly, whereas I used to have in my timeline small thumbnails of the clips i've used, these are now replaced by a white box with a + symbol. Why is this? And does this actually mean anything i

  • Preferred oracle client installation...

    Hi i have installed oracle10g server and now i need to install oracle10g client and need to export it to NFS. So is it preferred to install both in the same machine or different machine. if not which will be the ideal path???? Can u please help me...

  • All my Album artwork has gone missing and I get error code (-609)??

    All my Album artwork has gone missing and I get error code (-609)??

  • Specify Summation levels in ALV thru coding

    My Alv is sub-totaling on the basis of say FIELD_A. I am getting orange colored row showing subtotal at each new FIELD_A. till this point no problem. When ALV is on my screen and I go to the following Menu path: Settings > Summation levels > Define D