Javax.activation.UnsupportedDataTypeException:
I get the following exception when I extract mail.jar, activation.jar and run the program. However, no exception is thrown when I add the two jar file in the classpath.
How do I solve this problem?
THanks
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type mul
part/mixed;
boundary="----=_Part_0_33536220.1272627745828"
at javax.activation.ObjectDataContentHandler.writeTo(Unknown Source)
at javax.activation.DataHandler.writeTo(Unknown Source)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1742)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:737)
at SimpleSSLMail.test(SimpleSSLMail.java:77)
at SimpleSSLMail.main(SimpleSSLMail.java:34)
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME
pe multipart/mixed;
boundary="----=_Part_0_33536220.1272627745828"
sanksrit_source_language wrote:
Hi,
please add the following lines in your code.
// add handlers for main MIME types
MailcapCommandMap mc = (MailcapCommandMap)CommandMap.getDefaultCommandMap();
mc.addMailcap("text/html;; x-java-content-handler=com.sun.mail.handlers.text_html");
mc.addMailcap("text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml");
mc.addMailcap("text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain");
mc.addMailcap("multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed");
mc.addMailcap("message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822");
CommandMap.setDefaultCommandMap(mc);
This just solved my problemAs those handlers are already defined in the mailcap file supplied with JavaMail, that is totally useless advice. It is a clear indication your are not using the libraries in the right way.
Similar Messages
-
Javax.activation.UnsupportedDataTypeException: applicaion/pdf error urgent
Hi,
When I try to send the PDF document read from database without storing a phyiscal copy, I got the below error.
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pdf
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
My code is like below.
MimeMultipart mimeMultiPart = new MimeMultipart();
/*below call returns byte array from data store*/
byte[] byteArray = xxxxMailMessage.getByteStreamAttachment();
ByteArrayInputStream byteStream = new ByteArrayInputStream(byteArray);
MimeBodyPart mimeBodyForAttachmnt = new MimeBodyPart();
mimeBodyForAttachmnt.setContent((Object)byteStream,"application/pdf");
mimeBodyForAttachmnt.setHeader("Content-Transfer-Encoding","base64");
mimeBodyForAttachmnt.setHeader("Content-Disposition","attachment");
mimeBodyForAttachmnt.setFileName(mailAttachmentName);
mimeMultiPart.addBodyPart(mimeBodyForAttachmnt,1);
Plese let me know if my code is wrong.
I got struct with this probelm from last ocuple of days.I was searching info but ocudnt get exact cause.
thanks in advacne.
Regards,
GodspeedThis solution is in JavaMail 1.4.1. I'm stuck with a lower level of JavaMail which does not support ByteArrayDataSource. Might you have a suggestion for solving this problem with an earlier version of JavaMail?
-
Javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
hi there
i'm new to javamail and i'm trying to build a sample tool able only to send an e-mail.
i'm connecting to my office mail-server (web-mail). I'm sending from my office's address to an hotmail's address but i always receive the UnsupportedDataTypeException message. The same problem occurs if i mail to another user of web-mail
Have someone already encountered this problem?
Thanks in advance
here is my debug:
DEBUG: setDebug: JavaMail version 1.3.2
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 "212.239.51.130", port 25, isSSL false
220 mail.euchia.it ESMTP
DEBUG SMTP: connected to host "212.239.51.130", port: 25
EHLO tim1
250-mail.euchia.it talking to [192.168.1.145] ([192.168.1.145])
250-ENHANCEDSTATUSCODES
250-SIZE
250-ETRN
250-ATRN
250-DSN
250-8BITMIME
250 HELP
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "ATRN", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "8BITMIME", 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; will forward
DEBUG SMTP: Verified Addresses
DEBUG SMTP: [email protected]
DATA
354 Enter mail, end with "." on a line by itself
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_597230.1126769454656"
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
at javax.activation.DataHandler.writeTo(DataHandler.java:305)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1206)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1611)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:526)
at javax.mail.Transport.send0(Transport.java:151)
at javax.mail.Transport.send(Transport.java:80)
at msgmultisendsample.main(msgmultisendsample.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)I hope this will help you.
http://jce.iaik.tugraz.at/products/03_cms/faq/index.php
Thanks,
Amol -
Javax Activation error, pls help me very urgent
Hello,
I am calling a java stored procedure, but I am getting the following error:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_-1403249095.1105388630390"
I dropped the jar files from the database and re-deployed the the latest jar files downloaded from Sun site, still I am getting the the same error.
could someone please help me with this, I am desperately trying to solve this problem and get the work done. I am using java stored procedure to send emails.
Any help is highly appreciated.
Thanks
CosmosThis is a Javamail problem.
with a quick search of the javamail forum i found the same problem: http://forum.java.sun.com/thread.jspa?threadID=74127&start=0&tstart=0 -
Client unable to get the javax.activation.DataHandler object from Server
Hi All,
I am trying to download the file from the server to the client using Javax.Activation.Data Handler object with IBM web services. But server always returning the Data Handler object is null. I am wondering why it is behaving like this.
My requirement is add the file to the Data Handler object from the server and read the same from the client. But I am always getting Data Handler object is null at the client place.
Please see the client side code and server side code below.
Server side Code:
This is the simple web service method, its creating the Data Handler object and adding it to the Hash Map and returning the Hash Map object to the client.
public Hashtable download()
DataHandler dh = null;
HashMap hashMap =new HashMap();
try{
//Sample test files contains data
String downLoadFName="C:/ADP/downLoadData.txt";
//Creating the DataHandler Object with sample file
dh = new DataHandler(new FileDataSource(new File(downLoadFName)));
//Keeping the DataHandler object in the HashMap.
hashMap.put("DATAHANDLER",dh);
//keeping the sample test message object in the HashMap
hashMap.put("TEST","Keeping the DataHandler and test messages in the hashTable");
}catch(Exception e){
logger.error("Error :while sending the data:"+e.getMessage(), e);
//retrun the HashMap object to the client.
return hashMap;
Client Side Code:
This is the simple client code, and connecting to the server and invoking the web service method
//This is the client code,Just invoking the webservice method from the Webspehre server.
public class WebserviceClient {
static DocumentTransfer controller = null;
public static void main(String args[]){
DocumentTransferService service = null;
try{
//Creating the service Object
service = new DocumentTransferServiceLocator();
//Getting the Server connection
controller = (DocumentTransfer)service.getDocumentTransfer(new java.net.URL("http://localhost:9081/eNetsRuntimeEngine/services/DocumentTransfer"));
//Calling the download method from the server and it returns HashMap object.
HashMap hashMap = controller.download();
//Getting the DataHandler Object from the HashMap
DataHandler dh=(DataHandler)hashMap.get("DATAHANDLER");
System.out.println("DATAHANDLER: :"+dh);
//Getting the String object from the HashMap.
String message=(String)hashMap.get("TEST");
System.out.println(": :"+message);
}catch(Exception e){
System.out.println("Exception :Not able to get the file :"+e.getMessage());
Could you please give me some inputs on this?
Thanks in advance,
Sreeni.Hi Stif,
Thanks for your response.I did debug from server side,it has printing content of Data Handler properly.
Also i have debug request and response messages using TCP/IP monitor(RAD environment has this feature).The response from the server is going proplery.
But the client side Data Handler is coming null.
Any advice or solution would be greatly appreciated.
Thanks,
Sreeni. -
What is javax.activation,how can I get it
hello all
the JavaMail need a class library called "javax.activation",but I don't know what mean is it,and how to get it ,how to use it...
Thanks in advance,
qingbt.When using JavaMail with NetBeans:
If you are writing a plain Java application, create a Library using the Library Manager (Tools | Libraries -> New Library -> Add Jar) and add activation.jar and mail.jar to this library. Then add the library to your project (right click the project and select Properties | Libraries | Add Library).
If you are writing a Web or JavaEE application, activation.jar should be provided automatically by server (e.g. GlassFish, JBoss, etc.). If it is not working, please post more details (NetBeans version, server brand and version, JDK version, error messages encountered, etc.) -
Java.lang.SecurityException when loading javax.activation.MimeType
Hi all,
I'm having this problem when trying to call a WebService in my Server;
java.lang.SecurityException: class "javax.activation.MimeType"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at java.net.URLClassLoader.defineClass(URLClassLoader.java(Compiled Code))
at java.net.URLClassLoader.access$500(URLClassLoader.java(Inlined Compiled Code))
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java(Compiled Code))
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at org.apache.soap.rpc.SOAPContext.addBodyPart(SOAPContext.java:344)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:403)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:442)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:417)
at org.apache.soap.transport.TransportMessage.save(TransportMessage.java:351)
at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:713)
at org.apache.soap.rpc.Call.invoke(Call.java:261)
It seems to work in my local machine (running on JDeveloper10G embedded server), but i cannot make it work in production server (version 10.1.2.0.2) ...
Any idea of what is going wrong? I know what the error means, but i don't know why it is raising.I've tried the webservice standalone (without a servlet frontend) and it seems to work, so i'll post this in the servlets forum.
Thanks. -
I'm newbie in web services, and I would like to create web service for upload files.
Axis2 is installed, and I tried to implement some solutions I found on the web, but i got an error:
javax.activation.DataHandler cannot be cast to com.sun.xml.ws.developer.StreaminDataHandler
on server side code looks like:
@WebMethod(operationName = "getHeight")
public int getHeight(String name, @XmlMimeType("application/octet-stream") DataHandler data) {
StreamingDataHandler dh = (StreamingDataHandler) data; //this is where error occurs..
on client side:
tt=new javax.activation.FileDataSource("c:\\myImage.jpg");
dhh=new javax.activation.DataHandler(tt);
int r=port.getHeight("name", dhh);
tnx :)Hi dKohlert,
I have now changed my code completely and got it working this way !
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.Provider;
import javax.xml.ws.Service;
import javax.xml.ws.ServiceMode;
import javax.xml.ws.WebServiceProvider;
* @author Footman
@ServiceMode(value=Service.Mode.MESSAGE)
@WebServiceProvider( targetNamespace="http://spblue.liberty:8084/wsdl/globalLogout")
//@WebService(name="GlobalLogoutService", targetNamespace="http://spblue.liberty:8084/wsdl/globalLogout")
public class GlobalLogoutServiceImpl implements Provider<SOAPMessage> {
@WebMethod(operationName ="globalLogout", action="urn:liberty:soap-action")
public SOAPMessage invoke(@WebParam(name = "logoutRequest") SOAPMessage logoutRequest ){
return logoutRequest;
}Thanks anyway for your reply. If I find some time I will try to use the apt-tool. -
Where is import javax.activation.*;
Hi All .
I've downloaded the java mail api .
Now I would like to run the demos but it says that it can't find import javax.activation.*;
Where is activiation package - is that another package and what does it do may I ask ?
Stevhttp://java.sun.com/products/javabeans/glasgow/jaf.html
-
Install problem olite NoClassDefFoundError: javax/activation/DataSource
Hello,
I ran into an installation problem with the Oracle BPEL PM server. Though the installation completed successfully during startup of the server the following error occurs (part of log, complete log follows):
XXXXXXXXXXXXXXX
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleInitException> Error while initializing java class "javax/activation/DataSource".
Java class "javax/activation/DataSource" cannot be found. Check if class "javax
/activation/DataSource" package is in your classpath.
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleInitException>
Failed to load OraBPEL Process "default" domain because:
javax/activation/DataSource
<ServerManager::loadAllDomains>
ORABPEL START-UP ERROR!!!!!
XXXXXXXXXXXXXXXXXXX
It seems to happen because of the following exception:
XXXXXXXXXXXXXXXXXXX
java.lang.NoClassDefFoundError: javax/activation/DataSource
XXXXXXXXXXXXXXXXXXX
On another WinXP-System everything is fine.
I already had a default Oracle Lite Installation on my machine through Mobile Development Kit when installing BPEL PM Server. So I think there is a conflict between the two OLite DB... (Unfortunately I really need the first installation of OLite).
When I tried to reach the bpel-OLite DB through msql everything is fine. I can address the orapbel schema either with the ODBC-DSN syntax or the syntax which uses the olsv2040 adaptor service.
I checked ODBC.ini, ODBCinst.ini and polite.ini - they are configured as mentioned in another forum thread.
The classpath seems to be correct as shown by the log (following). The class javax/activation/DataSource is in orapbel.jar - this archive is in the classpath. Perhaps the signature of the executed method doesn't fit with two concurrent olite DB on the system...
Does somebody has an idea what's wrong with my configuration?
I appreciate any suggestion.
Thank you very much!
Florian Werner
University Tuebingen, Germany
STARTUP LOG OF BPEL SERVER:
04/12/11 16:22:35 Application default (default) initialized...
04/12/11 16:22:35 Binding EJB CubeEngineBean to ejb/collaxa/system/CubeEngineBea
n...
04/12/11 16:22:35 Binding EJB DispatcherBean to ejb/collaxa/system/DispatcherBea
n...
04/12/11 16:22:35 Binding EJB InvokeSenderBean to ejb/collaxa/system/InvokeSende
rBean...
04/12/11 16:22:35 Binding EJB ServerBean to ejb/collaxa/system/ServerBean...
04/12/11 16:22:35 Binding EJB DeliveryBean to ejb/collaxa/system/DeliveryBean...
04/12/11 16:22:35 Binding EJB MessageBean to ejb/collaxa/system/MessageBean...
04/12/11 16:22:35 Binding EJB InstanceKeyGenerator to ejb/collaxa/system/Instanc
eKeyGenerator...
04/12/11 16:22:35 Binding EJB DomainManagerBean to ejb/collaxa/system/DomainMana
gerBean...
04/12/11 16:22:35 Binding EJB FinderBean to ejb/collaxa/system/FinderBean...
04/12/11 16:22:35 Binding EJB ProcessManagerBean to ejb/collaxa/system/ProcessMa
nagerBean...
04/12/11 16:22:35 Binding EJB InstanceManagerBean to ejb/collaxa/system/Instance
ManagerBean...
04/12/11 16:22:35 Binding EJB ActivityManagerBean to ejb/collaxa/system/Activity
ManagerBean...
04/12/11 16:22:35 Binding EJB ArchiveManagerBean to ejb/collaxa/system/ArchiveMa
nagerBean...
04/12/11 16:22:35 Binding EJB PresentationManagerBean to ejb/collaxa/system/Pres
entationManagerBean...
04/12/11 16:22:35 Binding EJB TaskManagerBean to ejb/collaxa/system/TaskManagerB
ean...
04/12/11 16:22:35 Binding EJB TransactionManagerBean to ejb/collaxa/system/Trans
actionManagerBean...
04/12/11 16:22:35 Binding EJB TransactionViewManagerBean to ejb/collaxa/system/T
ransactionViewManagerBean...
04/12/11 16:22:35 Binding EJB CubeFinderBean to ejb/collaxa/system/CubeFinderBea
n...
04/12/11 16:22:35 Binding EJB TransactionFinderBean to ejb/collaxa/system/Transa
ctionFinderBean...
04/12/11 16:22:36 Application orabpel (Collaxa Web Applications) initialized...
04/12/11 16:22:38 Web-App default:defaultWebApp (0.0.0.0/0.0.0.0:9700/) started.
04/12/11 16:22:38 Building Global TagLibrary Persistent Cache
04/12/11 16:22:38 Looking for global resource at C:\orabpel\system\appserver\oc4
j\j2ee\home\config\..\jsp\lib\taglibDone getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing global cache - from existing cache ...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for defaultWe
bApp
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:admin_war (0.0.0.0/0.0.0.0:9700/BPELAdmin) sta
rted...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for admin_war
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:console_war (0.0.0.0/0.0.0.0:9700/BPELConsole)
started...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for console_w
ar
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:startup_war (0.0.0.0/0.0.0.0:9700/orabpel) sta
rted...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for startup_w
ar
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
<ServerManager::__init>
Oracle BPEL Server version 2.0.10
Build: 2004.08.26.19.51
Build time: Thu Aug 26 19:51:38 PDT 2004
Build type: release
<ServerDescriptor::validateCompatibility> Detected server descriptor version '2.
0.1'
<BaseJDKAdaptor::initAdaptor>
JVM properties
Java version: 1.4.2_04, Sun Microsystems Inc.
Java Home: C:\j2sdk1.4.2_04\jre
Java VM: Java HotSpot(TM) Client VM 1.4.2_04-b05, Sun Microsystems Inc
OS-System: Windows XP 5.1, x86
System Class path: oc4j.jar;C:\orabpel\system\appserver\oc4j\j2ee\home
\lib/ejb.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/servlet.jar;C:\orabp
el\system\appserver\oc4j\j2ee\home\lib/ojsp.jar;C:\orabpel\system\appserver\oc4j
\j2ee\home\lib/jndi.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jdbc.jar;
C:\orabpel\system\appserver\oc4j\j2ee\home\iiop.jar;C:\orabpel\system\appserver\
oc4j\j2ee\home\iiop_gen_bin.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/j
ms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jta.jar;C:\orabpel\system\
appserver\oc4j\j2ee\home\lib/jmxri.jar;C:\orabpel\system\appserver\oc4j\j2ee\hom
e\lib/javax77.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/javax88.jar;C:\
orabpel\system\appserver\oc4j\j2ee\home\../../opmn/lib/ons.jar;C:\orabpel\system
\appserver\oc4j\j2ee\home\../../opmn/lib/optic.jar;C:\orabpel\system\appserver\o
c4j\j2ee\home\../../lib/dms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../..
/dms/lib/dms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/connector.jar;C:
\orabpel\system\appserver\oc4j\j2ee\home\lib/cos.jar;C:\orabpel\system\appserver
\oc4j\j2ee\home\lib/jsse.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../or
acle/lib/jsse.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jnet.jar;C:\ora
bpel\system\appserver\oc4j\j2ee\home\lib/jcert.jar;C:\orabpel\system\appserver\o
c4j\j2ee\home\lib/activation.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/
mail.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../javavm/lib/jasper.zip;
C:\orabpel\system\appserver\oc4j\j2ee\home\../../lib/xmlparserv2.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\../../oracle/lib/xmlparserv2.jar;C:\orabpel\syst
em\appserver\oc4j\j2ee\home\lib/jaxp.jar;C:\orabpel\system\appserver\oc4j\j2ee\h
ome\lib/jaas.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\jazn.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\../../jdbc/lib/classes12dms.jar;C:\orabpel\syste
m\appserver\oc4j\j2ee\home\../../oracle/jdbc/lib/classes12dms.jar;C:\orabpel\sys
tem\appserver\oc4j\j2ee\home\../../jdbc/lib/nls_charset12.jar;C:\orabpel\system\
appserver\oc4j\j2ee\home\../../oracle/jdbc/lib/nls_charset12.jar;C:\orabpel\syst
em\appserver\oc4j\j2ee\home\jaxb-rt-1.0-ea.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\../../soap/lib/soap.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../
../webservices/lib/wsserver.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../..
/webservices/lib/wsdl.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../rdbms
/jlib/aqapi.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jem.jar;C:\orabpe
l\system\appserver\oc4j\j2ee\home\../../javacache/lib/cache.jar;C:\orabpel\syste
m\appserver\oc4j\j2ee\home\lib/http_client.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\../../jlib/jssl-1_1.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../
../oracle/jlib/jssl-1_1.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../jli
b/repository.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../oracle/jlib/re
pository.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jaasmodules.jar;C:\o
rabpel\system\appserver\oc4j\j2ee\home\../../sqlj/lib/runtime12ee.jar;C:\orabpel
\system\appserver\oc4j\j2ee\home\../../sqlj/lib/translator.jar;C:\orabpel\system
\appserver\oc4j\j2ee\home\lib/crimson.jar;;C:\orabpel\system\classes;C:\orabpel\
lib\saxon_7.9.jar;C:\orabpel\lib\orabpel-external.jar;C:\orabpel\lib\orabpel.jar
;C:\orabpel\lib\orabpel-common.jar;C:\orabpel\lib\orabpel-ant.jar;C:\j2sdk1.4.2_
04\lib\tools.jar;C:\orabpel\lib\commons-httpclient-2.0.jar;C:\orabpel\lib\olite4
0.jar;C:\orabpel\lib\ant_1.5.4.jar;C:\orabpel\lib\xmlparserv2.jar;C:\orabpel\sys
tem\appserver\oc4j\j2ee\home\applib;C:\orabpel\system\appserver\oc4j\sqlj\lib;C:
\orabpel\system\appserver\oc4j\rdbms\jlib\xsu12.jar;C:\orabpel\system\appserver\
oc4j\lib\dsv2.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\jsp\lib\taglib;C:\o
rabpel\system\appserver\oc4j\j2ee\home\jsp\lib\taglib\jaxen-full.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\orabpel\system\ap
pserver\oc4j\j2ee\home\jsp\lib\taglib\saxpath.jar;C:\orabpel\system\appserver\oc
4j\j2ee\home\jsp\lib\taglib\standard.jar;C:\orabpel\system\appserver\oc4j\j2ee\h
ome\applications\orabpel_ear\ejb_ob_engine.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\application-deployments\orabpel\ejb_ob_engine.jar\deployment.cache;
<BasePlatformAdaptor::registerShutdownHook> Registered shutdown hook for olite
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ServerManager::__init> Detected datasource 'olite'
<ServerAdaptorManager::init> Initialized adaptors for platform 'oc4j_10g'
<ServerManager::loadAllDomains> Loading all domains under C:\orabpel\domains
<DomainDescriptor::validateCompatibility> Detected domain descriptor version '2.
0.5'
<2004-12-11 16:22:45,028> <INFO> <default.collaxa.cube> <ServerManager::loadDoma
in>
Oracle BPEL Server version 2.0.10
Build: 2004.08.26.19.51
Build time: Thu Aug 26 19:51:38 PDT 2004
Build type: release
<2004-12-11 16:22:45,138> <INFO> <default.collaxa.cube.engine> <CubeEngine::load
>
Initializing BPEL domain from descriptor file
"C:\orabpel\domains\default\config\domain.xml"
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<2004-12-11 16:22:45,368> <INFO> <default.collaxa.cube.engine> <BaseDatabaseAdap
tor::validateCompatibility> Detected database version '2.0.29'
<2004-12-11 16:22:45,378> <INFO> <default.collaxa.cube.engine> <AdaptorManager::
init> Initialized adaptors for platform 'oc4j_10g', datasource 'olite'
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleI
nitException> Error while initializing java class "javax/activation/DataSource".
Java class "javax/activation/DataSource" cannot be found. Check if class "javax
/activation/DataSource" package is in your classpath.
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleI
nitException>
Failed to load OraBPEL Process "default" domain because:
javax/activation/DataSource
<ServerManager::loadAllDomains>
ORABPEL START-UP ERROR!!!!!!!!
OraBPEL run-time system failed to start due to exception:
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception
reported is: "java.lang.NoClassDefFoundError: javax/activation/DataSource
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class$(J
AFDataHandlerSerializerFactory.java:76)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.getSeria
lizerClass(JAFDataHandlerSerializerFactory.java:85)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.<init>(J
AFDataHandlerSerializerFactory.java:73)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMap
pingImpl.java:154)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMap
pingImpl.java:130)
at org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton(DefaultT
ypeMappingImpl.java:124)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.registerHeaderTyp
es(TypeSoapRegistry.java:269)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.load(TypeSoapRegi
stry.java:101)
at com.collaxa.cube.engine.core.TypeRegistry.load(TypeRegistry.java:121)
at com.collaxa.cube.engine.CubeEngine.__load(CubeEngine.java:522)
at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:452)
at com.collaxa.cube.admin.ServerManager.loadDomain(ServerManager.java:91
9)
at com.collaxa.cube.admin.ServerManager.loadAllDomains(ServerManager.jav
a:733)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:92)
at com.collaxa.cube.beans.ServerBean.init(ServerBean.java:202)
at IServerBean_StatelessSessionBeanWrapper14.init(IServerBean_StatelessS
essionBeanWrapper14.java:79)
at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:59)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
java:4523)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
ication.java:4617)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
java:765)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
497)
at com.evermind.server.Application.getHttpApplication(Application.java:8
86)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
a:688)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServe
r.java:2325)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
a:1498)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
uncher.java:93)
at java.lang.Thread.run(Thread.java:534)
Exception: java.lang.NoClassDefFoundError: javax/activation/DataSource
Handled As: com.collaxa.cube.engine.EngineInitializationException
04/12/11 16:22:46 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initializedHello Erwin,
thank you for your fast reply.
I'll try to switch to 9i/10g.
In migrating perhaps also I will use the Designer as standalone tool on the client and connecting to iAS on another machine where I could integrate the BPEL Engine.
That means integrating BPEL in our architecture.
Regards Florian -
Hi,
I know this question have been asked before, but I can not found any solution for mine. I am trying to write a web server, but i keep getting the package javax. activation does not exist error. I've downloaded the activation.jar and set the classpath, but it still does not work.
I am using XP SP1 & JBuilderX, and I've put the classpath variable:
CLASSPATH => C:\j2sdk1.4.2_03\jaf-1.0.1\activation.jar;C:\j2sdk1.4.2_03\javamail-1.1.3\mail.jar
I also have read the instructions on this site, and I still get the error.
Does anyone has solutions? Thanks in advance.your web server most likely ignores the system CLASSPATH.
What seb server are you using? You probably need to change
the classpath in the web server startup or config script.
-Alexis -
Writing custom implentation of javax.activation.Datasource
Hello All,
In our current implementation we have a
1)Media Server (MS)
2)A Server which exposes some actions like viewing clips as web service (WS)
3)A Web service client (WC)
The 1st and 2nd server has located on the same LAN
The Webservice client invokes a web service to view a clip. The 2nd Server in turn requests Media Server for the clip data using socket api's.
Now the question is how to pass on this clip data which can be upto 5 MB to the WS client.
Right now the second server reads from the input stream connected to the Media Server and write to a temp file and then uses a FileDataSource. Can we somehow avoid creating this temporary file?
Regards
John... and I made a copy of activation.jar in
about any pertient /lib folder I've found on my
computer :-)Bad move. You should actually do the exact opposite, i.e hunt down any xtra mail.jar/activation.jar and take them out. One copy under your server's lib directory should suffice, if any.
Also, the mail classes should be already included in j2ee.jar (included in your classpath), depending on the version you're using. With j2ee 1.2 and 1.3, you should not need to include the java beans activation framework... -
Exception when trying to create a soap attachment javax.activation. Unsuppo
I am trying to pass an object String [] as a soap attachment.
Reading the docs, if I pass a parameter as type datahandler, it is automatically treated as an Attachment.
I used the constructor DataHandler (Object obj, String mimeType)
where the object was my StringArray, and MIME is the XML representation of
a java type, which according to weblogic docs is NMTOKENS,IDREF or ENTITIES.
It threw the same error for the other two.
Am I using DataHandler correctly, is MIME the SOAP representation of the Java Object in memory.
Thanks for any help
TonyI am trying to pass an object String [] as a soap attachment.
Reading the docs, if I pass a parameter as type datahandler, it is automatically treated as an Attachment.
I used the constructor DataHandler (Object obj, String mimeType)
where the object was my StringArray, and MIME is the XML representation of
a java type, which according to weblogic docs is NMTOKENS,IDREF or ENTITIES.
It threw the same error for the other two.
Am I using DataHandler correctly, is MIME the SOAP representation of the Java Object in memory.
Thanks for any help
Tony -
JavaMail UnsupportedDataTypeException in custom ClassLoader
I have an application which is giving a UnsupportedDataTypeException: no object DCH for MIME type text/plain error. Now, what's important to know is that the application runs fine if I execute it from the command line like a regular Java application. So I know the code works fine with all the JAR files I have. However, I normally do not run the application like this. What I usually do is start the application withing an already running JVM, however I create a new ClassLoader and start the application within that new ClassLoader (similar to how each Tomcat webapp application has it's own separate ClassLoader). I'm getting the below exception when running inside this new ClassLoader. Anyone have any ideas why? How to fix it?
org.apache.commons.mail.EmailException: Sending the email to the following server failed : localhost:25
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:873)
at org.apache.commons.mail.Email.send(Email.java:898)
at org.oak.jmce.masteralbum.jobs.MasterAlbumJob.email(MasterAlbumJob.java:198)
at org.oak.jmce.masteralbum.jobs.MasterAlbumJob.execute(MasterAlbumJob.java:153)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:863)
... 5 more
Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
at javax.activation.DataHandler.writeTo(DataHandler.java:301)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
... 8 moreIf an application works fine standalone but breaks under Java Web Start, you might want to check out JNLP Wrapper at:
http://zydego.fontanus.net/jnlp/wrapper
Your app runs standalone, and JWS is used only for distribution and updates. -
I'm using the Java Mail API (Sample Code)to send a Multipart Mail with Attachment (*.jpg).
Everything works fine in JBuilder (German W2K machine). THEN I generate a JAR with all sources.The GUI comes up , then I push the send button and this happens.
javax.mail.SendFailedException: Sending failed; nested exception is:
class javax.mail.MessagingException: IOException while
sending message; nested exception is:
javax.activation.UnsupportedDataTypeException: no object
DCH for MIME type multipart/mixed;
boundary="----=_Part_0_16749301.1029937112375"
Could anyone pleeease help ?!
############# the Code
roperties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.host", host);
// Get session
Session session = Session.getInstance(props, null);
// Define message
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO,
new InternetAddress(mailTo));
message.setSubject(subjText);
// Create the message part
BodyPart messageBodyPart = new MimeBodyPart();
// Fill the message
messageBodyPart.setText(mailText);
// Create a Multipart
Multipart multipart = new MimeMultipart();
// Add part one
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
// Create second body part
messageBodyPart = new MimeBodyPart();
// Get the attachment
DataSource source = new FileDataSource(filename);
DataHandler dh = new DataHandler(source);
// Set the data handler to the attachment
messageBodyPart.setDataHandler(dh);
// Set the filename
messageBodyPart.setFileName(filename);
// Add part two
multipart.addBodyPart(messageBodyPart);
// Put parts in message
message.setContent(multipart);
// Send the message
Transport.send(message);
THANKS in advanceHi,
Try this
replace in your code
// Get the attachment
DataSource source = new FileDataSource(filename);
With this
File f = new File(filename);
DataSource source = new FileDataSource(f);
bye
Maybe you are looking for
-
My Hard drive crashed on my PC just after I bought my new iphone 4s, which I hadnt sinked yet with my itunes account. I had many photos of my kids backed up on icloud which is all I care about retrieving! Is there ANY way to retrieve those pictures?
-
Equipment records- where do they get the manufacturers information from?
If its from the material master (which i hope) what tab is it on etc as we have a bespoke tab that does it at the present but cant be pulled into the equipment record. We would like the data to autopopulate from the master item into the equipment rec
-
when i open itunes i cannot edit/add files to my ipod its all it grey so i cant select any of it, will this have anything to do with me using my ipod on my laptop as it only started happening after i used it on my laptop it worked fine on my computer
-
Help me in classpath settings/Connection Pooling
hello, When i configured my connectionpool with Sun Java Application Server Admin Console i found this error: Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for
-
Hi, I am including steps inside a sequence which calls sub sequences in a new thread. After calling each sub sequence in a new thread, I am putting Wait step which is configured to wait for the respective sub seueqnce to complete its execution. When