Re-compile Oracle 11i Internet Expenses Java Classes
Due to business requirement, we are required to re-compile Oracle 11i Internet Expenses java classes. Fortunately all files are fine, except of one for "Expense Details" screen.
Under directory */comn/java/oracle/apps/ap/oie/server/, there is a JAVA class file DetailAMImpl.java. When I re-compile it, I got errors as below:
$> javac DetailAMImpl.java
DetailAMImpl.java:506: cannot resolve symbol
symbol : method copyFrom (oracle.apps.ap.oie.server.ExpenseReportLinesVORowImpl,oracle.jbo.domain.Number,oracle.jbo.domain.Number)
location: interface oracle.jbo.Row
row.copyFrom(expensereportlinesvorowimpl, new Number(-10), expensereportlinesvorowimpl.getDistributionLineNumber());
^
DetailAMImpl.java:508: cannot resolve symbol
symbol : method setReportLineId (oracle.jbo.domain.Number)
location: interface oracle.jbo.Row
row.setReportLineId(expensereportlinesvorowimpl.getReportLineId().multiply(-1));
^
DetailAMImpl.java:512: cannot resolve symbol
symbol : method getReportLineId ()
location: interface oracle.jbo.Row
expenseallocationsvoimpl.duplicateDistributionsByLine(expensereportlinesvorowimpl.getReportLineId(), row.getReportLineId());
^
DetailAMImpl.java:525: cannot resolve symbol
symbol : method bIsEmpty ()
location: interface oracle.jbo.Row
if(row.bIsEmpty())
^
4 errors
$>
It seems I am missing one Java class file that contains View object "ROW". Could you please advise me what is the missing file, and where can I get it?
Many Thanks.
Hi,
I suggest to ask this question on one of the Oracle Applications forums, or better, address this issue with customer support at metalink.oracle.com
Frank
Similar Messages
-
How to return Values from Oracle Object Type to Java Class Object
Hello,
i have created an Oracle Object Types in the Database. Then i created Java classes with "jpub" of these types. Here is an example of the type.
CREATE OR REPLACE TYPE person_type AS OBJECT
ID NUMBER,
vorname VARCHAR2(30),
nachname VARCHAR2(30),
geburtstag DATE,
CONSTRUCTOR FUNCTION person_type RETURN SELF AS RESULT,
CONSTRUCTOR FUNCTION person_type(p_id NUMBER) RETURN SELF AS RESULT,
CONSTRUCTOR FUNCTION person_type(p_vorname VARCHAR2,
p_nachname VARCHAR2,
p_geburtstag DATE) RETURN SELF AS RESULT,
MEMBER FUNCTION object_exists(p_id NUMBER) RETURN BOOLEAN,
MEMBER PROCEDURE load_object(p_id NUMBER),
MEMBER PROCEDURE save_object,
MEMBER PROCEDURE insert_object,
MEMBER PROCEDURE update_object,
MEMBER PROCEDURE delete_object
MEMBER PROCEDURE load_object(p_id NUMBER) IS
BEGIN
SELECT p.id, p.vorname, p.nachname, p.geburtstag
INTO SELF.ID, SELF.vorname, self.nachname, SELF.geburtstag
FROM person p
WHERE p.id = p_id;
END;
My problem is, that if i use the member function "load_object" from my java app it doesnt return the selected values to the java class and i dont know why. I use the java class like this:
PersonObjectType p = new PersonObjectType();
p.load_object(4);
There is a reocrd in the database with id = 4 and the function will execute successful. But if i try to use "p.getVorname()" i always get "NULL". Can someone tell me how to do that?
Thanks a lot.
Edited by: NTbc on 13.07.2010 15:36
Edited by: NTbc on 13.07.2010 15:36CallableStatement =
"DECLARE
a person_type;
BEGIN
a.load_object(4);
? := a;
END;"
And register as an out parameter.
Edited by: michael76 on 14.07.2010 05:01 -
Compiler ignores changes in a java class
Hi,
I made changes to the java class code, compiles correctly and not execute this new java code. The new code is ignored for the jdeveloper. I tried with several version like jdk1.4.2_06, jdk1.4.2_12,jdk1.4.2_13,jdk1.4.2_17. I need to work with 1.4.2.
Thanks in advance.Hi,
too many missing information make it hard to give any useful answer to this
- which version of JDeveloper
- what is the java code you compile
- in which context do you execute the code ?
Frank -
11i Internet Expenses Second Gen - Anyone installed yet???
My firm is in the process of completing our 11i
Financials and HRMS implementation, including iExpenses. We
expect to go live 12/1/01.
I have been reading about iExpenses Second Gen, and some of the
features would be extremely useful to us.
Has anyone installed this, or upgraded to it?
What has been your experience?
Thanks in advance,
RichardI'm looking for any information regarding iExpenses. What
resources are available that can provide me with any information? -
I just reinstalled Oracle9i with patch, because I wasn't able to create spatial index (that's the short explanation for reinstalling oracle).
ERROR: Critical Java class not found: oracle.sdoapi.util.SDODimElement
ERROR: Critical Java class not found: oracle.sdoapi.adapter.SDOGeometry
ERROR: Critical Java class not found: oracle.sdoapi.adapter.GeometryAdapter
How to fix these errors?
many thanks!
RebeccaSiva,
I got the error when I tried to create a project connecting to Oracle Spatial with MicroStation GeoGraphics. Here's the entire message I got:
ERROR: Critical Java class not found: oracle.sdoapi.util.SDODimElement
ERROR: Critical Java class not found: oracle.sdoapi.adapter.SDOGeometry
ERROR: Critical Java class not found:
oracle.sdoapi.adapter.GeometryAdapter
Current Classpath
C:\Program Files\Bentley\Program\MicroStation\jmdl\lib\rt.jar
C:\Program Files\Bentley\Program\MicroStation\jmdl\lib\i18n.jar
C:\Program Files\Bentley\Program\MicroStation\jmdl\lib\sunrsasign.jar
C:\Program Files\Bentley\Program\MicroStation\jmdl\classes
C:\Program Files\Bentley\Program\MicroStation\jmdl\lib\jmdlsdk.jar
C:\Program Files\Bentley\Program\MicroStation\jmdl\lib\swingall.jar <<<
not found >>>
C:\Program Files\Bentley\Program\MicroStation\jmdl\lib\bentley.jar
C:\Program Files\Bentley\Program\MicroStation\jmdl\lib\bentleyx.jar
C:\Program Files\Bentley\Program\MicroStation\jmdl\lib\xml4j.jar <<< not
found >>>
C:\Program Files\Bentley\Program\MicroStation\jmdl\
C:\Program Files\Bentley\Program\GeoGraphics\jmdl\lib\bentleygeo.jar
C:\Program Files\Bentley\Program\GeoGraphics\jmdl\
C:\Program Files\Bentley\program\GeoGraphics\jmdl\lib\sdodgn.jar
C:\oracle9\ora92\sdoapi\sdoapi.zip
C:\oracle9\ora92\jdbc\lib\classes12.zip
C:\oracle9\ora92\lib\xmlparserv2.jar
C:\oracle9\ora92\jdbc\lib\nls_charset12.zip
C:\Program Files\Bentley\Program\GeoGraphics\jmdl\lib\spatialviewer.jar
I found the sdoapi.zip, but it doesn't have the three java classes in it. Can I download the java classes somewhere and place it back to that directory?
thanks again!
Rebecca -
Can we run a oracle report 6i from java class ? Is there a JAVA API available for this ? I tried using "ar60run" thro getRuntime().exec java API, but its giving a core dump.. any suggestions ?
You don't need to extend from Frame if you're creating an Applet. The Applet Class is a Container so you can anything you can add to a Frame to an Applet. With an Applet you must call either init(), start() or paint(Graphics g). There is a really good description of how to create your first Applet in the Java Tutorial. It also give a demo of how to set up a web page to contain your applet and how to use the appletviewer.
http://java.sun.com/docs/books/tutorial/getStarted/applet/index.html
Basically what you need to do is:
import java.applet.Applet;
import java.awt.*;
public class MyApplet extends Applet {
public void init() {
setSize(500,500);
// Add Components, Listeners, etc...
Button b = new Button("MyButton");
add(b); -
Custtomisation of Internet Expense module (11.5.9)
Hi,
I want to customise a jsp page to add a drop down box in oracle apps internet expense module.
I tried to find out the exact region where I have to add thhe attribute using self service web manager but could not able to find out theh exisstitng page.
The link of the page is
http://oralinux01.unilog.co.uk:8110/OA_HTML/OA.jsp?akRegionCode=OIEMAINPAGE&akRegionApplicationId=200&CurrentPage=OIEGeneralInformation&retainAM=N&startFrom=ActiveReports&dbc=oralinux01_vis1159&transactionid=065BBBE2F8B55DA4
I want a direction hohw tot go abt it...
Thanks in advance
Regards
DebjaniInserting records in ra_interface_lines_all and running autoinvoice to create invoices will be the best way to load the invoices. Depending on your system option setup for require salesrep, you may also need to insert records in ra_interface_salescedits_all.
Thanks,
Anil -
Error while compiling java class (ora-29535 source requires recompilation)
Hello. I`m new with oracle and i`m having a problem with java classes. Few days ago i loaded java classes (loadjava) from jar file(biojava3-structure-3.0.2.jar) and compiled ( everything compiled with status valid). Now i`m writing my own class and i can`t import classes from biojava3. I`m getting error:
Projekt:7: cannot access org.biojava.bio.structure.Atom
bad class file: null
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import org.biojava.bio.structure.Atom;
I have tryed to change jdk version in netbeans from 1.7 to 1.6. I created java class in sql plus That still not resolved my problem.
Please help me.consider posting in Java forum instead of Database forum
https://forums.oracle.com/forums/category.jspa?categoryID=285 -
Compiling java classes from JDeveloper
Hi guys... perhaps this thred need to be created in JDeveloper fourm, it so please let me know.
I generated the classes from a web service which complie without errors and exedcute correctly. When trying to compile the main stub in Oracle database, I get an error "CONNOT RESOLVE SYMBOL" reviewing the java class, I see that extends the wrapper generated by Jdev. So I try to complie the extendable class, after trying to generate and compile it in the database, I get the error: "class$ is reserved for internal use" The code has the next line:
static java.lang.Class class$(java.lang.String param1)
Is this error launched from the oracle database? My guess is that maybe Im missing some library or something and thats why I can create the such Java Name procedures. But I will like if anyone could guide me through this exception.
Thanks
JPDo you have .jar (or the .class) files created after the compile from JDeveloper?
If you do, you can load all of them using the command line utility loadjava:
$ loadjava
loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grants] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-resolver resolver] [-schema schema] [-synonym] [-thin] [-tableschema schema] [-user user/password@database] [-verbose] classes..jars..resources..properties...
$ -
Run a java class in Oracle db to connect to Sybase
Hi All, I'm looking for a way to connect to Sybase database at no-license-cost (meaning Oracle Gateway or similar 3rd party products), first coming idea was JDBC, I know I can run a java class in Oracle, the simple idea is to write a java class which connects to Sybase via JDBC thin driver and return the resultset of given query in a java class, the resultset will be presented in Oracle Apex framework. Does anyone know if this can be done or not, and how? Any howto articles are welcomed.
HenryHenry:
To connect to Sysbase or MsSQL Server you could use jTDS open source driver.
http://sourceforge.net/projects/jtds/
upload above driver (jar file) using loadjava, and grants the port connection using dbms_java.grant_permission procedure.
Because jTDS is pure java driver (mode 4) is possible to use directly inside the RDBMS.
Best regards, Marcelo.
PD: Latest jtds driver is compiled against 1.6 sources, but oldest version will work with 1.5 for 11g. -
Unable to compile the java class in the SQL PLUS
Hi Team,
I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
What to do for this for your reference ,Attaching the java class file.
“ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
Was expecting one of:
----------------------Here is the Java class Code.....................
create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
as
import java.math.BigDecimal;
import java.util.zip.Deflater;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import oracle.sql.*;
import oracle.jdbc.*;
import java.sql.*;
import java.io.*;
public class XXVM_ZipFileUtil_Ela
public static oracle.sql.BLOB getZipFile(
oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
int fileBufferSize, int zipFileBufferSize,
boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
String zipPathAndFileName = new String(
new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
try
Connection conn = DriverManager.getConnection("jdbc:default:connection:");
oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
String[] fileNamesString = (String[])fileNames.getArray();
BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
for (int i = 0; i < fileNamesString.length; i++) {
System.out.println(i);
zipOut.putNextEntry(new ZipEntry(fileNamesString));
InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
zipOut.closeEntry();
zipOut.close();
byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
int byteCount = zipIn.read(zipFileContents);
zipIn.close();
byte returnFileContents[] = new byte[byteCount];
System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
String returnFileContentsString = new String(returnFileContents);
if (deleteZipFile)
boolean deletedFile = (new File(zipPathAndFileName)).delete();
oracle.sql.BLOB returnFileContentsBLOB = null;
returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
//OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
tempBlobWriter.write(returnFileContents);
tempBlobWriter.flush();
tempBlobWriter.close();
returnFileContentsBLOB.close();
return returnFileContentsBLOB;
catch (IllegalArgumentException ex) {
ex.printStackTrace();
throw ex;
catch (FileNotFoundException ex) {
ex.printStackTrace();
throw ex;
catch (IOException ex)
ex.printStackTrace();
throw ex;
catch (java.sql.SQLException ex)
ex.printStackTrace();
throw ex;860411 wrote:
Hi Team,
I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
What to do for this for your reference ,Attaching the java class file.
“ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
Was expecting one of:
I believe the error message is clear and self-explanatory.
----------------------Here is the Java class Code.....................
create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
as
import java.math.BigDecimal;
import java.util.zip.Deflater;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import oracle.sql.*;
import oracle.jdbc.*;
import java.sql.*;
import java.io.*;
public class XXVM_ZipFileUtil_Ela
public static oracle.sql.BLOB getZipFile(
oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
int fileBufferSize, int zipFileBufferSize,
boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
String zipPathAndFileName = new String(
new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
try
Connection conn = DriverManager.getConnection("jdbc:default:connection:");
oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
String[] fileNamesString = (String[])fileNames.getArray();
BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
for (int i = 0; i < fileNamesString.length; i++) {
System.out.println(i);
zipOut.putNextEntry(new ZipEntry(fileNamesString));
InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
zipOut.closeEntry();
zipOut.close();
byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
int byteCount = zipIn.read(zipFileContents);
zipIn.close();
byte returnFileContents[] = new byte[byteCount];
System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
String returnFileContentsString = new String(returnFileContents);
if (deleteZipFile)
boolean deletedFile = (new File(zipPathAndFileName)).delete();
oracle.sql.BLOB returnFileContentsBLOB = null;
returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
//OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
tempBlobWriter.write(returnFileContents);
tempBlobWriter.flush();
tempBlobWriter.close();
returnFileContentsBLOB.close();
return returnFileContentsBLOB;
catch (IllegalArgumentException ex) {
ex.printStackTrace();
throw ex;
catch (FileNotFoundException ex) {
ex.printStackTrace();
throw ex;
catch (IOException ex)
ex.printStackTrace();
throw ex;
catch (java.sql.SQLException ex)
ex.printStackTrace();
throw ex;
The last two lines above should be
/Srini -
Suffering an complie error when trying to compile java class in EBS11i
Hi,
When I trying to compile java classes with which imported the HttpServletResponse class, will get the follow error message:
package javax.servlet does not exist
cannot resolve symbol
symbol : class HttpServletResponse
It seems the javax.servlet package is not included in the classpath. But I checked the $CLASSPATH, it seems no problem.
echo $CLASSPATH
/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/charsets.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/u02/applvis/viscomn/java/appsborg2.zip:/u02/applvis/visora/8.0.6/forms60/java:/u02/applvis/viscomn/java
Does anyone know the reason?
environment: ebs 11i
Thanks&Regards,
Xiaofengresolved this issue.
1. Edit $APPL_TOP/admin/adovars.env file -
Add the following jar files to the AF_CLASSPATH line -
Full path of /...../iAS/Apache/Jsdk/lib/jsdk.jar
Full path of /...../iAS/Apache/Jserv/libexec/ApacheJServ.jar
2. Bounce the concurrent manager in order to have the changes take effect. -
Java class in Oracle 8i.
Hi All,
I have tried to create a java class in Oracle8i but it throws some errors like:
NAMED "MyTime"
ERROR at line 3:
ORA-29516: Aurora assertion failure: Assertion failure at eox.c:187
Uncaught exception Root of all Java exceptions:
The program is :
CREATE OR REPLACE
JAVA SOURCE
NAMED "MyTime"
AS
import java.lang.String;
import java.sql.Timestamp;
public class MyTime
public static String getTime()
return (new Timestamp(System.currentTimeMillis())).toString();
Please give a solution ASAP.
If anybody knows give me more information about how the classes are created in the database and how itz get compiled.
Thanks in advance.
RajeshAnurag,
Here's an example of one I wrote which is VERY simple. Sometimes it helps to crawl before tou walk. You can execute the following using SQL*Plus:
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "RuntimeExample" AS public class RuntimeExample {
public static String runNotepad() {
String returnValue = null;
Runtime r = Runtime.getRuntime();
long totalMemory = r.totalMemory();
try {
Process p = r.exec("notepad.exe");
returnValue = p.toString();
} catch (Exception e) {
System.out.println("Exception calling Runtime.exec()->" + e);
/* You can get creative here and
1) Use p.waitFor() to block while the process is running,
2) Send the command to be executed as a parameter to the method, etc. */
return returnValue;
Notice that I return the string equivalent of Process p. This tells you if a process was really started.
Hope this helps,
-Dan
http://www.compuware.com/products/numega/dbpartner/dbpordebug.htm
Debug PL/SQL and Java in the Oracle Database -
Hi,
I created an Java program to import attachments from a exchange server mailbox using POP3S .It works fine when run as a java application.
But when i put this inside Oracle11g using load java and while executing it gives an error at
Multipart mp = (Multipart) message.getContent();
Error:
Content-Type: multipart/mixed;
boundary="_002_A0C2E09A..................................."
java.lang.ClassCastException
at Newmail.mailPOP3(Newmail:71)
Could someone explain why I am getting this error? What can I do to resolve this error?Any help would be much appreciated.
Regards,
JosephHai Matt,
The actual class i am tested as follows,
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Store;
import javax.mail.Part;
import javax.mail.Multipart;
import javax.mail.internet.MimeMultipart;
import javax.mail.internet.MimeMessage;
public class Newmail
public Newmail()
super();
public static int mailPOP3(String phost,
String pusername,
String ppassword)
Folder inbox =null;
Store store =null;
int result = 1;
try
String host=phost;
final String username=pusername;
final String password=ppassword;
System.out.println("Authenticator");
Authenticator auth=new Authenticator()
protected PasswordAuthentication getPasswordAuthentication()
return new PasswordAuthentication(username, password);
System.out.println("Certificate");
String filename="D:\\Certi\\jssecacerts";
String password2 = "changeit";
System.setProperty("javax.net.ssl.trustStore",filename);
System.setProperty("javax.net.ssl.trustStorePassword",password2);
Properties props = System.getProperties();
System.out.println("host-----"+props);
props.setProperty("mail.imaps.port", "993");
props.setProperty("mail.imaps.starttls.enable","true");
props.setProperty("mail.imaps.ssl.trust", "*");
Session session = Session.getInstance(props,auth);
session.setDebug(true);
store = session.getStore("imaps");
System.out.println("store------"+store);
store.connect(host,username,password);
System.out.println("Connected...");
inbox = store.getDefaultFolder().getFolder("INBOX");
inbox.open(Folder.READ_ONLY);
Message[] msgs = inbox.getMessages();
System.out.println("msgs.length-----"+msgs.length);
result = 0;
int no_of_messages = msgs.length;
for ( int i=0; i < no_of_messages; i++)
System.out.println("msgs.count-----"+i);
System.out.println("Attachment....>"+msgs.getContentType());
// Casting message to multipart
*Multipart mp = (Multipart)msgs[i].getContent();* System.out.println("Casting Success" + mp.getContentType());
catch(Exception e)
e.printStackTrace();
finally
try
if(inbox!=null)
inbox.close(false);
if(store!=null)
store.close();
return result;
catch(Exception e)
e.printStackTrace();
return result;
In this class when running from oracle using a procedure "Multipart mp = (Multipart)msgs[i].getContent();" throws exception..
Error:
Content-Type: multipart/mixed;
boundary="_002_A0C2E09A..................................."
java.lang.ClassCastException
at Newmail.mailPOP3(Newmail:71)
Thanks & Regards
Joseph -
Java class in oracle apps forms
java class in oracle apps forms
We developed a java class and its running perfectly on local machine (Over the web through java applet ) But when we deployed it in apps and run with the client machine its not running .so please suggest where we put our java class files and how to run it in apps? Is there any API's .
regards,
krishnaHi user;
What is your Client Operayting system, what is your browser?
This error happens for one client or for all? Did you try to login from one other machine(for instance XP) and dif. browser version?
Please check below which could be helpful for your issue:
FRM-92101:
Recommended Browsers for Oracle E-Business Suite Release 12 [ID 389422.1]
FRM-92101: There Was a Failure in the Forms Server During Startup After Fresh R12 Installation [ID 429627.1]
R12 fresh install FORMS DO NOT LAUNCH - FRM-92101/500 [ID 427714.1]
FRM-92101: Forms Server oracle.forms.net.ConnectionException: Forms session <1> failed during startup: no response from runtime process [ID 880088.1]
Also check:
http://onlineappsdba.com/index.php/2009/06/15/frm-92101-with-internet-explorer-8-how-to-uninstall-ie8/
Re: R12 database and JRE Issue
Regard
Helios
Maybe you are looking for
-
I cannot update my Windows 7 desktop with itunes 10.5? .....
-
What are the steps for burning HD footage to a DVD?
Up until now I have been shooting in SD and burning DVDs, using the Share feature in FCP X. Now I am wishing to do the same thing with HD footage. Am I correct in understanding I must first export to Compressor 4? I have been attempting to do that, b
-
Designer 6i Release 2 makes Oracle 8.1.7 installation impossible!!!
Hi, Designer 6i Release 2 makes Oracle 8.1.7 installation impossibleon Windows 2000 Server!!! After I uninstalled Designer 6i Rel2 through the Oracle Installer and then manually deleted all the left directories and Oracle registry entries I found HKE
-
Hi. i have develop a flash application with heavy actionscript coding. the application work ok in IE , but not showing up in Firefox. i wonder if there a limit of actionsript coding that flash can take?
-
Media Manager Flex View Library upload crash
The Flex View library upload option crashes whenever I try to upload anything. I have Mac OS X Lion and am trying to sync my iPhoto library Which is 20 Gb ie well below the 32Gb limit. As soon as the upload starts the program quits unexpectedly.