Java package to parse email
Hi,
I was wondering if anyone knows of a java package which does the following. Monitors an email account (could be through SMTP) and downloads email based on certain rules you can mention in the config file. For instance, if the the email comes from address [email protected] then download the attachment B.pdf to a certain folder.
harsh884 wrote:
May be you can use Apache common-logging.jar its API for getting logs....try the link below
http://commons.apache.org/logging/guide.html
Was that meant to be posted in this thread?
Similar Messages
-
NoClassDefFound error when using custom Java package in scripting QPAC
Hi,
I compiled a little Java-package (.jar), which contains a class that uses
com.adobe.workflow.datatype.form.FormDataTypeInstanceImpl.
I put my library in the lib folder of JBoss (...\server\all\lib).
Then I'm was trying to invoke my custom class in the scripting QPAC. But I'm constantly getting the error message
NoClassDefFound com\adobe\workflow\datatype\form\FormDataTypeInstanceImpl. I already put
adobe-wkf.jar (and various others) in the lib folder of JBoss. Without ever succeeding. Unfortunately.
I'm going mad about this.
Is there a way to address a custom package in the scripting QPAC, which uses
FormDataTypeInstanceImpl?
SteveRemoving the LiceCycle jars from the lib folder did not work. I still get the same error message.
What I wanted to do is provide some basic utilities, without having to spend a lot of time designing QPAC user interfaces.
My utility class contains methods like this one:
@param
pFormData
@return
@throws
ParserConfigurationException
@throws
SAXException
@throws
IOException
public static
org.w3c.dom.Document formToXml
FormDataTypeInstanceImpl pFormData
throws
ParserConfigurationException, SAXException, IOException
byte
data = pFormData.getXFAData
InputStream objXMLInputStream =
new
ByteArrayInputStream
data
// create new Document object
DocumentBuilderFactory objFactory = DocumentBuilderFactory.newInstance
DocumentBuilder objBuilder = objFactory.newDocumentBuilder
org.w3c.dom.Document objDocument = objBuilder.parse
objXMLInputStream
return
objDocument;
Even without ever invoking the aforementioned method, I get the error
NoClassDefFound: FormDataTypeInstanceImpl. Which is pretty weird.
Do I have to write my own classloader?
Steve -
The java package netscape.ldap
hi :-)
can someonne tell me, how to get the java package netscape.ldap for free in the web or somewhere else.
i need to bind it in my java programm.
please help me:-(
best regards
P.S.: you can also mail me the package, if you have the chance
mail: [email protected]thankx for the help..
but i already visited this site.....and found nothing... -
I purchased 2 packages of gems for skylanders and only received 1 package. Got email receipts and tried to report problem with link in email on my ipad2 and it keeps coming up with to many https redirects. Can anyone help? Just want my gems :).
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
BPEL 11g fault policy action java class not sending email
Hi All,
I am trying to attach fault policy to my bpel process. The fault conditions are working fine but the email part from the action class is not able to send email. The code execute properly , i can't see any error message in the log but I cant access the email in my inbox.
I am able to send email from using email bpel activity and also test work flow notification from em console.
I have used both the java options for sending email like javax.mail and oracle.sdp.messaging .
JAVA CODE FOR EMAIL javax.mail
public String handleFault(IFaultRecoveryContext iFaultRecoveryContext){
//Print Fault Meta Data to Console
System.out.println("****************Fault Metadata********************************");
System.out.println("Fault policy id: " + iFaultRecoveryContext.getPolicyId());
System.out.println("Fault type: " + iFaultRecoveryContext.getType());
System.out.println("Partnerlink: " + iFaultRecoveryContext.getReferenceName());
System.out.println("Port type: " + iFaultRecoveryContext.getPortType());
System.out.println("**************************************************************");
//print all properties defined in the fault-policy file
System.out.println("Properties Set for the Fault");
//Print Fault Details to Console if it exists
System.out.println("****************Fault Details********************************");
// if(iFaultRecoveryContext instanceof BPELFaultRecoveryContextImpl)
BPELFaultRecoveryContextImpl bpelCtx = (BPELFaultRecoveryContextImpl)iFaultRecoveryContext;
System.out.println("Fault: " + bpelCtx.getFault());
System.out.println("Activity: " + bpelCtx.getActivityName());
System.out.println("Composite Instance: " + bpelCtx.getCompositeInstanceId());
System.out.println("Composite Name: " + bpelCtx.getCompositeName());
System.out.println("***********************************************************");
try {
bpelCtx.addAuditTrailEntry("Sending Email...");
Map props = iFaultRecoveryContext.getProperties();
if (props != null && props.size() > 0) {
setFrom(getParameterValue((ArrayList)props.get("from")));
setTo(getParameterValue((ArrayList)props.get("to")));
setSubject(getParameterValue((ArrayList)props.get("subject")) + bpelCtx.getTitle());
setText(getParameterValue((ArrayList)props.get("text")) + "\n" + "BPEL Process Instance: " + bpelCtx.getInstanceId() + " needs intervention to recover from a technical exception: " + bpelCtx.getFault().getMessage() + ".\n" + "Check the Activities tab in the BPEL Management Console in order to resolve the error as soon as possible.\n" + "This message was automatically generated, please do not reply to it.");
setHost(getParameterValue((ArrayList)props.get("host")));
setPort(getParameterValue((ArrayList)props.get("port")));
bpelCtx.addAuditTrailEntry("to Email getFrom..."+getFrom());
bpelCtx.addAuditTrailEntry("to Email getTo..."+getTo());
bpelCtx.addAuditTrailEntry("to Email getText..."+getText());
bpelCtx.addAuditTrailEntry("to Email getHost..."+getHost());
bpelCtx.addAuditTrailEntry("to Email getPort..."+getPort());
Session mailSession = Session.getDefaultInstance(properties);
Message simpleMessage = new MimeMessage(mailSession);
bpelCtx.addAuditTrailEntry("to Email toAddresses2...");
InternetAddress fromAddress = new InternetAddress(from);
bpelCtx.addAuditTrailEntry("to Email fromAddress..."+fromAddress);
simpleMessage.setFrom(fromAddress);
String[] toAddresses = to.split(";");
if (toAddresses != null && toAddresses.length > 0)
bpelCtx.addAuditTrailEntry("to Email toAddresses3...");
InternetAddress[] toInternetAddresses =new InternetAddress[toAddresses.length];
for (int i = 0; i < toAddresses.length; i++)
bpelCtx.addAuditTrailEntry("to Email toAddresses4444..."+ toAddresses);
toInternetAddresses[i] = new InternetAddress(toAddresses[i]);
bpelCtx.addAuditTrailEntry("to Email toInternetAddresses..."+ toInternetAddresses[i]);
simpleMessage.setRecipients(RecipientType.TO,toInternetAddresses);
simpleMessage.setSubject(subject);
simpleMessage.setText(text);
Transport.send(simpleMessage);
bpelCtx.addAuditTrailEntry("After Email...");
} catch (Exception e) {
bpelCtx.addAuditTrailEntry("fault Message:" + e.getMessage());
//Custom Code to Log Fault to File/DB/JMS or send Emails etc.
return "Manual";
private String getParameterValue(ArrayList parameterList) {
String value = null;
if (parameterList != null && parameterList.size() > 0)
value = (String)parameterList.get(0);
return value;
JAVA CODE FOR EMAIL oracle.sdp.messaging
private void sendMail(IFaultRecoveryContext iFaultRecoveryContext) {
BPELFaultRecoveryContextImpl bpelCtx = (BPELFaultRecoveryContextImpl)iFaultRecoveryContext;
bpelCtx.addAuditTrailEntry("In sendMail...");
Map<String, Object> params = new HashMap<String, Object>();
// params.put(key, value); // if optional parameters need to be specified.
MessagingClient messagingClient;
try {
bpelCtx.addAuditTrailEntry("In sendMail111...");
messagingClient =
MessagingClientFactory.createMessagingClient(params);
Message newMessage = MessagingFactory.createMessage();
// newMessage.setContent(createEventPayload(iFaultRecoveryContext),"text/plain");
newMessage.setContent("Component Name :"+bpelCtx.getComponentName()+ "\n Instacne Id :"+bpelCtx.getComponentInstanceId()+
"\n Composite Instance Id :"+bpelCtx.getCompositeInstanceId()+ "\n Composite Name :" bpelCtx.getCompositeName()
"\n Activity name :"+bpelCtx.getActivityName() + "\n Activity Id :" bpelCtx.getActivityId() "\n ECID :" bpelCtx.getECID()
"\n Reference Name :"+bpelCtx.getReferenceName()+ "\n Title :" bpelCtx.getTitle()
"\n Fault :" + bpelCtx.getFault()+ "\n Port Name :"+bpelCtx.getPortType(), "text/plain");
bpelCtx.addAuditTrailEntry("In sendMail222...");
Address sender = MessagingFactory.createAddress(getFrom());
bpelCtx.addAuditTrailEntry("In sendMail sender..."+sender.toString());
bpelCtx.addAuditTrailEntry("from Email..."+getFrom());
String recipientsStr[] = to.split(";");
bpelCtx.addAuditTrailEntry("to Email..."+getTo());
bpelCtx.addAuditTrailEntry("In sendMail333...");
Address[] recipients = MessagingFactory.createAddress(recipientsStr);
bpelCtx.addAuditTrailEntry("In sendMail444...");
newMessage.addSender(sender);
messagingClient.registerAccessPoint(MessagingFactory.createAccessPoint(sender));
newMessage.addAllRecipients(recipients);
bpelCtx.addAuditTrailEntry("In sendMail5555...");
newMessage.getMessageInfo().setSession(MessageSessionType.INBOUND_SESSION);
newMessage.setSubject(getSubject());
bpelCtx.addAuditTrailEntry("Subject..."+getSubject());
String messageId = "";
bpelCtx.addAuditTrailEntry("In sendMail666...");
synchronized (this) {
bpelCtx.addAuditTrailEntry("In sendMail777...");
messageId = messagingClient.send(newMessage);
bpelCtx.addAuditTrailEntry("In sendMail888...");
Status[] statuses = messagingClient.getStatus(messageId);
bpelCtx.addAuditTrailEntry("In sendMail999...");
} catch (MessagingException e) {
bpelCtx.addAuditTrailEntry("inside exception email fault Message:" + e.getMessage());
//e.printStackTrace();
MESSAGES FROM SOA SERVER OUT LOG after test the bpel process:
===========================================
****************Fault?Metadata********************************
Fault?policy?id:?SimpleFaultPolicy
Fault?type:?bpel
Partnerlink:?Service1
Port?type:?{http://kacst.edu.sa/process/nstip/coPINotifyProcess}kacst_process_nstipCoPIMotifyProcess
Properties?Set?for?the?Fault
****************Fault?Details********************************
Fault:?com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{
summary=<summary>Message Router for nstip/nstip_Pro_CoPiNotificationProcess!1.0*soa_084da522-a825-4aa6-9d1c-ca1d50b4595b is not able to process messages. The composite state is set to "off". The composite can be turned "on" by using the administrative consoles.</summary>
,detail=<detail><exception>Message Router for nstip/nstip_Pro_CoPiNotificationProcess!1.0*soa_084da522-a825-4aa6-9d1c-ca1d50b4595b is not able to process messages. The composite state is set to "off". The composite can be turned "on" by using the administrative consoles.</exception>
</detail>
,code=<code>env:Server</code>}
Activity:?Invoke1
Composite?Instance:?740332
Composite?Name:?TestBPELFaultPolicy
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false
220 taisirsit.kacst.edu.sa ESMTP Sendmail 8.14.4+Sun/8.14.4; Fri, 12 Oct 2012 13:00:45 +0300 (AST)
DEBUG SMTP: connected to host "localhost", port: 25
EHLO taisirsit.kacst.edu.sa
250-taisirsit.kacst.edu.sa Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "EXPN", arg ""
DEBUG SMTP: Found extension "VERB", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "DELIVERBY", arg ""
DEBUG SMTP: Found extension "HELP", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<[email protected]>
250 2.1.0 <[email protected]>... Sender ok
RCPT TO:<[email protected]>
250 2.1.5 <[email protected]>... Recipient ok
DEBUG SMTP: Verified Addresses
DEBUG SMTP: [email protected]
DATA
354 Enter mail, end with "." on a line by itself
From: [email protected]
To: [email protected]
Message-ID: <[email protected].sa>
Subject: SOA EXCEPTIONInstance #890381 of BPELProcess1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Testing Email From Fault
BPEL Process Instance: 890381 needs intervention to recover from a technical exception: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{
summary=<summary>Message Router for nstip/nstip_Pro_CoPiNotificationProcess!1.0*soa_084da522-a825-4aa6-9d1c-ca1d50b4595b is not able to process messages. The composite state is set to "off". The composite can be turned "on" by using the administrative consoles.</summary>
,detail=<detail><exception>Message Router for nstip/nstip_Pro_CoPiNotificationProcess!1.0*soa_084da522-a825-4aa6-9d1c-ca1d50b4595b is not able to process messages. The composite state is set to "off". The composite can be turned "on" by using the administrative consoles.</exception>
</detail>
,code=<code>env:Server</code>}
Check the Activities tab in the BPEL Management Console in order to resolve the error as soon as possible.
This message was automatically generated, please do not reply to it.
250 2.0.0 q9CA0j30012424 Message accepted for delivery
QUIT
221 2.0.0 taisirsit.kacst.edu.sa closing connection
Details from Instance of BPEL PROCESS :
Started invocation of operation "process" on partner "Service1".
Oct 12, 2012 10:00:45 AM [FAULT RECOVERY] Invoked handleBPELFault on custom java action class "com.kacst.fault.CustomFaultHandler".
Oct 12, 2012 10:00:45 AM Sending Email...
Oct 12, 2012 10:00:45 AM to Email [email protected]
Oct 12, 2012 10:00:45 AM to Email [email protected]
Oct 12, 2012 10:00:45 AM to Email getText...Testing Email From Fault BPEL Process Instance: 890381 needs intervention to recover from a technical exception: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault} messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage} parts: {{ summary=<summary>Message Router for nstip/nstip_Pro_CoPiNotificationProcess!1.0*soa_084da522-a825-4aa6-9d1c-ca1d50b4595b is not able to process messages. The composite state is set to "off". The composite can be turned "on" by using the administrative consoles.</summary> ,detail=<detail><exception>Message Router for nstip/nstip_Pro_CoPiNotificationProcess!1.0*soa_084da522-a825-4aa6-9d1c-ca1d50b4595b is not able to process messages. The composite state is set to "off". The composite can be turned "on" by using the administrative consoles.</exception> </detail> ,code=<code>env:Server</code>} . Check the Activities tab in the BPEL Management Console in order to resolve the error as soon as possible. This message was automatically generated, please do not reply to it.
Oct 12, 2012 10:00:45 AM to Email getHost...smtp.kacst.edu.sa
Oct 12, 2012 10:00:45 AM to Email getPort...25
Oct 12, 2012 10:00:45 AM to Email toAddresses2...
Oct 12, 2012 10:00:45 AM to Email [email protected]
Oct 12, 2012 10:00:45 AM to Email toAddresses3...
Oct 12, 2012 10:00:45 AM to Email [email protected]
Oct 12, 2012 10:00:45 AM to Email [email protected]
Oct 12, 2012 10:00:45 AM After Email...
Oct 12, 2012 10:00:45 AM [FAULT RECOVERY] Marked Invoke activity as "pending manual recovery".
Oct 12, 2012 10:00:45 AM Faulted while invoking operation "process" on provider "Service1".
Please suggest.
ThanksHi,
I got the solution. our email server is sending email to the mail accounts those are in the same domain but for different domains its not able to send the email.
you can try with the email those are created on the same email server.
Thanks
Tuku -
I hope this is an appropriate forum for this query.
I want to be able to access a user-created Java package in JSP.
I have this code:
<%@page import="TPClass.*" %>
<%
xxx = TPClass
session.setAttribute("response",xxx.GetTPResponse());
%>
The error display points to TPClass in the import statement with the message "TPClass not found".
TPClass files are in the same location as the other project files.
I have creatyed and compiled the TPClass package.
Is there more I need to do?
BrentonI think you are very new to java....
anyway
<%@page import="class name with full qualified package name"%>
like
<%@page import="com.x1.x2.TPClass"%>
<%
TPClass cls =new TPClass();
//then do whatever you want...
%>
hope u understand now..... -
i Have two problems one is i am designing a website which consists of a form. I am trying to write the Connectiviy and all other insert statements in seperate java packages and include them in JSP files.
i Have two java packages one is DBUtil(having two java files both dealing with connectovity) and another one is StudentUtIl which has java files that open the connections with database connection and insert data into DB., I am having a big Problem here. How can i call the function in the other java package in the files in this java package. i have openDB()and Close() in the other Db and i want to call these functions in JAVA classes in the other package. How to include a package. Both these packages are in the same File system mounted on a Local directoryThank you for the reply. I am giving the code i have given the full class name . and now it is giving the following error :
Cannot reference a non-static method connectDB() in a static context.
I am also giving the code. Please do help me on this. i am a beginner in java.
import java.sql.*;
import java.util.*;
import DButil.*;
public class StudentManager {
/** Creates a new instance of StudentManager */
public StudentManager() {
Connection conn = null;
Statement cs = null;
public Vector getStudent(){
try{
dbutil.connectDB();
String Query = "Select St_Record, St_L_Name, St_F_Name, St_Major, St_Email_Address, St_SSN, Date, St_Company, St_Designation";
cs = conn.createStatement();
java.sql.ResultSet rs = cs.executeQuery(Query);
Vector Studentvector = new Vector();
while(rs.next()){
Studentinfo Student = new Studentinfo();
Student.setSt_Record(rs.getInt("St_Record"));
Student.setSt_L_Name(rs.getString("St_L_Name"));
Student.setSt_F_Name(rs.getString("St_F_Name"));
Student.setSt_Major(rs.getString("St_Major"));
Student.setSt_Email_Address(rs.getString("St_Email_Address"));
Student.setSt_Company(rs.getString("St_Company"));
Student.setSt_Designation(rs.getString("St_Designation"));
Student.setDate(rs.getInt("Date"));
Studentvector.add(Student);
if( cs != null)
cs.close();
if( conn != null && !conn.isClosed())
conn.close();
return Studentvector;
}catch(Exception ignore){
return null;
}finally {
dbutil.closeDB();
import java.sql.*;
import java.util.*;
public class dbutil {
/** Creates a new instance of dbutil */
public dbutil() {
Connection conn;
public void connectDB(){
conn = ConnectionManager.getConnection();
public void closeDB(){
try{
if(conn != null && !conn.isClosed())
conn.close();
}catch(Exception excep){
The main error is occuring at the following lines connectDB() and closeDB() in the class student manager. The class dbutil is in an another package.with an another file called connectionManager which establishes the connection with DB. The dbutil has the openconnection and close connection methods. I have not yet written the insert statements in StudentManager. PLease do Help me -
How to find classes in a java package
i am writing a java IDE. i want to extract all class names from a java package eg. java.lang (through coding). how can i do that.
Thanks in advanceFile file = new File("path to your jar file");
JarFile jf = new JarFile(file);
Enumeration e = jf.entries();
ZipEntry ze = null;
while(e.hasMoreElements()){
ze = (ZipEntry) e.nextElement();
ze.toString(); // gives you the file name
you have to understand java.util.jar java.util.zip packages for working with jar/zip files.
Hope this helps -
Parsing email attachments using Javamail
Hi All,
I'm working on a multimedia application where I have to parse emails using Javamail.
Here is a problem that i'm facing.
When i'm receiving an attachment from icloud.com, i'm not able to get the filename whereas i'm able to get the fileSize and fileContent.
I'm using Part.getFileName() to get the file name. and Part.getFileSize() and Part.getInputStream() to get size and the content.
When i checked the attachment header, I could see the name encoded in ISO-8859-1.
--Boundary_(ID_kS5Ng+OB35IVBfC+scPoMA)
Content-id:[email protected]
Content-type:image/jpeg;
name*1*=utf-8"%20%32%33%30%32%32%30%31%33%37%32%35;
name*2*=%2E%6A%70%67
Content-transfer-encoding:BASE64
Content-disposition:inline;
filename*1*=utf-8"%20%32%33%30%32%32%%30%32%33%37%32%35
filename*2*=%2E%6A%70%67
In both the cases above, Part.getFileName() is returning null.
I set the parameter mail.mime.decodeparameters="true".Still it is not working.
It would be great if someone can suggest a solution for this.
Thanks
ShyamaJust adding to the problem description:
--Boundary_(ID_kzWHPgILjZtH2UtdriatGg)
Content-id: <[email protected]>
Content-type: image/jpeg; name*1*=ISO-8859-1''%32%2E%6A%70%67
Content-transfer-encoding: BASE64
Content-disposition: inline; filename*1*=ISO-8859-1''%32%2E%6A%70%67
This is the header which could see in another mail. -
How to import java package in form 10g
hello
i have make a java package but its not looking so far possible to include it in java import list, how i can import it in form 10 ghi,
if classpath does not work you can try to add your jar file at this registry key :
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_DevSuiteHome\FORMS_BUILDER_CLASSPATH
Engin. -
Problem with Java-Packages in JavaFX-Scripts
Hello!
What I'm trying to do is using a class I've built in my project in a JavaFX-Script, my problem is that the compiler keeps telling me my package wouldn't exist.
My filestructure is basically the following:
src
|-com.foo.java
|-- MyClass.java
|-com.foo.javafx
|-- MyFXScript.fx
I've tried importing the package or just writing the fully qualified classname when trying to create an instance, the messages didn't differ. I'm not at home right now so I don't remember the exact compiler-message, but it was something like "Package does not exist: com.foo.java".
Any ideas? :-)
Kind regards,
Joshua
Edited by: gnrx on Jan 12, 2009 5:55 AMIt works on my system.
MyClass.java
package com.foo.java;
public class MyClass {
@Override
public String toString() {
return "My Class";
MyFXScript.fx
package com.foo.javafx;
import com.foo.java.*;
var myClass = new MyClass();
println(myClass);standard-run:
My Class
browser-run:
jws-run:
midp-run:
run:
BUILD SUCCESSFUL (total time: 3 seconds) -
When java was being developed, what was the philosophy behind allowing packages to be mutually dependent?
Hello Steve,
The Acyclic Dependencies Principle tells us that no cycles should exit in a model depicting the dependencies between packages. From what I can gather this is useful when developing large software systems, as each package becomes a viable work unit for an engineer or small group of engineers to control as a series of releases. If the ADP is not complied with, cycles may exist in the dependencies between packages. If a change is made to one of those packages within a cycle, then an ugly situation develops as the repercussions of the change are looped through the cycle back to its source and so on.
The thing is though, during my readings I came across a statement that said Java packages were mutually dependent. I was just wanting to know why a language that utilises object oriented technology, left the practice of the ADP up to the descretion of the developer? Is the full implementation of ADP on a software system an ideal world scenario?
Anders. -
Java package and c++ header files
What is the difference between importing java package and including header files in c++?
I do not know .. have been away from C/C++ for a long time...
As much as I remember you can only import one header file each time... also when you import a header file you can just call methods from the header file automatically ...
However I could be very wrong on this .. really lost touch from C/C++ ...
regards,
Sim085 -
Error occured while running .java package in BPEL
Hi All,
I'm trying to run .java package which is using RIDC components (GET_FILE) option.
I have set my local IP address in the config.cfg file also and restarted.
Still i'm getting below error in Jdeveloper when I run the package.....
oracle.stellent.ridc.protocol.ProtocolException: Unable to initialize connection idc://tgreenspence:4444
* at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:35)*
* at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:22)*
* at oracle.stellent.ridc.protocol.impl.SimpleConnectionPool.acquireConnection(SimpleConnectionPool.java:44)*
* at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:151)*
* at test.TestRIDC.TestRIDCGetFile.main(TestRIDCGetFile.java:52)*
Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.net.ConnectException: Connection timed out: connect
* at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.connect(SocketConnection.java:52)*
* at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:33)*
* ... 4 more*
Caused by: java.net.ConnectException: Connection timed out: connect
* at java.net.PlainSocketImpl.socketConnect(Native Method)*
* at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)*
* at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)*
* at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)*
* at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)*
at java.net.Socket.connect(Socket.java:529)
* at java.net.Socket.connect(Socket.java:478)*
* at java.net.Socket.<init>(Socket.java:375)*
* at java.net.Socket.<init>(Socket.java:189)*
* at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.createSocket(SocketConnection.java:126)*
* at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.connect(SocketConnection.java:44)*
* ... 5 more*
What will be the solution ??
Thanks,
Nirtake the code out of bpel. run it standalone. does it work?
-ryan -
Just Starting out with java packages
Hello,
I'm a beginner and I'm starting out with java packages.
I wrote two simple .java files, one test program and one containing a simple class.
Both files are compiling without errors but When I run the program I get an error NoClassDeffoundError.
I use the import <package> statement And I think I'm using the CLASSPATH variable correctly.
SET CLASSPATH=d:\nopol
path for the .java containing the test class is:
d:\nopol\utilities \myapp.
In the test file I use "import utilities.myapp.*.
I would be very happy if anyone could help me
Thanks beforehand
Nopol.The test file should be in d:\nopol, if it's not a part of your package utilities.myapp. Everything should be compiled from d:\nopol, the test class with "javac ClassName.java" and the class in the package with "javac utilities/myapp/ClassName.java".
Your classpath seems fine for now, though. But yes, do add the period there, otherwise you could run into problems later.
Maybe you are looking for
-
How to add new field to table control data not displayed
hi I have added some nwe fields to already existing table control added three new fields... though the recoreds are inserted in teh table properly with the three new fields user id data and time fields but on display only the data is not shown in the
-
How to pair bluetooth with other devices
need help...my iphone 5 bluetooth will not pair with any devices..
-
Help - Cant use CS3 after Hard Drive replaced and software had to be reinstalled
My iMac needed a new Hard Drive so had this replaced by licensed Apple repairer. All software was lost and was told to reinstall CS3 which I did successfully. I have the original CD's. Serial number accepted. When I opened up Illustrator, Photoshop o
-
Calling a method in a class extended from thread
I'm trying to use two threads of type ThreadTest to call the addNum method in the class below. I found that i couldnt call the addnum method with the instances I created but had to make the addnum method static and then call it with the class name Th
-
I know of a family member that has filed (called) a false claim of 5 phones on their account being lost or stolen just to have them suspended, is there anything that can be reported or someone that can be notified to report this issue and/or can they