MimeMessage.writeTo hangs on PipedInputStream.awaitSpace()

Hi all,
I have a multi-threaded app which (amongst other things) creates mail files and writes them to disk. When this app is under heavy load, I get several threads "left behind" which appear to be stuck on the call to awaitSpace() within the PipedInputStream class.
In debug, I notice that this method just loops around forever waiting for input. The problem is that I'm not controlling this. I'm just calling the writeTo(OutputStream) method of the MimeMessage class in JavaMail.
Goes something like this...
FileOutputStream fout = null;
try {
     fout = new FileOutputStream("somefile.txt");
     // Just a normal MimeMessage class initialised elsewhere
     message.writeTo(out);
     fout.flush();
finally {
     if (fout != null) {
          fout.close();
}This obviously works fine, but under heavy load the call to message.writeTo(out); blocks forever.
Not sure if it's a problem with the MimeMessage class or the PipedInputStream class (or my code?).
Anyone seen this behaviour before?
I'm using JDK 1.5.0_04

Can you provide a stack trace for the thread that's stuck in PipedInputStream?
I believe the only time a PipedInputStream is used is when you try to
read data from a message part using getInputStream, but the message
part was created using an object instead of a stream so the JAF
DataContentHandler that converts objects to streams uses writeTo to
write the data into a PipedOutputStream so that you can read if from a
PipedInputStream. If you don't consume the entire stream, the writing
thread and the pipe will be left hanging.
If all you're doing is message.writeTo, I'm not sure why this would happen.

Similar Messages

  • 30EA2 - connection hangs on initial connect.

    I encountered this intermittently with 30EA1 as well. When I click on a connection to connect, I get a 'loading...' icon and the running progress bar is flashing away merrily, but the connection never opens. That is no object browser and no worksheet.
    Looking at the database, there is a session open. The GUI is still responsive.
    Nothing appears in the console.
    Windows Vista SP2, JDK 6_11.
    Here is a thread dump
    2010-12-07 11:25:16
    Full thread dump Java HotSpot(TM) Client VM (11.0-b16 mixed mode):
    "Open Connection" prio=6 tid=0x36564000 nid=0x1478 waiting on condition [0x381ef000..0x381efd68]
    java.lang.Thread.State: WAITING (parking)
    at sun.misc.Unsafe.park(Native Method)
    - parking to wait for <0x08fecda0> (a java.util.concurrent.FutureTask$Sync)
    at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:905)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1217)
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:218)
    at java.util.concurrent.FutureTask.get(FutureTask.java:83)
    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$IdeTaskTracker.run(RaptorTaskManager.java:540)
    at java.lang.Thread.run(Thread.java:619)
    "IconOverlayTracker Timer" prio=6 tid=0x36565400 nid=0x1628 in Object.wait() [0x397cf000..0x397cfbe8]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x08f5dfe0> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:485)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x08f5dfe0> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "Timer queue for AWT thread" daemon prio=6 tid=0x36564800 nid=0x16a4 in Object.wait() [0x395cf000..0x395cf9e8]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x08a089f8> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:485)
    at ice.util.awt.TimedAWTExecutor.nextElem(TimedAWTExecutor.java:108)
    - locked <0x08a089f8> (a java.lang.Object)
    at ice.util.awt.TimedAWTExecutor.runScheduler(TimedAWTExecutor.java:130)
    at ice.util.awt.TimedAWTExecutor$1.run(TimedAWTExecutor.java:19)
    "Timer queue for AWT thread" daemon prio=6 tid=0x36562c00 nid=0x13a8 in Object.wait() [0x38e4f000..0x38e4fae8]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x08a08aa0> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:485)
    at ice.util.awt.TimedAWTExecutor.nextElem(TimedAWTExecutor.java:108)
    - locked <0x08a08aa0> (a java.lang.Object)
    at ice.util.awt.TimedAWTExecutor.runScheduler(TimedAWTExecutor.java:130)
    at ice.util.awt.TimedAWTExecutor$1.run(TimedAWTExecutor.java:19)
    "WaitCursor-Timer" prio=6 tid=0x36563c00 nid=0x6f4 in Object.wait() [0x393cf000..0x393cfb68]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x084fe620> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:485)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x084fe620> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "BaseTreeExplorer.NodeOpeningExecutor" prio=6 tid=0x36562400 nid=0x1430 waiting on condition [0x38b4f000..0x38b4fc68]
    java.lang.Thread.State: WAITING (parking)
    at sun.misc.Unsafe.park(Native Method)
    - parking to wait for <0x0819add0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
    at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
    at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:358)
    at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    "pool-2-thread-1" prio=6 tid=0x36562000 nid=0x1768 in Object.wait() [0x38a4f000..0x38a4fce8]
    java.lang.Thread.State: TIMED_WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    at java.io.PipedInputStream.awaitSpace(PipedInputStream.java:257)
    at java.io.PipedInputStream.receive(PipedInputStream.java:215)
    - locked <0x09023a00> (a java.io.PipedInputStream)
    at java.io.PipedOutputStream.write(PipedOutputStream.java:132)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
    - locked <0x09023ab8> (a java.io.BufferedOutputStream)
    at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
    at oracle.dbtools.raptor.newscriptrunner.WrapListenBufferOutputStream.write(WrapListenBufferOutputStream.java:149)
    at oracle.dbtools.db.ResultSetFormatter.rset2sqlplus(ResultSetFormatter.java:117)
    at oracle.dbtools.raptor.newscriptrunner.SQL.executeQuery(SQL.java:271)
    at oracle.dbtools.raptor.newscriptrunner.SQL.run(SQL.java:45)
    at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.runSQL(ScriptRunner.java:187)
    at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.run(ScriptRunner.java:127)
    at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:215)
    at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:145)
    at oracle.dbtools.raptor.scriptrunner.utils.ScriptUtils.runAsScript(ScriptUtils.java:114)
    at oracle.dbtools.raptor.scriptrunner.utils.ScriptUtils.runAsScript(ScriptUtils.java:71)
    at oracle.dbtools.raptor.InitializeConnectionListener.runLoginSql(InitializeConnectionListener.java:171)
    at oracle.dbtools.raptor.InitializeConnectionListener.initConnection(InitializeConnectionListener.java:127)
    at oracle.dbtools.raptor.InitializeConnectionListener$1.initializeConnection(InitializeConnectionListener.java:47)
    at oracle.dbtools.raptor.utils.Connections.initializeConnection(Connections.java:1493)
    at oracle.dbtools.raptor.utils.Connections.access$100(Connections.java:66)
    at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.getDatabase(Connections.java:181)
    - locked <0x081d6868> (a oracle.dbtools.raptor.utils.Connections$ConnectionInfo)
    at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:899)
    at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:880)
    at oracle.dbtools.raptor.navigator.DatabaseConnection.openConnectionImpl(DatabaseConnection.java:117)
    at oracle.dbtools.raptor.navigator.AbstractConnectionNode.getConnection(AbstractConnectionNode.java:30)
    - locked <0x081d6ab8> (a java.lang.Object)
    at oracle.dbtools.raptor.navigator.ConnectionFilter.getFactory(ConnectionFilter.java:94)
    at oracle.dbtools.raptor.navigator.ConnectionFilter$1.doWork(ConnectionFilter.java:119)
    at oracle.dbtools.raptor.navigator.ConnectionFilter$1.doWork(ConnectionFilter.java:104)
    at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:500)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    "Scheduler" daemon prio=6 tid=0x36561800 nid=0x149c in Object.wait() [0x3894f000..0x3894fd68]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x0819b130> (a oracle.dbtools.raptor.backgroundTask.TaskLinkedList)
    at java.lang.Object.wait(Object.java:485)
    at oracle.dbtools.raptor.backgroundTask.TaskLinkedList.takeNextTask(TaskLinkedList.java:47)
    - locked <0x0819b130> (a oracle.dbtools.raptor.backgroundTask.TaskLinkedList)
    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$SchedulerThread.run(RaptorTaskManager.java:429)
    "Thread-6" daemon prio=6 tid=0x36561400 nid=0x1530 in Object.wait() [0x3884f000..0x3884f9e8]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x080faa48> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x080faa48> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at org.tmatesoft.svn.core.javahl.SVNClientImplTracker.run(SVNClientImplTracker.java:65)
    at java.lang.Thread.run(Thread.java:619)
    "ChangeSetService" prio=2 tid=0x36560800 nid=0x17ec in Object.wait() [0x384df000..0x384dfae8]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x07eccb18> (a oracle.jdevimpl.vcs.changeset.ChangeSetService)
    at java.lang.Object.wait(Object.java:485)
    at oracle.jdevimpl.vcs.changeset.ChangeSetService.awaitEvents(ChangeSetService.java:178)
    - locked <0x07eccb18> (a oracle.jdevimpl.vcs.changeset.ChangeSetService)
    at oracle.jdevimpl.vcs.changeset.ChangeSetService.eventLoop(ChangeSetService.java:199)
    at oracle.jdevimpl.vcs.changeset.ChangeSetService.access$200(ChangeSetService.java:56)
    at oracle.jdevimpl.vcs.changeset.ChangeSetService$2.run(ChangeSetService.java:138)
    at java.lang.Thread.run(Thread.java:619)
    "TimerQueue" daemon prio=6 tid=0x36560400 nid=0x153c in Object.wait() [0x382ff000..0x382ffb68]
    java.lang.Thread.State: TIMED_WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    at javax.swing.TimerQueue.run(TimerQueue.java:236)
    - locked <0x07dd2880> (a javax.swing.TimerQueue)
    at java.lang.Thread.run(Thread.java:619)
    "TimedCache-Timer" daemon prio=6 tid=0x35e2d000 nid=0xbec in Object.wait() [0x363cf000..0x363cfc68]
    java.lang.Thread.State: TIMED_WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x076942a8> (a java.util.TaskQueue)
    at java.util.TimerThread.mainLoop(Timer.java:509)
    - locked <0x076942a8> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "JarIndex Timer" daemon prio=6 tid=0x3507c800 nid=0x1538 in Object.wait() [0x362cf000..0x362cfce8]
    java.lang.Thread.State: TIMED_WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    at java.util.TimerThread.mainLoop(Timer.java:509)
    - locked <0x075b8f48> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "AWT-EventQueue-0" prio=6 tid=0x350be400 nid=0x1300 in Object.wait() [0x35dcf000..0x35dcfd68]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:485)
    at java.awt.EventQueue.getNextEvent(EventQueue.java:479)
    - locked <0x075b8ff8> (a java.awt.EventQueue)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:236)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    "AWT-Windows" daemon prio=6 tid=0x35067800 nid=0xe54 runnable [0x35bcf000..0x35bcfa68]
    java.lang.Thread.State: RUNNABLE
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(WToolkit.java:291)
    at java.lang.Thread.run(Thread.java:619)
    "AWT-Shutdown" prio=6 tid=0x35067000 nid=0xd3c in Object.wait() [0x35acf000..0x35acfae8]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x075b91b8> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:485)
    at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
    - locked <0x075b91b8> (a java.lang.Object)
    at java.lang.Thread.run(Thread.java:619)
    "Java2D Disposer" daemon prio=10 tid=0x35059400 nid=0xd40 in Object.wait() [0x354cf000..0x354cfb68]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x075b9248> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x075b9248> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at sun.java2d.Disposer.run(Disposer.java:125)
    at java.lang.Thread.run(Thread.java:619)
    "Low Memory Detector" daemon prio=6 tid=0x01ce3800 nid=0x173c runnable [0x00000000..0x00000000]
    java.lang.Thread.State: RUNNABLE
    "CompilerThread0" daemon prio=10 tid=0x01cdfc00 nid=0x12ec waiting on condition [0x00000000..0x34cbf990]
    java.lang.Thread.State: RUNNABLE
    "Attach Listener" daemon prio=10 tid=0x01cdcc00 nid=0x14d4 runnable [0x00000000..0x00000000]
    java.lang.Thread.State: RUNNABLE
    "Signal Dispatcher" daemon prio=10 tid=0x01cd2000 nid=0x16cc waiting on condition [0x00000000..0x00000000]
    java.lang.Thread.State: RUNNABLE
    "Finalizer" daemon prio=8 tid=0x01cc2400 nid=0x218 in Object.wait() [0x349bf000..0x349bfa68]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x07530298> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x07530298> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=10 tid=0x01cbdc00 nid=0xe14 in Object.wait() [0x348bf000..0x348bfae8]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x07530320> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:485)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0x07530320> (a java.lang.ref.Reference$Lock)
    "main" prio=6 tid=0x01d4a800 nid=0x10b8 waiting on condition [0x00000000..0x0012fab0]
    java.lang.Thread.State: RUNNABLE
    "VM Thread" prio=10 tid=0x01cba000 nid=0xb14 runnable
    "VM Periodic Task Thread" prio=10 tid=0x01ce4800 nid=0x1758 waiting on condition
    JNI global references: 2241
    Heap
    def new generation total 9216K, used 5730K [0x04400000, 0x04df0000, 0x07530000)
    eden space 8256K, 69% used [0x04400000, 0x04998bf0, 0x04c10000)
    from space 960K, 0% used [0x04c10000, 0x04c10000, 0x04d00000)
    to space 960K, 0% used [0x04d00000, 0x04d00000, 0x04df0000)
    tenured generation total 121024K, used 29754K [0x07530000, 0x0eb60000, 0x2c400000)
    the space 121024K, 24% used [0x07530000, 0x0923ea98, 0x0923ec00, 0x0eb60000)
    compacting perm gen total 58112K, used 57860K [0x2c400000, 0x2fcc0000, 0x34400000)
    the space 58112K, 99% used [0x2c400000, 0x2fc81278, 0x2fc81400, 0x2fcc0000)
    No shared spaces configured.

    I've already reported this one and got no response. Now with EA3 the product is unusable because it hangs EVERY TIME.
    The sequence of events is
    Start SQL Developer
    Open a connectio
    Loading... appears in the connection browser under the connection and the Running: progress bar flashes in the status bar... for ever.
    The gui still responds and I can attempt to open other connections.
    Any attempt to close SQL Developer gets the Connection Busy, retry abort message. I have to kill it from task manager.
    Looking at the database there is a connection, but it is spending all its time waiting on SQL*Net message from client.
    Windows Vista 32-bit.
    CVS Version     Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform     1.6.0_11
    Oracle IDE     3.0.03.45
    Versioning Support     3.0.03.45
    Here is a thread dump
    2011-01-26 10:50:07
    Full thread dump Java HotSpot(TM) Client VM (11.0-b16 mixed mode):
    "Open Connection" prio=6 tid=0x36904400 nid=0xf5c waiting on condition [0x3946f000..0x3946fbe8]
       java.lang.Thread.State: WAITING (parking)
            at sun.misc.Unsafe.park(Native Method)
            - parking to wait for  <0x0936ee48> (a java.util.concurrent.FutureTask$Sync)
            at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
            at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
            at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:905)
            at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1217)
            at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:218)
            at java.util.concurrent.FutureTask.get(FutureTask.java:83)
            at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$IdeTaskTracker.run(RaptorTaskManager.java:540)
            at java.lang.Thread.run(Thread.java:619)
    "IconOverlayTracker Timer" prio=6 tid=0x36902400 nid=0x1154 in Object.wait() [0x3926f000..0x3926fa68]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x092d3c50> (a java.util.TaskQueue)
            at java.lang.Object.wait(Object.java:485)
            at java.util.TimerThread.mainLoop(Timer.java:483)
            - locked <0x092d3c50> (a java.util.TaskQueue)
            at java.util.TimerThread.run(Timer.java:462)
    "Timer queue for AWT thread" daemon prio=6 tid=0x36902000 nid=0x12c0 in Object.wait() [0x3916f000..0x3916fc68]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x08bf5418> (a java.lang.Object)
            at java.lang.Object.wait(Object.java:485)
            at ice.util.awt.TimedAWTExecutor.nextElem(TimedAWTExecutor.java:108)
            - locked <0x08bf5418> (a java.lang.Object)
            at ice.util.awt.TimedAWTExecutor.runScheduler(TimedAWTExecutor.java:130)
            at ice.util.awt.TimedAWTExecutor$1.run(TimedAWTExecutor.java:19)
    "WaitCursor-Timer" prio=6 tid=0x36901400 nid=0xfb8 in Object.wait() [0x38bef000..0x38befce8]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x08636580> (a java.util.TaskQueue)
            at java.lang.Object.wait(Object.java:485)
            at java.util.TimerThread.mainLoop(Timer.java:483)
            - locked <0x08636580> (a java.util.TaskQueue)
            at java.util.TimerThread.run(Timer.java:462)
    "Timer queue for AWT thread" daemon prio=6 tid=0x36900800 nid=0x95c in Object.wait() [0x389ef000..0x389ef9e8]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at ice.util.awt.TimedAWTExecutor.nextElem(TimedAWTExecutor.java:108)
            - locked <0x08510a10> (a java.lang.Object)
            at ice.util.awt.TimedAWTExecutor.runScheduler(TimedAWTExecutor.java:130)
            at ice.util.awt.TimedAWTExecutor$1.run(TimedAWTExecutor.java:19)
    "BaseTreeExplorer.NodeOpeningExecutor" prio=6 tid=0x36900400 nid=0x1538 waiting on condition [0x387ef000..0x387efae8]
       java.lang.Thread.State: WAITING (parking)
            at sun.misc.Unsafe.park(Native Method)
            - parking to wait for  <0x080ef420> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
            at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
            at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
            at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:358)
            at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    "pool-2-thread-1" prio=6 tid=0x368ffc00 nid=0x1234 in Object.wait() [0x386ef000..0x386efb68]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.io.PipedInputStream.awaitSpace(PipedInputStream.java:257)
            at java.io.PipedInputStream.receive(PipedInputStream.java:215)
            - locked <0x093a7fa0> (a java.io.PipedInputStream)
            at java.io.PipedOutputStream.write(PipedOutputStream.java:132)
            at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
            - locked <0x093a8058> (a java.io.BufferedOutputStream)
            at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
            at oracle.dbtools.raptor.newscriptrunner.WrapListenBufferOutputStream.write(WrapListenBufferOutputStream.java:149)
            at oracle.dbtools.db.ResultSetFormatter.rset2sqlplus(ResultSetFormatter.java:117)
            at oracle.dbtools.raptor.newscriptrunner.SQL.executeQuery(SQL.java:274)
            at oracle.dbtools.raptor.newscriptrunner.SQL.run(SQL.java:47)
            at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.runSQL(ScriptRunner.java:187)
            at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.run(ScriptRunner.java:127)
            at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:215)
            at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:145)
            at oracle.dbtools.raptor.scriptrunner.utils.ScriptUtils.runAsScript(ScriptUtils.java:114)
            at oracle.dbtools.raptor.scriptrunner.utils.ScriptUtils.runAsScript(ScriptUtils.java:71)
            at oracle.dbtools.raptor.InitializeConnectionListener.runLoginSql(InitializeConnectionListener.java:171)
            at oracle.dbtools.raptor.InitializeConnectionListener.initConnection(InitializeConnectionListener.java:127)
            at oracle.dbtools.raptor.InitializeConnectionListener$1.initializeConnection(InitializeConnectionListener.java:47)
            at oracle.dbtools.raptor.utils.Connections.initializeConnection(Connections.java:1493)
            at oracle.dbtools.raptor.utils.Connections.access$100(Connections.java:66)
            at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.getDatabase(Connections.java:181)
            - locked <0x080e7530> (a oracle.dbtools.raptor.utils.Connections$ConnectionInfo)
            at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:899)
            at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:880)
            at oracle.dbtools.raptor.navigator.DatabaseConnection.openConnectionImpl(DatabaseConnection.java:117)
            at oracle.dbtools.raptor.navigator.AbstractConnectionNode.getConnection(AbstractConnectionNode.java:30)
            - locked <0x080ea7b0> (a java.lang.Object)
            at oracle.dbtools.raptor.navigator.ConnectionFilter.getFactory(ConnectionFilter.java:94)
            at oracle.dbtools.raptor.navigator.ConnectionFilter$1.doWork(ConnectionFilter.java:119)
            at oracle.dbtools.raptor.navigator.ConnectionFilter$1.doWork(ConnectionFilter.java:104)
            at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:500)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
    "Scheduler" daemon prio=6 tid=0x368ff800 nid=0x147c in Object.wait() [0x385ef000..0x385efbe8]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x080ebc30> (a oracle.dbtools.raptor.backgroundTask.TaskLinkedList)
            at java.lang.Object.wait(Object.java:485)
            at oracle.dbtools.raptor.backgroundTask.TaskLinkedList.takeNextTask(TaskLinkedList.java:47)
            - locked <0x080ebc30> (a oracle.dbtools.raptor.backgroundTask.TaskLinkedList)
            at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$SchedulerThread.run(RaptorTaskManager.java:429)
    "ChangeSetService" prio=2 tid=0x368fec00 nid=0x12fc in Object.wait() [0x383ef000..0x383efce8]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x07d8aa58> (a oracle.jdevimpl.vcs.changeset.ChangeSetService)
            at java.lang.Object.wait(Object.java:485)
            at oracle.jdevimpl.vcs.changeset.ChangeSetService.awaitEvents(ChangeSetService.java:178)
            - locked <0x07d8aa58> (a oracle.jdevimpl.vcs.changeset.ChangeSetService)
            at oracle.jdevimpl.vcs.changeset.ChangeSetService.eventLoop(ChangeSetService.java:199)
            at oracle.jdevimpl.vcs.changeset.ChangeSetService.access$200(ChangeSetService.java:56)
            at oracle.jdevimpl.vcs.changeset.ChangeSetService$2.run(ChangeSetService.java:138)
            at java.lang.Thread.run(Thread.java:619)
    "TimerQueue" daemon prio=6 tid=0x368fe000 nid=0xf50 in Object.wait() [0x382ef000..0x382efd68]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at javax.swing.TimerQueue.run(TimerQueue.java:236)
            - locked <0x07e9d5f8> (a javax.swing.TimerQueue)
            at java.lang.Thread.run(Thread.java:619)
    "TimedCache-Timer" daemon prio=6 tid=0x35dd3800 nid=0x1134 in Object.wait() [0x3637f000..0x3637fa68]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.util.TimerThread.mainLoop(Timer.java:509)
            - locked <0x07699b40> (a java.util.TaskQueue)
            at java.util.TimerThread.run(Timer.java:462)
    "JarIndex Timer" daemon prio=6 tid=0x34f4dc00 nid=0xc90 in Object.wait() [0x3627f000..0x3627fae8]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.util.TimerThread.mainLoop(Timer.java:509)
            - locked <0x075b3e58> (a java.util.TaskQueue)
            at java.util.TimerThread.run(Timer.java:462)
    "AWT-EventQueue-0" prio=6 tid=0x34f3cc00 nid=0xc6c in Object.wait() [0x35d7f000..0x35d7fb68]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at java.awt.EventQueue.getNextEvent(EventQueue.java:479)
            - locked <0x075b3f08> (a java.awt.EventQueue)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:236)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    "AWT-Windows" daemon prio=6 tid=0x34f35000 nid=0x250 runnable [0x35b7f000..0x35b7fc68]
       java.lang.Thread.State: RUNNABLE
            at sun.awt.windows.WToolkit.eventLoop(Native Method)
            at sun.awt.windows.WToolkit.run(WToolkit.java:291)
            at java.lang.Thread.run(Thread.java:619)
    "AWT-Shutdown" prio=6 tid=0x34f34c00 nid=0x220 in Object.wait() [0x35a7f000..0x35a7fce8]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x075b40c8> (a java.lang.Object)
            at java.lang.Object.wait(Object.java:485)
            at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
            - locked <0x075b40c8> (a java.lang.Object)
            at java.lang.Thread.run(Thread.java:619)
    "Java2D Disposer" daemon prio=10 tid=0x34f28400 nid=0xe68 in Object.wait() [0x354cf000..0x354cfd68]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
            - locked <0x075b4158> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
            at sun.java2d.Disposer.run(Disposer.java:125)
            at java.lang.Thread.run(Thread.java:619)
    "Low Memory Detector" daemon prio=6 tid=0x01bd3800 nid=0xc44 runnable [0x00000000..0x00000000]
       java.lang.Thread.State: RUNNABLE
    "CompilerThread0" daemon prio=10 tid=0x01bcfc00 nid=0x13ac waiting on condition [0x00000000..0x34b8f790]
       java.lang.Thread.State: RUNNABLE
    "Attach Listener" daemon prio=10 tid=0x01bcc800 nid=0x141c runnable [0x00000000..0x00000000]
       java.lang.Thread.State: RUNNABLE
    "Signal Dispatcher" daemon prio=10 tid=0x01bc2000 nid=0x244 waiting on condition [0x00000000..0x00000000]
       java.lang.Thread.State: RUNNABLE
    "Finalizer" daemon prio=8 tid=0x01bb2400 nid=0x164c in Object.wait() [0x3488f000..0x3488fc68]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
            - locked <0x07530298> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
            at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=10 tid=0x01badc00 nid=0x1314 in Object.wait() [0x3478f000..0x3478fce8]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
            - locked <0x07530320> (a java.lang.ref.Reference$Lock)
    "main" prio=6 tid=0x01c8a800 nid=0x1050 waiting on condition [0x00000000..0x0012fab0]
       java.lang.Thread.State: RUNNABLE
    "VM Thread" prio=10 tid=0x01ba9c00 nid=0x1438 runnable
    "VM Periodic Task Thread" prio=10 tid=0x01bd4800 nid=0x1598 waiting on condition
    JNI global references: 2950
    Heap
    def new generation   total 9216K, used 1044K [0x04400000, 0x04df0000, 0x07530000)
      eden space 8256K,   7% used [0x04400000, 0x0449e5a0, 0x04c10000)
      from space 960K,  42% used [0x04c10000, 0x04c76e10, 0x04d00000)
      to   space 960K,   0% used [0x04d00000, 0x04d00000, 0x04df0000)
    tenured generation   total 121024K, used 32700K [0x07530000, 0x0eb60000, 0x2c400000)
       the space 121024K,  27% used [0x07530000, 0x0951f2f0, 0x0951f400, 0x0eb60000)
    compacting perm gen  total 57600K, used 57471K [0x2c400000, 0x2fc40000, 0x34400000)
       the space 57600K,  99% used [0x2c400000, 0x2fc1fe60, 0x2fc20000, 0x2fc40000)
    No shared spaces configured.

  • Serializing MimeMessage

    Hi ,
    I would like to send the MimeMessage object via socket connection. To do do that i have written the following code fragment
    Socket s = new Socket("localhost",3200);
    OutputStream os = s.getOutputStream();
    MimeMessage mimemessage
    //some code to create MimeMessage
    mimemessage.writeTo(os);
    os.close() // this is important step
    In this code fragment if i didnt close the output stream the message is not being delivered to the server side. But when i close the output stream it is closing the socket connection with the stream connection.
    What i neeed is i will be sending mimemessage objects via socke asynchronously. For that purpose i would like to keep the outputstream of the socket keep opent always. But how can i send the mimemessage object via socket without closing the stream.
    Please help me.
    thanks in advance,
    Sridhar reddy .R

    I tried that one also, but no hope.

  • Unable to write mimemessage to socket

    Hi ,
    I would like to send the MimeMessage object via socket connection. To do do that i have written the following code fragment
    Socket s = new Socket("localhost",3200);
    OutputStream os = s.getOutputStream();
    MimeMessage mimemessage
    //some code to create MimeMessage
    mimemessage.writeTo(os);
    os.close() // this is important step
    In this code fragment if i didnt close the output stream the message is not being delivered to the server side. But when i close the output stream it is closing the socket connection with the stream connection.
    What i neeed is i will be sending mimemessage objects via socke asynchronously. For that purpose i would like to keep the outputstream of the socket keep opent always. But how can i send the mimemessage object via socket without closing the stream.
    I tried os.flush() also. but no result.
    Please help me.
    thanks in advance,
    Sridhar reddy .R

    Try using ObjectOutputStreams insetad it's much easier.
    ObejectOutputStream oos = new ObejctOutputStream(s.getOuputStream());
    oos.write(mimeMessage);
    oos.flush();
    oos.close();
    If you are not playing with multiple streams this should work fine.

  • How to serialize the mimemessage

    Hi ,
    I would like to send the MimeMessage object via socket connection. To do do that i have written the following code fragment
    Socket s = new Socket("localhost",3200);
    OutputStream os = s.getOutputStream();
    MimeMessage mimemessage
    //some code to create MimeMessage
    mimemessage.writeTo(os);
    os.close() // this is important step
    In this code fragment if i didnt close the output stream the message is not being delivered to the server side. But when i close the output stream it is closing the socket connection with the stream connection.
    What i neeed is i will be sending mimemessage objects via socke asynchronously. For that purpose i would like to keep the outputstream of the socket keep opent always. But how can i send the mimemessage object via socket without closing the stream.
    I tried os.flush() also. but no result.
    Please help me.
    thanks in advance,
    Sridhar reddy .R

    You can always create a new FilterOutputStream. Overload the close() method so that it does not close the underlying socket output stream. It would look something like:
    Socket Output Stream
    CustomFilterOutputStream (close() method is not propogated to underlying socket stream)
    MimeOutputStream (close() method propogates to CustomFilterOutputStream)
    class Custom FilterOutputStream extends FilterOutputStream {
    private OutputStream nested;
    CustomFilterOutputStream(OutputStream nested) {
    this.nested = nested;
    public void close() {
    // Do nothing
    You might want to add a custom method, such as "closeSocket()", to the new filter output stream.
    - Saish
    "My karma ran over your dogma." - Anon

  • MimeMessage top and bottom boundaries

    I am writing a MimeMessage to an outputstream using the writeTo method. The outputstream is being sent over an HTTP connection. I am building a RosettaNet webservice. The problem is, my Mime messages look different than my trading partners. Their messages have a matching boundary on the top and bottom. Examples pasted below. The Boundaries marked in bold are the lines I want, but can't seem to get it to happen. Any suggestions?
    THEIRS:
    --314088.1142286539000.JavaMail.b2badm@boat
    Message-ID: <27425331.1142286539000.JavaMail.b2badm@boat>
    Mime-Version: 1.0
    Content-Type: multipart/related; type="application/xml";
         boundary="----=_Part_4_4718331.1142286539000"
    ------=_Part_4_4718331.1142286539000
    Content-Type: Application/XML
    Content-Transfer-Encoding: quoted-printable
    Content-Location: RN-Preamble
    Content-ID: <5074091.1142286539000.JavaMail.b2badm@boat>
    [xml document]
    ------=_Part_4_4718331.1142286539000
    Content-Type: Application/XML
    Content-Transfer-Encoding: quoted-printable
    Content-Location: RN-Delivery-Header
    Content-ID: <18447056.1142286539000.JavaMail.b2badm@boat>
    [xml document]
    ------=_Part_4_4718331.1142286539000
    Content-Type: Application/XML
    Content-Transfer-Encoding: quoted-printable
    Content-Location: RN-Service-Header
    Content-ID: <30288319.1142286539000.JavaMail.b2badm@boat>
    [xml document]
    ------=_Part_4_4718331.1142286539000
    Content-Type: Application/XML
    Content-Transfer-Encoding: quoted-printable
    Content-Location: RN-Service-Content
    Content-ID: <1501615.1142286539000.JavaMail.b2badm@boat>
    [xml document]
    ------=_Part_4_4718331.1142286539000--
    --314088.1142286539000.JavaMail.b2badm@boat--     
    MINE:
    Message-ID: <27425331.1142286539000.JavaMail.b2badm@boat>
    Mime-Version: 1.0
    Content-Type: multipart/related; type="application/xml";
         boundary="----=_Part_4_4718331.1142286539000"
    ------=_Part_4_4718331.1142286539000
    Content-Type: Application/XML
    Content-Transfer-Encoding: quoted-printable
    Content-Location: RN-Preamble
    Content-ID: <5074091.1142286539000.JavaMail.b2badm@boat>
    [xml document]
    ------=_Part_4_4718331.1142286539000
    Content-Type: Application/XML
    Content-Transfer-Encoding: quoted-printable
    Content-Location: RN-Delivery-Header
    Content-ID: <18447056.1142286539000.JavaMail.b2badm@boat>
    [xml document]
    ------=_Part_4_4718331.1142286539000
    Content-Type: Application/XML
    Content-Transfer-Encoding: quoted-printable
    Content-Location: RN-Service-Header
    Content-ID: <30288319.1142286539000.JavaMail.b2badm@boat>
    [xml document]
    ------=_Part_4_4718331.1142286539000
    Content-Type: Application/XML
    Content-Transfer-Encoding: quoted-printable
    Content-Location: RN-Service-Content
    Content-ID: <1501615.1142286539000.JavaMail.b2badm@boat>
    [xml document]
    ------=_Part_4_4718331.1142286539000--

    I'm sorry if that wasn't clear. I am using JavaMail. I add BodyPart objects of type Application/XML to a MimeMultipart object. I set the multipart on the MimeMessage. Then I use use MimeMessage.writeTo(outputstream) method to send the message to my trading partner. Their system is rejecting the message. The theory at the moment is because the message does not have these top and bottom boundaries. The weird thing is, my code can read the messages just fine. I'm using JavaMail to read it aswell. Maybe there is a property I need to set? Or maybe since I'm not sending it over SMTP, do I need to subclass Transport?

  • Error while deploying wsdl file to OER...

    I have installed OER(11.1.1.2) and trying to integrate with jdeveloper(11.1.1.5)...
    i have followed oracle suggested document while integration ...
    the problem while trying to deploy the file wsdl file to OER i am getting the following error
    Buildfile: D:\Oracle\Middleware1\jdeveloper\harvester\harvester-ant.xml
    introspect-file:
    [repository.submit] Unable to initialize harvester plugin: D:\Oracle\Middleware1\jdeveloper\harvester\plugins\osb10.productReader
    [repository.submit] Oracle Enterprise_Repository_Harvester version: v11.1.1.5.0-110414_0001-1399976
    [repository.submit] Unable to initialize harvester plugin: D:\Oracle\Middleware1\jdeveloper\harvester\plugins\osb10.productReader
    [repository.submit] Aug 11, 2011 12:53:17 PM org.apache.axis.attachments.MimeUtils getContentLength
    [repository.submit] SEVERE: Exception:
    [repository.submit] javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain
    [repository.submit]      at javax.activation.DataHandler.getInputStream(DataHandler.java:233)
    [repository.submit]      at javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:688)
    [repository.submit]      at org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:115)
    [repository.submit]      at org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:60)
    [repository.submit]      at org.apache.axis.attachments.AttachmentsImpl.getContentLength(AttachmentsImpl.java:406)
    [repository.submit]      at org.apache.axis.Message.getContentLength(Message.java:501)
    [repository.submit]      at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
    [repository.submit]      at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
    [repository.submit]      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    [repository.submit]      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    [repository.submit]      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    [repository.submit]      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    [repository.submit]      at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
    [repository.submit]      at org.apache.axis.client.Call.invoke(Call.java:2748)
    [repository.submit]      at org.apache.axis.client.Call.invoke(Call.java:2424)
    [repository.submit]      at org.apache.axis.client.Call.invoke(Call.java:2347)
    [repository.submit]      at org.apache.axis.client.Call.invoke(Call.java:1804)
    [repository.submit]      at com.flashline.registry.openapi.service.v300.FlashlineRegistryTrSoapBindingStub.assetMetadataCreateDIME(FlashlineRegistryTrSoapBindingStub.java:16008)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.ALERFacade.assetMetadataCreate(ALERFacade.java:757)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetMetadataCreate(OERWriter.java:961)
    [repository.submit]      at com.oracle.oer.sync.oer.client.component.attributes.AttributeSaverImpl.createMetadataEntry(AttributeSaverImpl.java:237)
    [repository.submit]      at com.oracle.oer.sync.oer.client.component.attributes.AttributeSaverImpl.saveAttributes(AttributeSaverImpl.java:69)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.saveAttributes(OERWriter.java:1247)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetCreate(OERWriter.java:434)
    [repository.submit]      at com.oracle.oer.sync.oer.client.component.artifact.ArtifactSaverImpl.findOrCreateArtifact(ArtifactSaverImpl.java:179)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.findOrCreateArtifactAssets(OERWriter.java:574)
    [repository.submit]      at com.oracle.oer.sync.framework.impl.MetadataEntityWriterImpl.createArtifactEntity(MetadataEntityWriterImpl.java:74)
    [repository.submit]      at com.oracle.oer.sync.plugin.artifact.wsdl.WSDLArtifactWriter.createArtifactEntity(WSDLArtifactWriter.java:33)
    [repository.submit]      at com.oracle.oer.sync.framework.impl.MetadataEntityWriterImpl.write(MetadataEntityWriterImpl.java:49)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.createEntities(OERWriter.java:333)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.write(OERWriter.java:279)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.write(OERWriter.java:221)
    [repository.submit]      at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:666)
    [repository.submit]      at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
    [repository.submit]      at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
    [repository.submit]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [repository.submit]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [repository.submit]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [repository.submit]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [repository.submit]      at java.lang.reflect.Method.invoke(Method.java:597)
    [repository.submit]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [repository.submit]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [repository.submit]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [repository.submit]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [repository.submit]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [repository.submit]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [repository.submit]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [repository.submit]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [repository.submit]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [repository.submit]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [repository.submit]      at org.apache.tools.ant.Main.start(Main.java:179)
    [repository.submit]      at org.apache.tools.ant.Main.main(Main.java:268)
    [repository.submit] Aug 11, 2011 12:53:17 PM org.apache.axis.attachments.MimeUtils writeToMultiPartStream
    [repository.submit] SEVERE: java.io.IOException:
    [repository.submit] javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/related; type="text/xml"; start="<7C0BB8BEF8426D99CB1155AAA88AE37E>";
    [repository.submit]      boundary="----=_Part_0_32955489.1313047397642"
    [repository.submit]      at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:877)
    [repository.submit]      at javax.activation.DataHandler.writeTo(DataHandler.java:302)
    [repository.submit]      at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
    [repository.submit]      at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
    [repository.submit]      at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:202)
    [repository.submit]      at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:461)
    [repository.submit]      at org.apache.axis.Message.writeTo(Message.java:534)
    [repository.submit]      at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511)
    [repository.submit]      at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
    [repository.submit]      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    [repository.submit]      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    [repository.submit]      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    [repository.submit]      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    [repository.submit]      at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
    [repository.submit]      at org.apache.axis.client.Call.invoke(Call.java:2748)
    [repository.submit]      at org.apache.axis.client.Call.invoke(Call.java:2424)
    [repository.submit]      at org.apache.axis.client.Call.invoke(Call.java:2347)
    [repository.submit]      at org.apache.axis.client.Call.invoke(Call.java:1804)
    [repository.submit]      at com.flashline.registry.openapi.service.v300.FlashlineRegistryTrSoapBindingStub.assetMetadataCreateDIME(FlashlineRegistryTrSoapBindingStub.java:16008)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.ALERFacade.assetMetadataCreate(ALERFacade.java:757)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetMetadataCreate(OERWriter.java:961)
    [repository.submit]      at com.oracle.oer.sync.oer.client.component.attributes.AttributeSaverImpl.createMetadataEntry(AttributeSaverImpl.java:237)
    [repository.submit]      at com.oracle.oer.sync.oer.client.component.attributes.AttributeSaverImpl.saveAttributes(AttributeSaverImpl.java:69)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.saveAttributes(OERWriter.java:1247)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetCreate(OERWriter.java:434)
    [repository.submit]      at com.oracle.oer.sync.oer.client.component.artifact.ArtifactSaverImpl.findOrCreateArtifact(ArtifactSaverImpl.java:179)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.findOrCreateArtifactAssets(OERWriter.java:574)
    [repository.submit]      at com.oracle.oer.sync.framework.impl.MetadataEntityWriterImpl.createArtifactEntity(MetadataEntityWriterImpl.java:74)
    [repository.submit]      at com.oracle.oer.sync.plugin.artifact.wsdl.WSDLArtifactWriter.createArtifactEntity(WSDLArtifactWriter.java:33)
    [repository.submit]      at com.oracle.oer.sync.framework.impl.MetadataEntityWriterImpl.write(MetadataEntityWriterImpl.java:49)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.createEntities(OERWriter.java:333)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.write(OERWriter.java:279)
    [repository.submit]      at com.oracle.oer.sync.plugin.writer.oer.OERWriter.write(OERWriter.java:221)
    [repository.submit]      at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:666)
    [repository.submit]      at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
    [repository.submit]      at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
    [repository.submit]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [repository.submit]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [repository.submit]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [repository.submit]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [repository.submit]      at java.lang.reflect.Method.invoke(Method.java:597)
    [repository.submit]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [repository.submit]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [repository.submit]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [repository.submit]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [repository.submit]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [repository.submit]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [repository.submit]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [repository.submit]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [repository.submit]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [repository.submit]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [repository.submit]      at org.apache.tools.ant.Main.start(Main.java:179)
    [repository.submit]      at org.apache.tools.ant.Main.main(Main.java:268)
    [repository.submit] Entity write failed due to: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
    com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.findOrCreateArtifactAssets(OERWriter.java:586)
         at com.oracle.oer.sync.framework.impl.MetadataEntityWriterImpl.createArtifactEntity(MetadataEntityWriterImpl.java:74)
         at com.oracle.oer.sync.plugin.artifact.wsdl.WSDLArtifactWriter.createArtifactEntity(WSDLArtifactWriter.java:33)
         at com.oracle.oer.sync.framework.impl.MetadataEntityWriterImpl.write(MetadataEntityWriterImpl.java:49)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.createEntities(OERWriter.java:333)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.write(OERWriter.java:279)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.write(OERWriter.java:221)
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:666)
         at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
         at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         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:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    Caused by: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.oer.client.component.artifact.ArtifactSaverImpl.findOrCreateArtifact(ArtifactSaverImpl.java:200)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.findOrCreateArtifactAssets(OERWriter.java:574)
         ... 26 more
    Caused by: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetCreate(OERWriter.java:438)
         at com.oracle.oer.sync.oer.client.component.artifact.ArtifactSaverImpl.findOrCreateArtifact(ArtifactSaverImpl.java:179)
         ... 27 more
    Caused by: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetMetadataCreate(OERWriter.java:963)
         at com.oracle.oer.sync.oer.client.component.attributes.AttributeSaverImpl.createMetadataEntry(AttributeSaverImpl.java:237)
         at com.oracle.oer.sync.oer.client.component.attributes.AttributeSaverImpl.saveAttributes(AttributeSaverImpl.java:69)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.saveAttributes(OERWriter.java:1247)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetCreate(OERWriter.java:434)
         ... 28 more
    Caused by: (500)Internal Server Error
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at com.flashline.registry.openapi.service.v300.FlashlineRegistryTrSoapBindingStub.assetMetadataCreateDIME(FlashlineRegistryTrSoapBindingStub.java:16008)
         at com.oracle.oer.sync.plugin.writer.oer.ALERFacade.assetMetadataCreate(ALERFacade.java:757)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetMetadataCreate(OERWriter.java:961)
         ... 32 more
    [repository.submit] Starting OERWriter Shutdown and Clean up...
    [repository.submit] Rolling Back
    [repository.submit] An error occurred performing the Repository operation:
    [repository.submit] com.oracle.oer.sync.framework.MetadataIntrospectionException: Entity write failed due to: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
    BUILD FAILED
    com.oracle.oer.sync.framework.MetadataIntrospectionException: Entity write failed due to: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:677)
         at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
         at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         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:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    Caused by: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.findOrCreateArtifactAssets(OERWriter.java:586)
         at com.oracle.oer.sync.framework.impl.MetadataEntityWriterImpl.createArtifactEntity(MetadataEntityWriterImpl.java:74)
         at com.oracle.oer.sync.plugin.artifact.wsdl.WSDLArtifactWriter.createArtifactEntity(WSDLArtifactWriter.java:33)
         at com.oracle.oer.sync.framework.impl.MetadataEntityWriterImpl.write(MetadataEntityWriterImpl.java:49)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.createEntities(OERWriter.java:333)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.write(OERWriter.java:279)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.write(OERWriter.java:221)
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:666)
         ... 19 more
    Caused by: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.oer.client.component.artifact.ArtifactSaverImpl.findOrCreateArtifact(ArtifactSaverImpl.java:200)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.findOrCreateArtifactAssets(OERWriter.java:574)
         ... 26 more
    Caused by: com.oracle.oer.sync.framework.MetadataIntrospectionException: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetCreate(OERWriter.java:438)
         at com.oracle.oer.sync.oer.client.component.artifact.ArtifactSaverImpl.findOrCreateArtifact(ArtifactSaverImpl.java:179)
         ... 27 more
    Caused by: com.oracle.oer.sync.framework.MetadataIntrospectionException: (500)Internal Server Error
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetMetadataCreate(OERWriter.java:963)
         at com.oracle.oer.sync.oer.client.component.attributes.AttributeSaverImpl.createMetadataEntry(AttributeSaverImpl.java:237)
         at com.oracle.oer.sync.oer.client.component.attributes.AttributeSaverImpl.saveAttributes(AttributeSaverImpl.java:69)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.saveAttributes(OERWriter.java:1247)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetCreate(OERWriter.java:434)
         ... 28 more
    Caused by: (500)Internal Server Error
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at com.flashline.registry.openapi.service.v300.FlashlineRegistryTrSoapBindingStub.assetMetadataCreateDIME(FlashlineRegistryTrSoapBindingStub.java:16008)
         at com.oracle.oer.sync.plugin.writer.oer.ALERFacade.assetMetadataCreate(ALERFacade.java:757)
         at com.oracle.oer.sync.plugin.writer.oer.OERWriter.assetMetadataCreate(OERWriter.java:961)
         ... 32 more
    Total time: 1 minute 6 seconds
    Please help me out from this issue...
    Thanks in advance...
    Edited by: ngsankar on Aug 11, 2011 2:09 PM
    Edited by: ngsankar on Aug 11, 2011 2:10 PM

    Hi,
    Were you able to resolve this error? I am facing the same issue
    --CH                                                                                                                                                                                   

  • Error of using Java Mail in Web Start

    Hi,
    I got a problem when using Java Mail to send email. My apps is a stand alone and no problem when it was deployed normally. When I used the Web Start to deploy it, the following error was caught when I tried to send email:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_2824645.1032281188963"
         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
         at javax.mail.Transport.send0(Transport.java:164)
         at javax.mail.Transport.send(Transport.java:81)
         at com.mailcom.client.util.EMail.sendMail(EMail.java:180)
    Here is the source code:
    public class EMail {
    public static void sendMail(String host,
    String sender,
    String recipient,
    String subject,
    String content,
    Vector fileNames) throws MessagingException {
    Properties props = new Properties();
    props.put("mail.smtp.host",host);
    Session session = Session.getDefaultInstance(props,null);
    session.setDebug(true);
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(sender));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipient,false));
    msg.setSubject(subject);
    Multipart mp = new MimeMultipart();
         // create and fill the first message part
         MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(content);
         mp.addBodyPart(mbp1);
    // attach the file to the message
    if(fileNames != null && fileNames.size() != 0) {
    FileDataSource fds = null;
    for(int i = 0; i < fileNames.size(); i++ ) {
    String currentFileName = (String)fileNames.elementAt(i);
         fds = new FileDataSource(currentFileName);
         // create the second message part
         MimeBodyPart mbp2 = new MimeBodyPart();
         mbp2.setDataHandler(new DataHandler(fds));
         mbp2.setFileName(fds.getName());
         // create the Multipart and its parts to it
         mp.addBodyPart(mbp2);
         // add the Multipart to the message
         msg.setContent(mp);
    msg.setHeader("X-Mailer",MAILER);
         // set the Date: header
         msg.setSentDate(new Date());
         // send the message
    line 180     Transport.send(msg);

    Yes. All the third party jar files and our application jar are put on the server side. Here is the JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for software-->
    <jnlp spec="1.0+" codebase="http://www.software.com/apps" href="client.JNLP">
    <information>
    <title>client application</title>
    <vendor> * </vendor>
    <homepage href="docs/help.html"/>
    <description>Client</description>
    <description kind="short">A tool</description>
    <icon href="images/logo.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3"/>
    <jar href="lib/client.jar"/>
    <jar href="lib/mail.jar"/>
    <jar href="lib/smtp.jar"/>
    <jar href="lib/activation.jar"/>
    </resources>
    <application-desc main-class="com.software.client.MainFrame">
         <argument>2226</argument>
         <argument>www.software.com</argument>
         <argument>5351</argument>
    </application>
    </jnlp>

  • Error in opening draft email saved with msg extension

    I am attempting to create a email and save it on local hard disc. The email is a file having msg extension. So that it can be opened with MS Outlook. Also I want it to be in DRAFT mode. Like we can create draft email with MS Outlook. This message will have multiple attachmets.
    Thus when user opens this file, it will get opened with MS Outlook and user will be able to edit the message text, TO/CC list, attachments.
    I am using MimeMessage.writeTo(Outstream) API to save the message to a file, say C:\test.msg
    But if I double click test.msg in explorer to open it, it gives error:
    Can't open file C:\test.msg. The file may not exist, you may not have permissions to open it, or it may be open in another program.
    Is it possible to create draft Outlook email message with msg extension?
    If yes, how?
    My code:
                   Properties props = new Properties();
                   props.load(new FileInputStream("C:/email.settings.properties"));
                   // create some properties and get the default Session
                   Session session = Session.getDefaultInstance(props);
                   session.setDebug(debug);
                   // create a message
                   msg = new MimeMessage(session);
                   //Create message from saved email
                   File savedFile = new File("C:/test.msg");
                   // set the from and to address
                   InternetAddress addressFrom = new InternetAddress(from);
                   msg.setFrom(addressFrom);
                   InternetAddress[] addressTo = null;
                   addressTo = new InternetAddress[recipients.length];
                   for (int i = 0; i < recipients.length; i++) {
                        addressTo[i] = new InternetAddress(recipients);
                   msg.setRecipients(Message.RecipientType.TO, addressTo);
                   // Setting the Subject and Content Type
                   msg.setSubject(subject);
                   msg.setContent(message, "text/plain");
                   MimeBodyPart attachmentBodyPart = new MimeBodyPart();
                   DataSource ds = new FileDataSource("C:/WhichSQLServer.pdf");
                   attachmentBodyPart.setDataHandler(new DataHandler(ds));
                   attachmentBodyPart.setFileName("WhichSQLServer.pdf");
                   Multipart multipart = new MimeMultipart();
                   multipart.addBodyPart(attachmentBodyPart);
                   msg.setContent(multipart);
                   //msg.setFlag(Flags.Flag.DRAFT, true);
                   msg.getFlags().add(Flags.Flag.DRAFT);
                   msg.setFileName("test.msg");
                   msg.saveChanges();
                   FileOutputStream os = new FileOutputStream("C:/test.msg");
                   msg.writeTo(os);
                   os.flush();
                   os.close();

    Outlook Msg files aren't as easy to write as you would believe. They are a propretary format that microsoft uses based on the DocFile format that Word and Excel uses.
    If you did the MimeMessage.writeTo(out) and saved it to a .eml file Outlook Express will open it, but Outlook doesn't directly read this file type.
    I've started on a library to allow the creation of Outlook msg files, right now it only allows you to set text, dates, long, and boolean values on the email message (which means you can set stuff like the recieved date/time, subject, body, to, from, etc), but it does not yet support attachments or extra recipents (CC, BCC, etc). I'll be updating the copy on my site as soon as I get the other stuff working (which isn't as easy as it sounds).
    Priasoft has a library available that can do what you want however.
    travis (at) overwrittenstack.com

  • Problem in sending a attachnment or photo using javamailapi

    Hello Sir,
    My program is perfectly when i'm sending simply a text message but problem is arised when i want to send an attachment.
    MY Code is
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    import javax.activation.*;
    import java.util.Properties;
    public class SendAtthachment
    private static final String SMTP_HOST_NAME = "smtp.gmail.com";
    private static final String SMTP_AUTH_USER = "[email protected]";
    private static final String SMTP_AUTH_PWD = "hindustan";
    private static final String fname= "my.jpg";
    private static final String emailMsgTxt = "motion is detected,some one is in your home";
    private static final String emailSubjectTxt = "motion";
    private static final String emailFromAddress = "[email protected]";
    private static final String[] emailList = {"[email protected]", "[email protected]"};
    public static void main(String args[]) throws Exception
    SendAtthachment smtpMailSender = new SendAtthachment();
    smtpMailSender.postMail( fname,emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
    System.out.println("Sucessfully Sent mail to All Users");
    public void postMail( String filename,String recipients[ ], String subject, String message , String from) throws MessagingException
    boolean debug = false;
    Properties props = new Properties();
    props.put("mail.smtp.host", SMTP_HOST_NAME);
    props.put("mail.smtp.starttls.enable","true");
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.port", "587") ;
    Authenticator auth = new SMTPAuthenticator();
    Session session = Session.getDefaultInstance(props, auth);
    session.setDebug(debug);
    Message msg = new MimeMessage(session);
    InternetAddress addressFrom = new InternetAddress(from);
    msg.setFrom(addressFrom);
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++)
    addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    msg.setSubject(subject);
    BodyPart msgBP = new MimeBodyPart();
    msg.setText("Take a look at this");
    Multipart mpart = new MimeMultipart();
    mpart.addBodyPart(msgBP);
    msgBP = new MimeBodyPart();
    DataSource src = new FileDataSource(filename);
    msgBP.setDataHandler(new DataHandler(src));
    msgBP.setFileName(filename);
    mpart.addBodyPart(msgBP);
    msg.setContent(message, "text/plain");
    msg.setContent(mpart);
    Transport.send(msg);
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    return new PasswordAuthentication(username, password);
    And this exception arised at run time-
    E:\gaurav\study material\motion detector\Motion Detector>java SendAtthachment
    Exception in thread "main" javax.mail.MessagingException: IOException while send
    ing message;
    nested exception is:
    java.io.IOException: No content
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
    at javax.mail.Transport.send0(Transport.java:189)
    at javax.mail.Transport.send(Transport.java:118)
    at SendAtthachment.postMail(SendAtthachment.java:76)
    at SendAtthachment.main(SendAtthachment.java:25)
    Caused by: java.io.IOException: No content
    at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSou
    rce.java:119)
    at javax.activation.DataHandler.writeTo(DataHandler.java:318)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:874)
    at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:444)
    at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:10
    2)
    at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:89
    7)
    at javax.activation.DataHandler.writeTo(DataHandler.java:330)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
    ... 4 more
    E:\gaurav\study material\motion detector\Motion Detector>

    You're creating a body part for the attachment, but you also need to
    create a body part for the main text of your message. See the sendfile.java
    demo program included with JavaMail for an example.

  • JavaMail send 9M pdf attach through Gmail

    Hello Everyone,
    I have this issue while trying to send email with attach (an pdf of 9M) . In the beginning I can see in the console that packets are sent really fast. Everything seem OK, but in time the speed decrease, Thus in about 10 minutes or more it barely sends anything. No errors whatsoever.
    If I am sending smaller attachments (under 900K) they work fine, i receive them, open them...all is great.
    I performed this test, sending the same content with the same attach directly from gmail web mail and it was uploaded in about 10 minutes- which i find it acceptable. Why does JavaMail take so long?
    My application is a standalone app , a swing app. I tried sending the mail both from GUI's main thread and from a distinct thread. No big difference.
    Anyone any idea? Someone hit this issue before?
    Here is some code:
    Properties props = new Properties();
              props.put("mail.smtp.user", userName);
    props.put("mail.smtp.host", host);
    if(!"".equals(port))
    props.put("mail.smtp.port", port);
    //if(!"".equals(starttls))
    //props.put("mail.smtp.starttls.enable",starttls);
    props.put("mail.smtp.auth", auth);
    if(debug)
    props.put("mail.smtp.debug", "true");
    else
    props.put("mail.smtp.debug", "false");          
              if(!"".equals(port))
    props.put("mail.smtp.socketFactory.port", port);
              if(!"".equals(socketFactoryClass))
    props.put("mail.smtp.socketFactory.class",socketFactoryClass);
              //if(!"".equals(fallback))
    //props.put("mail.smtp.socketFactory.fallback", fallback);
    try
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(debug);
    MimeMessage msg = new MimeMessage(session);
    //msg.setText(text);
    msg.setSubject(subject);
    msg.setFrom(new InternetAddress("[email protected]"));
    for(int i=0;i<to.length;i++)
    msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    for(int i=0;i<cc.length;i++)
    msg.addRecipient(Message.RecipientType.CC, new InternetAddress(cc[i]));
    for(int i=0;i<bcc.length;i++)
    msg.addRecipient(Message.RecipientType.BCC, new InternetAddress(bcc[i]));
    // create the message part
    MimeBodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setText(text);
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource("f:/__BOOKS__/1000_Java_Tips_low.pdf");
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName("1000_Java_Tips_low.pdf");
    messageBodyPart.setFileName(source.getName());
    //messageBodyPart.attachFile("f:/__BOOKS__/J2EE JSF Tutorial.pdf");
    multipart.addBodyPart(messageBodyPart);
    msg.setContent(multipart);
    msg.saveChanges();
    Transport transport = session.getTransport("smtp");
    transport.connect(host, userName, passWord);
    transport.sendMessage(msg, msg.getAllRecipients());
    transport.close();
    return true;
    Thanks and best regards,
    Ionut.

    Off course, i let the application run just to see it manage to send the mail. But after about an hour or more i get this error:
    GmItAHP6Wj1nblOEOurlwBQ1DEfXSmQPShOnSIN0mimP3+z9NI5wNEnVWNfvIUI1JXkagvIO8yvS
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:295)
    at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:284)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:727)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:715)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
    at com.sun.mail.util.TraceOutputStream.write(TraceOutputStream.java:114)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
    at com.sun.mail.util.CRLFOutputStream.write(CRLFOutputStream.java:84)
    at com.sun.mail.smtp.SMTPOutputStream.write(SMTPOutputStream.java:87)
    at com.sun.mail.util.CRLFOutputStream.write(CRLFOutputStream.java:75)
    at com.sun.mail.util.BASE64EncoderStream.write(BASE64EncoderStream.java:140)
    at javax.activation.DataHandler.writeTo(DataHandler.java:322)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:874)
    at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:444)
    at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:102)
    at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:897)
    at javax.activation.DataHandler.writeTo(DataHandler.java:330)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
    at ro.crm.johnny.mail.Mailer.sendMail(Mailer.java:160)
    at ro.crm.johnny.mail.Mailer.sendit(Mailer.java:45)
    at ro.crm.johnny.MainFrame.cmdSendEmailActionPerformed(MainFrame.java:1306)
    at ro.crm.johnny.MainFrame.access$2100(MainFrame.java:65)
    at ro.crm.johnny.MainFrame$22.actionPerformed(MainFrame.java:811)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    java.net.SocketException: Connection reset by peer: socket write error
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
    at ro.crm.johnny.mail.Mailer.sendMail(Mailer.java:160)
    Anyone, Any idea yet?

  • Strange Problem..No where the host is associated but still gives UnknownHos

    hallo..
    i have a strange problem...
    I connect to an smtp server to send emails.
    the following is the exception i get always
    it gives me Unknownhostexception : aatsv001 (my PC name)
    but i had never used it to send mails..nor in the email addresses(recipients)..but still it comes..
    the log shows the authentication of smtp and at
    354 go ahead it gives IOException..
    please help..
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth true
    250-PIPELINING
    250 8BITMIME
    DEBUG SMTP Found extension "PIPELINING", arg ""
    DEBUG SMTP Found extension "8BITMIME", arg ""
    DEBUG SMTP: use8bit false
    DEBUG SMTP SENT: MAIL FROM:<[email protected]>
    DEBUG SMTP RCVD: 250 ok
    DEBUG SMTP SENT: RCPT TO:< >
    DEBUG SMTP RCVD: 250 ok
    DEBUG SMTP SENT: RCPT TO:< >
    DEBUG SMTP RCVD: 250 ok
    DEBUG SMTP SENT: RCPT TO:< >
    DEBUG SMTP RCVD: 250 ok
    DEBUG SMTP SENT: RCPT TO:< >
    DEBUG SMTP RCVD: 250 ok
    Verified Addresses
    I removed the email addresses here totally 4
    DEBUG SMTP SENT: DATA
    DEBUG SMTP RCVD: 354 go ahead
    java.net.UnknownHostException: aatsv001
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
         at java.net.Socket.connect(Socket.java:426)
         at java.net.Socket.connect(Socket.java:376)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
         at sun.net.www.http.HttpClient.New(HttpClient.java:336)
         at sun.net.www.http.HttpClient.New(HttpClient.java:317)
         at sun.net.www.http.HttpClient.New(HttpClient.java:312)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
         at java.net.URL.openStream(URL.java:960)
         at javax.activation.URLDataSource.getInputStream(URLDataSource.java:100)
         at javax.activation.DataHandler.writeTo(DataHandler.java:297)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
         at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
         at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68)
         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
         at com.aat.PudisJobController.PMail.sendEmail(PMail.java:85)
         at com.aat.server.MessageFilterProcessing.doPostProcessing(MessageFilterProcessing.java:186)
         at com.aat.server.MessageFilterProcessing.doPostProcessing(MessageFilterProcessing.java:161)
         at com.aat.PudisJobController.PTask.doPostProcessingForStdReport(PTask.java:247)
         at com.aat.PudisJobController.PTask.saveTaskInfo(PTask.java:222)
         at com.aat.PudisJobController.PTaskWaiter.run(PTaskWaiter.java:45)
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
         java.net.UnknownHostException: aatsv001
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:353)
         at com.aat.PudisJobController.PMail.sendEmail(PMail.java:85)
         at com.aat.server.MessageFilterProcessing.doPostProcessing(MessageFilterProcessing.java:186)
         at com.aat.server.MessageFilterProcessing.doPostProcessing(MessageFilterProcessing.java:161)
         at com.aat.PudisJobController.PTask.doPostProcessingForStdReport(PTask.java:247)
         at com.aat.PudisJobController.PTask.saveTaskInfo(PTask.java:222)
         at com.aat.PudisJobController.PTaskWaiter.run(PTaskWaiter.java:45)
    can u plss tell me wt actually happening?
    thanx in advance
    K�vi

    re-post

  • Problems with the private key at email signing

    Error when running the app: org.bouncycastle.cms.CMSStreamException: Inappropriate key for signature.
    I'm trying to sign an email with a smart card using Java, mime type multipart / signed, when I do a debug the code without saving the
    message or without sending, there is no error or warning, or exception. But when I save or send the message out, I'm getting errors,
    inappropriate key .
    When I save the message:
    body.writeTo(new FileOutputStream("signed.message"));
    Whe I send the message:
    Transport.send(body);
    The error:
    Exception in thread "main" org.bouncycastle.cms.CMSStreamException: key inappropriate for signature.
    at org.bouncycastle.cms.CMSSignedDataStreamGenerator$CmsSignedDataOutputStream.close(Unknown Source)
    at org.bouncycastle.mail.smime.SMIMESignedGenerator$ContentSigner.write(Unknown Source)
    at org.bouncycastle.mail.smime.handlers.PKCS7ContentHandler.writeTo(Unknown Source)
    at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
    at javax.activation.DataHandler.writeTo(DataHandler.java:302)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)
    at org.bouncycastle.mail.smime.handlers.multipart_signed.outputBodyPart(Unknown Source)
    at org.bouncycastle.mail.smime.handlers.multipart_signed.outputBodyPart(Unknown Source)
    at org.bouncycastle.mail.smime.handlers.multipart_signed.writeTo(Unknown Source)
    at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
    at javax.activation.DataHandler.writeTo(DataHandler.java:302)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1743)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1719)
    at javaemail.SignedMultipartEmailTest.main(SignedMultipartEmailTest.java:537)
    Caused by: java.security.InvalidKeyException: Supplied key (sun.security.mscapi.RSAPrivateKey) is not a RSAPrivateKey instance
    at org.bouncycastle.jce.provider.JDKDigestSignature.engineInitSign(Unknown Source)
    at java.security.SignatureSpi.engineInitSign(SignatureSpi.java:86)
    at java.security.Signature$Delegate.engineInitSign(Signature.java:1104)
    at java.security.Signature.initSign(Signature.java:498)
    at org.bouncycastle.cms.CMSSignedDataStreamGenerator$SignerInf.toSignerInfo(Unknown Source)
    ... 16 more
    Java Result: 1
    BUILD SUCCESSFUL
    In the code:
    PrivateKey key = (PrivateKey)keyStore.getKey(aliasNm, null);
    gen.addSigner(key, signCert, SMIMESignedGenerator.DIGEST_SHA1, new AttributeTable(signedAttrs), null);
    where key is the private key of the alias from signature certificate at smart card of type RSAPrivateKey type, according to the debugger
    but according to the javadoc returns Type Key but is forced to type PrivateKey which extends to the other.
    This line is like a example which I'm using, is a bouncy castle example, but with generated certificates, I changed to use certificates
    from smarct card.
    signCert is the certificate associated with key , certificate of SIGNATURE from smartcard.
    At the debugger:
    In the method keyStore.getKey() I'm using null instead of char[] password because is using the windows certificate store which store the
    certificates at the smart card and is getting the PIN with PIN dialogue, and is loading the keystore perfectly and I'm getting the
    certificates from smart card.
    I tried to use:
    PrivateKey key = (PrivateKey)keyStore.getKey(aliasNm, PIN_FROM_SMARTCARD);
    And I'm getting the same value when I use null.
    The value at the debugger is:
    (java.security.PrivateKey) (sun.security.mscapi.RSAPrivateKey) RSAPrivateKey [size=2048 bits, type=Signature,
    container=hexadecimal_number](the same hexadecimal number in both cases)
    Obviously we can see in the error:
    Caused by: java.security.InvalidKeyException: Supplied key (sun.security.mscapi.RSAPrivateKey) is not a RSAPrivateKey instance
    And we can see too:
    RSAPrivateKey de 2048 bits
    at the debugger, in the key value.
    I can't understand why I'm getting the error only when the message is saved, or sended.
    If the key was inappropriate I would receive an error, or an exception when I'm not sending or saving the message.
    These are one, of the last lines of the code that I'm hidding with //
    When I save the message:
    //body.writeTo(new FileOutputStream("signed.message"));
    Whe I send the message:
    //Transport.send(body);
    If I uncomment one of these lines, I'm receiving the errors, previously written above
    Any suggestion?
    Than you
    Regards

    Try to reset the device by pressing hold of the home and power button for 15-20 seconds and letting of when the Apple logo appears.

  • Unknown exception triggered by my Java Mail call

    I don't know if there is a Java Mail specific forum or not, so I put this here.
    I'm getting an IOException when I attempt to send my message. Below is the full text I see. If you understand what I'm doing wrong, please let me know. The code it attempting to send a multipart MIME message. It has a body which is "See attached file(s).\n.". I also attached a small text file. Finally, since this was just going to be a test e-mail, I added myself as a recipient.
    DATA
    354 Enter mail, end with "." on a line by itself
    java.io.IOException: No content
    at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:106)
    at javax.activation.DataHandler.writeTo(DataHandler.java:304)
    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)
    at javax.mail.Transport.send0(Transport.java:169)
    at javax.mail.Transport.send(Transport.java:98)
    at m3.main(m3.java:518)
    Exception of type class javax.mail.MessagingException
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    java.io.IOException: No content
    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 m3.main(m3.java:518)
    Caused by: java.io.IOException: No content
    at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:106)
    at javax.activation.DataHandler.writeTo(DataHandler.java:304)
    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)
    ... 3 more

    If that is the case, I'm setting the body wrong. The existing code is too complex for easy posting here. However, in a few hours, I should be able to create a simplified version.

  • 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.

