1 Replies Last post: Oct 10, 2005 12:10 PM by Serge Piletsky  
Julian Salerno   7 posts since
Apr 24, 2006
Currently Being Moderated

Oct 8, 2005 11:02 AM

IPersistStorage interface is not supported; OleMessageLoop

Using JRE version 1.5.0_04 Java HotSpot(TM) Client VM on Windows XP, SP2

 

The error below is shown on the console, but the application appears to continue successfully.

The scenarion is the

Any ideas on what is wrong ?

 

Here is the snippet from my code:

 

//the invocation using OleMessageLoop.....

try

{

    OleMessageLoop.invokeMethod(this, "createPdfOleObject");

}

catch (Exception e)

{

    e.printStackTrace();

}

.............

//the method:

    public void createPdfOleObject()

    {

        IAcroAXDocShim areader = AcroPDF.create(ClsCtx.INPROC_SERVER);

        IOleObject oleObject = new IOleObjectImpl(areader);

        try

          {

               _container.insertObject(oleObject);

          }

          catch (Exception e)

          {

               LOG.error(e.getMessage());

          }

.......

    }

 

Here's the error:

 

0    Main message loop ERROR com.jniwrapper.win32.automation.OleContainerHelper  - IPersistStorage interface is not supported.

com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80004002; E_NOINTERFACE (No such interface supported)

     at com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:624)

     at com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:650)

     at com.jniwrapper.win32.com.impl.IUnknownImpl.queryInterface(SourceFile:460)

     at com.jniwrapper.win32.com.impl.IUnknownImpl.queryInterface(SourceFile:454)

     at com.jniwrapper.win32.automation.OleContainerHelper.k(SourceFile:357)

     at com.jniwrapper.win32.automation.OleContainerHelper.insert(SourceFile:341)

     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

     at java.lang.reflect.Method.invoke(Unknown Source)

     at com.jniwrapper.win32.a.run(SourceFile:617)

     at com.jniwrapper.win32.MessageLoopThread.doInvokeAndWait(SourceFile:183)

     at com.jniwrapper.win32.MessageLoopThread.doInvokeMethod(SourceFile:272)

     at com.jniwrapper.win32.automation.OleContainer.a(SourceFile:369)

     at com.jniwrapper.win32.automation.OleContainer.insertObject(SourceFile:619)

     at au.com.practica.common.StandardOleIntegration.createPdfOleObject(StandardOleIntegration.java:146)

     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

     at java.lang.reflect.Method.invoke(Unknown Source)

     at com.jniwrapper.win32.a.run(SourceFile:617)

     at com.jniwrapper.win32.d.run(SourceFile:463)

 

Serge Piletsky TeamDev Ltd. 670 posts since
Apr 24, 2006
Currently Being Moderated
1. Oct 10, 2005 12:10 PM in response to: Julian Salerno
Re: IPersistStorage interface is not supported; OleMessageLoop

Hi Julian,

 

This exception is just a log message that OleContainer failed to query the IPersistStorage interface from an embedded object. In the updated version of JNIWrapper library we have removed this logging.

 

Message was edited by: Administrator

More Like This

  • Retrieving data ...