Maybe you are looking for

  • Want to restrict redandend data and find therelevant workcenter

    Hi friends        i am developing the following report in pp output is coming but same data comes in two times and also fetched the workcenter irrelavant. pl give me a solutions   SELECT F~MATNR F~AUFNR F~PSMNG G~XMNGA G~PERNR G~BUDAT G~GRUND G~VORNR

  • Opening stored web sites rote me to default search

    Hello , when I want to look offline at a stored website ,I allwaysw end up at the 'default search ' in the adress line. How can I open my storted sites correctly? Thanks

  • AWM closes on connection to DB - Urgent!

    Hi there, I have installed Analytic Workspace Manager 10.2.0.1...and have set the database to my current database (10.2)... However, when I try to connect to the database, it closes the window and gives the following error report : Local Time = Fri J

  • How to find where iWeb is saving the files?

    greetings. i used iweb last year to make a couple web pages... i normally just edit html directly and don't use this kind of software... i cannot find where it is saving the pages i've updated... the location in ~/Site that has the files from last ye

  • Getting video from iPad to Apple TV

    I'm having an issue playing videos on ipad on apple tv via airplay.  When I play a video, then press the apple tv icon on the iPad,  all that comes up ion my tv is a small icon on bottom left of whatever apple tv is showing with the title of the vide