GW API in Services / Threads

I've had some issues dealing with the ADMIN API and threads and I solved my
problems by keeping the GW API in the main thread. My Problem now is I run a
Service that nees to run and I am getting the following message...
Unable to cast COM object of type 'AdminTypeLibrary.SystemClass' to
interface type 'AdminTypeLibrary.DIADSystem'. This operation failed because
the QueryInterface call on the COM component for the interface with IID
'{35FC2357-811A-11D0-8A96-00805FC16077}' failed due to the following error:
No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE)).
Code Snippet:
Dim oNovell As Object = New clsNovellAPINET
Dim oTempNovell As Object = New clsNovellAPINET
Dim strGroupwiseFileID As String
Dim oGWSystem As New AdminTypeLibrary.System
Dim oGWUsers As AdminTypeLibrary.IADUsers
Dim oGWUser3 As AdminTypeLibrary.IADUser3
Dim strGWPO, strGWDomain As String
Dim MyReturn As Boolean = False
Dim StriptedUserName As String
Dim StriptedPO As String
Dim StriptedDomain As String
oNovell.FullName = "[ROOT]"
oNovell.HighConfidenceMode = True
oNovell.BoundObject = UserName
strGroupwiseFileID = oNovell.GetFieldValue("NGW: File Id")
Try
If [String].IsNullOrEmpty(Trim(strGroupwiseFileID)) = False Then
strGWPO = oNovell.GetFieldValue("NGW: Post Office").ToString
oTempNovell.FullName = "[ROOT]"
oTempNovell.HighConfidenceMode = True
oTempNovell.BoundObject = strGWPO
strGWDomain = oTempNovell.GetFieldValue("NGW:
Domain").ToString
*** oGWSystem.ConnectByDN(strGWDomain) 'ERRORS HERE
oGWUsers = oGWSystem.Users
I have narrowed this down to be a threading issues. Services that use timers
to kick off sections of codes (Or in this Case a Class Library) still run
under the Thread of the Timer. Not the main code (The service) does anyone
know how to get around this perticular issue???????
Thanks
Michael Baker

Yeah thats pretty much what I am finding and it's a pain in the butt. As a
service you normally do not have access to the Primary thread.........I
guesss I will have to be satified with a Scheduled task...Not sure If I want
to try Delagates in a service.
If the SOAP Admin API comes out lets Jump for joy....
"John Baird" <[email protected]> wrote in message
news:[email protected]...
>I dont know if this is your problem, but I found that the GW Admin API
> produced seemingly random exceptions if CoInitialize and CoCreateInstance
> were called in any thread except the main thread. Providing I call those
> in
> the main thread, everything works fine.
>
> John
>
> "Michael Baker" <[email protected]> wrote in message
> news:[email protected]...
>> I've had some issues dealing with the ADMIN API and threads and I solved
> my
>> problems by keeping the GW API in the main thread. My Problem now is I
>> run
> a
>> Service that nees to run and I am getting the following message...
>>
>> Unable to cast COM object of type 'AdminTypeLibrary.SystemClass' to
>> interface type 'AdminTypeLibrary.DIADSystem'. This operation failed
> because
>> the QueryInterface call on the COM component for the interface with IID
>> '{35FC2357-811A-11D0-8A96-00805FC16077}' failed due to the following
> error:
>> No such interface supported (Exception from HRESULT: 0x80004002
>> (E_NOINTERFACE)).
>>
>>
>> Code Snippet:
>>
>> Dim oNovell As Object = New clsNovellAPINET
>> Dim oTempNovell As Object = New clsNovellAPINET
>> Dim strGroupwiseFileID As String
>> Dim oGWSystem As New AdminTypeLibrary.System
>> Dim oGWUsers As AdminTypeLibrary.IADUsers
>> Dim oGWUser3 As AdminTypeLibrary.IADUser3
>> Dim strGWPO, strGWDomain As String
>> Dim MyReturn As Boolean = False
>> Dim StriptedUserName As String
>> Dim StriptedPO As String
>> Dim StriptedDomain As String
>> oNovell.FullName = "[ROOT]"
>> oNovell.HighConfidenceMode = True
>> oNovell.BoundObject = UserName
>> strGroupwiseFileID = oNovell.GetFieldValue("NGW: File Id")
>> Try
>> If [String].IsNullOrEmpty(Trim(strGroupwiseFileID)) = False
> Then
>> strGWPO = oNovell.GetFieldValue("NGW: Post
> Office").ToString
>> oTempNovell.FullName = "[ROOT]"
>> oTempNovell.HighConfidenceMode = True
>> oTempNovell.BoundObject = strGWPO
>> strGWDomain = oTempNovell.GetFieldValue("NGW:
>> Domain").ToString
>>
>> *** oGWSystem.ConnectByDN(strGWDomain) 'ERRORS HERE
>>
>> oGWUsers = oGWSystem.Users
>>
>>
>> I have narrowed this down to be a threading issues. Services that use
> timers
>> to kick off sections of codes (Or in this Case a Class Library) still run
>> under the Thread of the Timer. Not the main code (The service) does
>> anyone
>> know how to get around this perticular issue???????
>>
>> Thanks
>> Michael Baker
>>
>>
>
>

Similar Messages

  • Anybody has experience calling ID API web service in Java

    Hello,
    as you know we can programmatically update ID objects by call ID APIs (web service). To do that you need to import the wsdl into a java project, generate web service client and call the client to update ID objects.
    I've tried this in NWDS CE version. However I got error when generating web service client from the wsdl of the ID web service. Only the BusinessComponentService passed the ws client genertion, the rest web services do not work.
    The error I got:
    IWAB0399E Error in generating Java from WSDL:  java.lang.NullPointerException
        java.lang.NullPointerException
        at org.apache.axis.wsdl.toJava.JavaInterfaceWriter.writeOperation(JavaInterfaceWriter.java:126)
    Anybody has experience with ID API?
    Thanks
    Jayson

    HI Jayson,
    you can also request the web service directly.
    For example, you could create a local xml file with the values you want to pass to the web service and configure a file 2 soap scenario within XI itself.
    You can create interfaces for each available web service.
    You could call this scenario "ID objects generator" or something and save the .tpz for the repository objects of this scenario, since you could reuse it in other projects.
    Other than that, in Teched '08, Bill Li showed a lot of proxies developed over Java to consume the ID API web services, and they all seemed to work ok. However I do think he used NW Developers Studio 7.0 (2004s), not CE.
    I'd raise an OSS msg with SAP in order to check the problem you're getting.
    Regards,
    Henrique.

  • Assertion failed: poll() is a blocking call and cannot be called on the Service thread

    Hi
    We are getting a strange issue, the application successfully joins the cluster but after start failing with following exception.
    The cluster have three nodes storage disabled web-logic and two standalone coherence JVM's, we are using distributed cache with Local scheme
    <Error> (thread=DistributedCache, member=4): Assertion failed: poll() is a blocking call and cannot be called on the Service thread
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:5)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.get(PartitionedCache.CDB:26)
    at com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1655)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.get(PartitionedCache.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
    at com.thehartford.pi.core.referencedata.dao.cachedaoimpl.ReferenceCacheDAOImpl.getReferenceData(Unknown Source)
    at com.thehartford.pi.core.caching.cachestore.ReferenceCacheStore.load(Unknown Source)
    at com.tangosol.net.cache.ReadWriteBackingMap$CacheLoaderCacheStore.load(ReadWriteBackingMap.java:6132)
    at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.loadInternal(ReadWriteBackingMap.java:5616)
    at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.load(ReadWriteBackingMap.java:4698)
    at com.tangosol.net.cache.ReadWriteBackingMap.get(ReadWriteBackingMap.java:717)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.get(PartitionedCache.CDB:10)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onGetRequest(PartitionedCache.CDB:23)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$GetRequest.run(PartitionedCache.CDB:1)
    at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:34)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:722)
    ERROR 2013-09-20 09:06:42,515    :  [2013-09-20 09:06:42.515/8740.228 Oracle Coherence GE 3.7.1.0 <Error> (thread=DistributedCache, member=4): Assertion failed: poll() is a blocking call and cannot be called on the Service thread
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:5)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.get(PartitionedCache.CDB:26)
    at com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1655)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.get(PartitionedCache.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
    at com.thehartford.pi.core.referencedata.dao.cachedaoimpl.ReferenceCacheDAOImpl.getReferenceData(Unknown Source)
    at com.thehartford.pi.core.caching.cachestore.ReferenceCacheStore.load(Unknown Source)
    at com.tangosol.net.cache.ReadWriteBackingMap$CacheLoaderCacheStore.load(ReadWriteBackingMap.java:6132)
    at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.loadInternal(ReadWriteBackingMap.java:5616)
    at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.load(ReadWriteBackingMap.java:4698)
    at com.tangosol.net.cache.ReadWriteBackingMap.get(ReadWriteBackingMap.java:717)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.get(PartitionedCache.CDB:10)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onGetRequest(PartitionedCache.CDB:23)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$GetRequest.run(PartitionedCache.CDB:1)
    at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:34)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
              at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)

    Hi
    The problem is that you are making a re-entrant call back into a cache service from the service thread or worker thread of a cache service. This is a bad thing to do as you risk deadlocking your cluster by consuming all of the threads in the service. From the stack trace it looks like you are doing a get on a cache which is calling through to a cache store which is then doing a get on another cache.
    For example, you have done a "get" on a cache, that has now consumed a worker thread (call it Thread-1), that thread is calling the cache store which is doing a get on another cache in the same cache service so will now consume another thread (call it Thread-2) so you now have two threads in use, Thread-1 will not return until Thread-2 completes. Now say you had 2 worker threads on your cache service and two "get" calls came in at the same time, Get-1 and Get-2. Both worker threads are now in use so when Get-1 calls the cache store to do a get on the other cache then it has to wait for a worker thread to become free to process the get. The same applies to Get-2, it is calling the cache store and waiting for a thread to become free. The problem is no threads will become free as they are all waiting. Hopefully that is a clear enough explanation of why you get the warning.
    Read this Constraints on Re-entrant Calls - 12c (12.1.2) This is for 12.1.2 but the same applies for any Coherence version.
    JK

  • AssertionException poll() is blocking call cant be called on Service thread

    I'm getting this:
    Exception in thread "main" (Wrapped: Failed request execution for DistributedCache service on Member(Id=1, Timestamp=2009-07-16 15:23:58.704,
    Address=192.168.10.167:8088, MachineId=25255, Location=machine:box2,process:4700, Role=CoherenceServer)) com.tangosol.util.AssertionException: poll()
    is a blocking call and cannot be called on the Service thread
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onPutRequest(DistributedCache.CDB:66)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$PutRequest.run(DistributedCache.CDB:1)
         at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
         at com.tangosol.coherence.component.net.message.requestMessage.distributedCacheKeyRequest.ExtendedKeyRequest.onReceived(ExtendedKeyRequest.CDB:4)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:37)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service thread
         at com.tangosol.coherence.Component._assertFailed(Component.CDB:12)
         at com.tangosol.coherence.Component._assert(Component.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:4)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.containsKey(DistributedCache.CDB:24)
         at com.tangosol.util.ConverterCollections$ConverterMap.containsKey(ConverterCollections.java:1494)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.containsKey(DistributedCache.CDB:1)
         at com.tangosol.coherence.component.util.SafeNamedCache.containsKey(SafeNamedCache.CDB:1)
         at oms.ExecutionMapTrigger.process(ExecutionMapTrigger.java:22)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.processTriggers(DistributedCache.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.put(DistributedCache.CDB:30)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onPutRequest(DistributedCache.CDB:37)
         ... 8 moreIt's caused by doing a CacheFactory.getCache(...) inside a MapTrigger's process(MapTrigger.Entry entry) method. Is there some other way I can access a cache from another cache's MapTrigger? My MapTrigger looks like this. The idea of course is that when new Executions are placed in the cache, Coherence updates a Position in the positions cache in response to this event.
    public class ExecutionMapTrigger implements MapTrigger {
        public ExecutionMapTrigger() {
        InvocableMap.EntryProcessor positionFillProc = new PositionFillProcessor();
        public void process(MapTrigger.Entry entry) {
            Execution e = (Execution)entry.getValue();
            Position.connectToCache(); // CacheFactory.getCache("positions");
            PositionKey positionKey = new PositionKey(e.getSymbol(), e.getAccount());
            if (!Position.cache.containsKey(positionKey)) {
               System.out.println("\tNEW position: " + e.getAccount() + " " + e.getSymbol()  );
               Position p = new Position();
               p.setSymbol(e.getSymbol());
               p.setAccount(e.getAccount());
               Position.cache.put(positionKey, p);
            } else {
               System.out.println("\tEXISTING position: " + e.getAccount() + " " + e.getSymbol() + " " + Position.cache.get(positionKey));
            Position.cache.invoke(positionKey, positionFillProc);
        // ---- hashCode() and equals() must be implemented
        public boolean equals(Object o) {
            return o != null && o.getClass() == this.getClass();
        public int hashCode() {
            return getClass().getName().hashCode();
    }Is there a different way I should be doing this? Using a BackingMapListener?
    Thanks,
    Andrew

    I am also stuck with similar issue. I used a backingmap listener and wanted to transformation on the data sent by the client. I am unable to update another cache.
         CoherenceTransformer transformer= new CoherenceTransformer();
              TransformedTransactionData transformedRecord = new TransformedTransactionData() ;
              ReconTransformedRecord reconTransformedRecord = new ReconTransformedRecord();
         //     NamedCache cache = CacheFactory.getCache("TxnData_TransformedRecordCache");
              System.out.println(" < <<<< Entry Inserted in ImportRecord Cache>>>>");
         //     PivotCreationListener pivotcreator ;
              ReconImportRecord i = (ReconImportRecord) event.getNewValue();
              if (logger.isDebugEnabled()) {
                   logger.debug(i.getImportRecord().toString());
              transformedRecord = (TransformedTransactionData) transformer.transform((TransactionData) i.getImportRecord(),transformedRecord);
              if (logger.isDebugEnabled()) {
                   logger.debug(transformedRecord.toString());
              reconTransformedRecord.setKey(i.getKey());
              reconTransformedRecord.setTransformedRecord(transformedRecord);
              System.out.println(reconTransformedRecord);
         Thread thread = new Thread(new ProcessorThread(reconTransformedRecord));
              thread.start();
    2010-10-26 05:22:34.171/43.280 Oracle Coherence GE 3.6.0.0 <Warning> (thread=DistributedCache:PartitionedPofCache, member=1): Application code running on "PartitionedPofCache" service thread(s) should not call ensureCache as this may result in deadlock. The most common case is a CacheFactory call from a custom CacheStore implementation.
    2010-10-26 05:22:34.171/43.281 Oracle Coherence GE 3.6.0.0 <Error> (thread=DistributedCache:PartitionedPofCache, member=1): Assertion failed: poll() is a blocking call and cannot be called on the Service thread
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:5)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:29)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:36)
         at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
         at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:33)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:875)
         at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:712)
         at com.xxx.listeners.ProcessorThread.<init>(ProcessorThread.java:10)
    Few Questions
    How do i start a thread that is not involved with service thread ?
    How do I directly update a backingmap. Some example would help.

  • How to create activity workflow based on the Web API 2 services

    Hi,
    We have Web API 2 services and we want create activity workflow based on the Web API 2 services.
    Web API 2 services provide some application operations and based on this operations we would like to create custom activity workflow.
    Question:
    Is that possible?
    Could you please give best practices to create activity workflow based on the Web API 2 services ?
    Thanks for your support.

    HI Max_P,
    Welcome to workflow forum.
    ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.
    I researched relevant topic about creating workflow application using Web API 2, I just found these resources about it.
    Learn About ASP.NET Web API
    Hope it helps.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Dir API - Web services Time out

    Hi All,
    I am using Dir API web services to make some mass updates to Config objects. I have developed a client in Java and was able to access/edit the ID objects. The problem I am facing is since the number of objects in the change list is huge ( >1000),  the web services time out.
    I tried to set the time out parameter for the web service call using
    context.put(BindingProviderProperties.REQUEST_TIMEOUT, 600*1000);
    also,
    context.put("com.sun.xml.ws.connect.timeout", 600*1000);
    context.put("com.sun.xml.ws.request.timeout", 600*1000);
    None of them seem to have any impact.
    Any ideas what is the correct way to adjust this time out behaviour?
    Thanks
    Jai

    Hi RK,
    Thanks for that. I am not looking at changing the time outs at Server. I am just interested in changing the time outs for the request I make from the client. The point is I do not want to impact any other services running in the server.
    In WS Navigator, it seems possible to change the time out value using Invocation parameters. (Did not try this yet!!)
    So it must be possible to set the time out for the request from the client.
    Thanks
    Jai
    Edited by: Jaishankar on Aug 25, 2011 2:49 PM

  • ITunes iPodService.exe spawns service thread that consumes 40%plus CPU use

    I have 7.1.1.5 loaded. all was well then I noticed that the program became unresponsive, lost coms with the iPod and developed the above symptom.. I have deleted all iPod temp files, iTunes related files in local data and have deleted and reinstalled iTunes - still the same problem, as soon as ipodsvcs comes up it spawns a service thread that will run forever at 40% usage....
    I can see the iPod in windows so it is not a comms issue with the iPod - just an iTunes issue.There doesn't appear to be a way to get Apple to respond to this issue. They seem to archive all such threads so you cannot update??
    WIn dual core   Windows XP Pro  

    if it was a windows drive letter confusion, i'm afraid that that one is due to the way that Windows assigns drive letters. it hits other devices as well. for possible symptoms for ipods and/or other devices, see:
    Windows confuses iPod with network drive or hard drive and may keep iPod from mounting or songs may seem to disappear
    "iTunes has detected an iPod in recovery mode - Use iTunes to restore"
    New drive or mapped network drive not available in Windows Explorer

  • API JNA e Threads - FORZEN WINDOW

    I'm creating one aplication JAVA DESKTOP for open the WEBCAM USB or NATIVE.
    I'm using JNA for open library native windows avicap.dll
    My system operation is Windows 7
    I have 3 interfaces:
    One have name MapHWND
    package interf;
    import com.sun.jna.FromNativeContext;
    import com.sun.jna.Pointer;
    import com.sun.jna.PointerType;
    import com.sun.jna.win32.StdCallLibrary;
    import com.sun.jna.win32.W32APIFunctionMapper;
    import com.sun.jna.win32.W32APITypeMapper;
    import java.util.HashMap;
    import java.util.Map;
    public interface MapHWND extends StdCallLibrary{
    Map UNICODE_OPTIONS = new HashMap() {
    put(OPTION_TYPE_MAPPER, W32APITypeMapper.UNICODE);
    put(OPTION_FUNCTION_MAPPER, W32APIFunctionMapper.UNICODE);
    Map ASCII_OPTIONS = new HashMap() {
    put(OPTION_TYPE_MAPPER, W32APITypeMapper.ASCII);
    put(OPTION_FUNCTION_MAPPER, W32APIFunctionMapper.ASCII);
    Map DEFAULT_OPTIONS = Boolean.getBoolean("w32.ascii") ? ASCII_OPTIONS
    : UNICODE_OPTIONS;
    public static class HANDLE extends PointerType {
    @Override
    public Object fromNative(Object nativeValue, FromNativeContext context) {
    Object o = super.fromNative(nativeValue, context);
    if (INVALID_HANDLE_VALUE.equals(o)) {
    return INVALID_HANDLE_VALUE;
    return o;
    public static class HWND extends HANDLE {
    HANDLE INVALID_HANDLE_VALUE = new HANDLE() {
    super.setPointer(Pointer.createConstant(-1));
    @Override
    public void setPointer(Pointer p) {
    throw new UnsupportedOperationException("Immutable reference");
    Other have name Avicap32:
    package interf;
    import com.sun.jna.win32.StdCallLibrary;
    public interface Avicap32 extends StdCallLibrary, MapHWND{
    //Métodos
    public int capCreateCaptureWindowA(
    String lpszWindowName, //Create a function od capture windows
    int dwStye, //style of window
    int x, //..
    int y, //..
    int nWidth, //..
    int nHeight, //position and size of window
    int hWndParent, /identify of father window
    int nID); //window ID
    //********************************* Constantes ********************************
    public static final short WM_USER = 1024;
    public static final int WM_CAP_START = WM_USER;
    public static int WS_CHILD = 0x40000000;
    public static int WS_VISIBLE = 0x10000000;
    public static int SWP_NOZORDER = 0x4;
    public static int HWND_BOTTOM = 1;
    public static int SWP_NOMOVE = 0x2;
    // Defines start of the message range
    public static final int WM_CAP_GET_CAPSTREAMPTR = (WM_CAP_START+ 1);
    public static final int WM_CAP_SET_CALLBACK_ERROR = (WM_CAP_START+ 2);
    public static final int WM_CAP_SET_CALLBACK_STATUS = (WM_CAP_START+ 3);
    public static final int WM_CAP_SET_CALLBACK_YIELD = (WM_CAP_START+ 4);
    public static final int WM_CAP_SET_CALLBACK_FRAME = (WM_CAP_START+ 5);
    public static final int WM_CAP_SET_CALLBACK_VIDEOSTREAM = (WM_CAP_START+ 6);
    public static final int WM_CAP_SET_CALLBACK_WAVESTREAM = (WM_CAP_START+ 7);
    public static final int WM_CAP_GET_USER_DATA = (WM_CAP_START+ 8);
    public static final int WM_CAP_SET_USER_DATA = (WM_CAP_START+ 9);
    public static final int WM_CAP_DRIVER_CONNECT = 0x40a;//(WM_CAP_START+ 10);
    public static final int WM_CAP_DRIVER_DISCONNECT = (WM_CAP_START+ 11);
    public static final int WM_CAP_DRIVER_GET_NAME = (WM_CAP_START+ 12);
    public static final int WM_CAP_DRIVER_GET_VERSION = (WM_CAP_START+ 13);
    public static final int WM_CAP_DRIVER_GET_CAPS = (WM_CAP_START+ 14);
    public static final int WM_CAP_FILE_SET_CAPTURE_FILE = (WM_CAP_START+ 20);
    public static final int WM_CAP_FILE_GET_CAPTURE_FILE = (WM_CAP_START+ 21);
    public static final int WM_CAP_FILE_ALLOCATE = (WM_CAP_START+ 22);
    public static final int WM_CAP_FILE_SAVEAS = (WM_CAP_START+ 23);
    public static final int WM_CAP_FILE_SET_INFOCHUNK = (WM_CAP_START+ 24);
    public static final int WM_CAP_FILE_SAVEDIB = (WM_CAP_START+ 25);
    public static final int WM_CAP_EDIT_COPY = (WM_CAP_START+ 30);
    public static final int WM_CAP_SET_AUDIOFORMAT = (WM_CAP_START+ 35);
    public static final int WM_CAP_GET_AUDIOFORMAT = (WM_CAP_START+ 36);
    public static final int WM_CAP_DLG_VIDEOFORMAT = (WM_CAP_START+ 41);
    public static final int WM_CAP_DLG_VIDEOSOURCE = (WM_CAP_START+ 42);//usb
    public static final int WM_CAP_DLG_VIDEODISPLAY = (WM_CAP_START+ 43);
    public static final int WM_CAP_GET_VIDEOFORMAT = (WM_CAP_START+ 44);
    public static final int WM_CAP_SET_VIDEOFORMAT = (WM_CAP_START+ 45);
    public static final int WM_CAP_DLG_VIDEOCOMPRESSION = (WM_CAP_START+ 46);
    public static final int WM_CAP_SET_PREVIEW = 0x432;//(WM_CAP_START+ 50);
    public static final int WM_CAP_SET_OVERLAY = (WM_CAP_START+ 51);
    public static final int WM_CAP_SET_PREVIEWRATE = 0x434;//(WM_CAP_START+ 52);
    public static final int WM_CAP_SET_SCALE = 0x435;//(WM_CAP_START+ 53);
    public static final int WM_CAP_GET_STATUS = (WM_CAP_START+ 54);
    public static final int WM_CAP_SET_SCROLL = (WM_CAP_START+ 55);
    public static final int WM_CAP_GRAB_FRAME = (WM_CAP_START+ 60);
    public static final int WM_CAP_GRAB_FRAME_NOSTOP = (WM_CAP_START+ 61);
    public static final int WM_CAP_SEQUENCE = (WM_CAP_START+ 62);
    public static final int WM_CAP_SEQUENCE_NOFILE = (WM_CAP_START+ 63);
    public static final int WM_CAP_SET_SEQUENCE_SETUP = (WM_CAP_START+ 64);
    public static final int WM_CAP_GET_SEQUENCE_SETUP = (WM_CAP_START+ 65);
    public static final int WM_CAP_SET_MCI_DEVICE = (WM_CAP_START+ 66);
    public static final int WM_CAP_GET_MCI_DEVICE = (WM_CAP_START+ 67);
    public static final int WM_CAP_STOP = (WM_CAP_START+ 68);
    public static final int WM_CAP_ABORT = (WM_CAP_START+ 69);
    public static final int WM_CAP_SINGLE_FRAME_OPEN = (WM_CAP_START+ 70);
    public static final int WM_CAP_SINGLE_FRAME_CLOSE = (WM_CAP_START+ 71);
    public static final int WM_CAP_SINGLE_FRAME = (WM_CAP_START+ 72);
    public static final int WM_CAP_PAL_OPEN = (WM_CAP_START+ 80);
    public static final int WM_CAP_PAL_SAVE = (WM_CAP_START+ 81);
    public static final int WM_CAP_PAL_PASTE = (WM_CAP_START+ 82);
    public static final int WM_CAP_PAL_AUTOCREATE = (WM_CAP_START+ 83);
    public static final int WM_CAP_PAL_MANUALCREATE = (WM_CAP_START+ 84);
    // Following added post VFW 1.1
    public static final int WM_CAP_SET_CALLBACK_CAPCONTROL = (WM_CAP_START+ 90);
    // Defines end of the message range
    public static final int WM_CAP_END = WM_CAP_SET_CALLBACK_CAPCONTROL;
    public static final int IDS_CAP_BEGIN = 300; //(* "Capture Start" *)
    public static final int IDS_CAP_END = 301; //(* "Capture End" *)
    public static final int IDS_CAP_INFO = 401; //(* "%s" *)
    public static final int IDS_CAP_OUTOFMEM = 402; //(* "Out of memory" *)
    public static final int IDS_CAP_FILEEXISTS = 403; //(* "File '%s' exists -- overwrite it?" *)
    public static final int IDS_CAP_ERRORPALOPEN = 404; //(* "Error opening palette '%s'" *)
    public static final int IDS_CAP_ERRORPALSAVE = 405; //(* "Error saving palette '%s'" *)
    public static final int IDS_CAP_ERRORDIBSAVE = 406; //(* "Error saving frame '%s'" *)
    public static final int IDS_CAP_DEFAVIEXT = 407; //(* "avi" *)
    public static final int IDS_CAP_DEFPALEXT = 408; //(* "pal" *)
    public static final int IDS_CAP_CANTOPEN = 409; //(* "Cannot open '%s'" *)
    public static final int IDS_CAP_SEQ_MSGSTART = 410; //(* "Select OK to start capture\nof video sequence\nto %s." *)
    public static final int IDS_CAP_SEQ_MSGSTOP = 411; //(* "Hit ESCAPE or click to end capture" *)
    public static final int IDS_CAP_VIDEDITERR = 412; //(* "An error occurred while trying to run VidEdit." *)
    public static final int IDS_CAP_READONLYFILE = 413; //(* "The file '%s' is a read-only file." *)
    public static final int IDS_CAP_WRITEERROR = 414; //(* "Unable to write to file '%s'.\nDisk may be full." *)
    public static final int IDS_CAP_NODISKSPACE = 415; //(* "There is no space to create a capture file on the specified device." *)
    public static final int IDS_CAP_SETFILESIZE = 416; //(* "Set File Size" *)
    public static final int IDS_CAP_SAVEASPERCENT = 417; //(* "SaveAs: %2ld%% Hit Escape to abort." *)
    public static final int IDS_CAP_DRIVER_ERROR = 418; //(* Driver specific error message *)
    public static final int IDS_CAP_WAVE_OPEN_ERROR = 419; //(* "Error: Cannot open the wave input device.\nCheck sample size, frequency, and channels." *)
    public static final int IDS_CAP_WAVE_ALLOC_ERROR = 420; //(* "Error: Out of memory for wave buffers." *)
    public static final int IDS_CAP_WAVE_PREPARE_ERROR = 421; //(* "Error: Cannot prepare wave buffers." *)
    public static final int IDS_CAP_WAVE_ADD_ERROR = 422; //(* "Error: Cannot add wave buffers." *)
    public static final int IDS_CAP_WAVE_SIZE_ERROR = 423; //(* "Error: Bad wave size." *)
    public static final int IDS_CAP_VIDEO_OPEN_ERROR = 424; //(* "Error: Cannot open the video input device." *)
    public static final int IDS_CAP_VIDEO_ALLOC_ERROR = 425; //(* "Error: Out of memory for video buffers." *)
    public static final int IDS_CAP_VIDEO_PREPARE_ERROR = 426; //(* "Error: Cannot prepare video buffers." *)
    public static final int IDS_CAP_VIDEO_ADD_ERROR = 427; //(* "Error: Cannot add video buffers." *)
    public static final int IDS_CAP_VIDEO_SIZE_ERROR = 428; //(* "Error: Bad video size." *)
    public static final int IDS_CAP_FILE_OPEN_ERROR = 429; //(* "Error: Cannot open capture file." *)
    public static final int IDS_CAP_FILE_WRITE_ERROR = 430; //(* "Error: Cannot write to capture file. Disk may be full." *)
    public static final int IDS_CAP_RECORDING_ERROR = 431; //(* "Error: Cannot write to capture file. Data rate too high or disk full." *)
    public static final int IDS_CAP_RECORDING_ERROR2 = 432; //(* "Error while recording" *)
    public static final int IDS_CAP_AVI_INIT_ERROR = 433; //(* "Error: Unable to initialize for capture." *)
    public static final int IDS_CAP_NO_FRAME_CAP_ERROR = 434; //(* "Warning: No frames captured.\nConfirm that vertical sync interrupts\nare configured and enabled." *)
    public static final int IDS_CAP_NO_PALETTE_WARN = 435; //(* "Warning: Using default palette." *)
    public static final int IDS_CAP_MCI_CONTROL_ERROR = 436; //(* "Error: Unable to access MCI device." *)
    public static final int IDS_CAP_MCI_CANT_STEP_ERROR = 437; //(* "Error: Unable to step MCI device." *)
    public static final int IDS_CAP_NO_AUDIO_CAP_ERROR = 438; //(* "Error: No audio data captured.\nCheck audio card settings." *)
    public static final int IDS_CAP_AVI_DRAWDIB_ERROR = 439; //(* "Error: Unable to draw this data format." *)
    public static final int IDS_CAP_COMPRESSOR_ERROR = 440; //(* "Error: Unable to initialize compressor." *)
    public static final int IDS_CAP_AUDIO_DROP_ERROR = 441; //(* "Error: Audio data was lost during capture, reduce capture rate." *)
    //(* status string IDs *)
    public static final int IDS_CAP_STAT_LIVE_MODE = 500; //(* "Live window" *)
    public static final int IDS_CAP_STAT_OVERLAY_MODE = 501; //(* "Overlay window" *)
    public static final int IDS_CAP_STAT_CAP_INIT = 502; //(* "Setting up for capture - Please wait" *)
    public static final int IDS_CAP_STAT_CAP_FINI = 503; //(* "Finished capture, now writing frame %ld" *)
    public static final int IDS_CAP_STAT_PALETTE_BUILD = 504; //(* "Building palette map" *)
    public static final int IDS_CAP_STAT_OPTPAL_BUILD = 505; //(* "Computing optimal palette" *)
    public static final int IDS_CAP_STAT_I_FRAMES = 506; //(* "%d frames" *)
    public static final int IDS_CAP_STAT_L_FRAMES = 507; //(* "%ld frames" *)
    public static final int IDS_CAP_STAT_CAP_L_FRAMES = 508; //(* "Captured %ld frames" *)
    public static final int IDS_CAP_STAT_CAP_AUDIO = 509; //(* "Capturing audio" *)
    public static final int IDS_CAP_STAT_VIDEOCURRENT = 510; //(* "Captured %ld frames (%ld dropped) %d.%03d sec." *)
    public static final int IDS_CAP_STAT_VIDEOAUDIO = 511; //(* "Captured %d.%03d sec. %ld frames (%ld dropped) (%d.%03d fps). %ld audio bytes (%d,%03d sps)" *)
    public static final int IDS_CAP_STAT_VIDEOONLY = 512; //(* "Captured %d.%03d sec. %ld frames (%ld dropped) (%d.%03d fps)" *)
    public static final int IDS_CAP_STAT_FRAMESDROPPED = 513; //(* "Dropped %ld of %ld frames (%d.%02d%%) during capture." *)
    And fiishing, the interface User32:
    package interf;
    import com.sun.jna.win32.StdCallLibrary;
    public interface User32 extends StdCallLibrary, MapHWND{   
    public boolean DestroyWindow(int hndw);
    public boolean ShowWindow(long hWnd, int nCmdShow);
    public HWND FindWindow(String winClass, String title);
    public int SetWindowPos(
    int hwnd,
    int hWndInsertAfter,
    int x,
    int y,
    int cx,
    int cy,
    int wFlags);
    public int SendMessageA(
    int hwnd,
    int wMsg,
    int wParam,
    int lParam);
    I have a JFrame with a botton and a painel of palet AWT.
    In the universal variables and threading
    //chamando as APIs
    Avicap32 libA = (Avicap32) Native.loadLibrary("AviCap32", Avicap32.class);
    User32 libU = (User32) Native.loadLibrary("User32", User32.class);
    int hWnd;
    int DeviceID = 0;
    String DeviceIndex = String.valueOf(DeviceID);
    int id, idt;
    public class LoopFrame implements Runnable{
    @Override
    public void run() {                            
    int i = 0;
    libU.SendMessageA(hWnd, Avicap32.WM_CAP_DRIVER_CONNECT, DeviceID, id);
    for(;;){                   
    //libU.SendMessageA(hWnd, Avicap32.WM_CAP_SET_SCALE, 0, hWnd);
    //libU.SendMessageA(hWnd, Avicap32.WM_CAP_SET_PREVIEWRATE, 66, hWnd);
    //libU.SendMessageA(hWnd, Avicap32.WM_CAP_SET_PREVIEW, -1, hWnd);
    libU.SendMessageA(hWnd, Avicap32.WM_CAP_GRAB_FRAME, -1, id);
    libU.SetWindowPos(hWnd, Avicap32.HWND_BOTTOM, 0, 0, 320, 240, Avicap32.SWP_NOMOVE | Avicap32.SWP_NOZORDER);
    System.out.print("\n"+i++);
    public void starting(){
    Thread thrLoop = new Thread(new LoopFrame());
    repaint();
    thrLoop.start();
    In the event botton a have:
    //pImga é o painel da paleta AWT
    WComponentPeer cpp = (WComponentPeer) pImage.getPeer();
    long h = cpp.getHWnd();
    id = (int)h;
    WComponentPeer cppT = (WComponentPeer) this.getPeer();
    long hh = cppT.getHWnd();
    idt = (int)hh;
    try{ 
    hWnd = libA.capCreateCaptureWindowA("0", Avicap32.WS_VISIBLE | Avicap32.WS_CHILD, 0, 0, 0, 0, id, 0);
    }catch(Exception ex){JOptionPane.showMessageDialog(null, ex.toString());}
    starting();
    Executing, my apllication is frozen!
    I don't that it's happening.
    Please, someone explain me.

    If you think somebody is going to debug your code, you are mistaken. So try to explain it yourself. If you don't know how to use a debugger, add debugging System.out.println statements everywhere to narrow down which code is actually executed and which is not. If something is locking up, you'll be able to find it. And the next time you post code:
    a) only post relevant code. Nobody needs to see that native stuff
    b) put it between \ tags so it is actually readable.
    Do your best to make it possible to be helped.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Issue in creating sales order using process_header API (web service)

    Hi All,
    I am trying to create sales order header using web service call to OE_ORDER_PUB.Process_header API.
    When I pass the inputs and test the service,I get output with return_status='S'. But no record falls at the OE_ORDER_HEADER_ALL table.
    I cant identify where the problem is.Is there any commit missing? Pls help me resolve this issue.
    Thanks,
    Vinoth

    Hi All,
    I am trying to create sales order header using web service call to OE_ORDER_PUB.Process_header API.
    When I pass the inputs and test the service,I get output with return_status='S'. But no record falls at the OE_ORDER_HEADER_ALL table.
    I cant identify where the problem is.Is there any commit missing? Pls help me resolve this issue.
    Thanks,
    Vinoth

  • Addon has failed to connect to the DI API. Service Not found

    Hi
    I've upgraded database B1 8.8 SP0 PL11 to B1 8.8 SP0 PL15.
    Addon was complied on B1 8.8. SP0 PL11 envrionment.
    I've error message when I started addon.
    Addon_Name addon has failed to connect to the DI API.
    Error Details:
    Service not found.
    DI API was uninstalled and re installed.
    And I deleted SM_OBS_DLL directory.
    But I can not resolve this issue.
    Please help me,
    Joanne

    Hi Joanne,
    I had exactly the same problem with patch 15 after an upgrade from 8.8 patch 13. The SBO client didn't automatically update so I had to use Add/Remove programs to remove the old client and DI API and then the new client install failed from the B1_SHR folder with a 1158 error (no description).
    What I did to correct it was install the DI API from the <servername>\B1_SHR\B1DIAPI folder and then run the client install afterwards. This time the client install worked fine and I can run addons that use the DI API. I think there was some registry entry issues, maybe with the upgrader or the client installer.
    Kind Regards,
    Owen

  • Parameters of Collaboration Suite API Web Services

    I wish to use the OCS API by invoking directly Web Services such as
    FileManager.wsdl, UserManager.wsdl etc from BPEL process.
    For example, when I use Java API I write
          NamedValue[] properties = RLM.login (username, password, null, null);but how can I pass those null's as parameters of Web Service when invoking
    RemoteLoginManager.wsdl directly ?
    Operation "login" requires 4 parameters:
    <wsdl:message name="loginRequest">
      <wsdl:part name="username" type="soapenc:string" />
      <wsdl:part name="password" type="soapenc:string" />
      <wsdl:part name="options" type="impl:ArrayOfNamedValue" />
      <wsdl:part name="userAttributes" type="impl:ArrayOfAttributeRequest" />
    </wsdl:message>When I assign only username and password (and do not assign other 2 parameters)
    a runtime error occurs...
    Another example.
    When I want to create folder I write:
         NamedValue[] folderDef = newNamedValueArray (
         new Object[][]
              { Attributes.NAME,          folderName   },
              { Attributes.DESCRIPTION,     folderDesc   }
         Item folder = FM.createFolder (workspace.getId(), folderDef, null);But how can I pass that array of arrays "folderDef" as a Web Service parameter
    when invoking FileManager.wsdl directly from BPEL process ?
    Will you show me example, please ?
    Message was edited by:
    Z-User

    I was also looking for something like this..I did not get any response.
    Did you tried to add bpel:exec ? you can call OCS api in the java blockc within BPEL. I am using this and creating folder from BPEL.

  • How to webcenter portal consume API Oracle Service Registry

    Hy,
    If anyone has ever consume API implements oracle service registry (OSR) into Webcenter portal?
    If I make an application ADF then consume the API OSR, after that I register into WebCenter. Whether this could be one way out?
    Please attention
    Thanks in advance

    Hi Steve,
    There are several ways to invoke a Web Service once you have the WSDL URL and/or endpoint URL. You could invoke it from a Standalone Java Client, from another Web Service ( see Chapter 6 at http://download.oracle.com/docs/cd/E14571_01/web.1111/e13758/toc.htm ). Alternatively, you could simply use the JDeveloper Web Service Proxy wizard which can help you create a Web Service Proxy (Client) in a matter of a few clicks.
    HTH,
    Yogesh

  • XAMMP, APIs, WEB SERVICES, PROXY GENERATORS

    I have the following installed on my computer Dreamweaver CS4 localhost XAMPP with PHP5 & MYSQL I would like to use dreamweaver to connect to Web Service API's such as Google, Amazon etc. I would like to communicate to the API's with PHP5's SOAP. How do I configure the proxy generators in Dreamweaver? I have not got Coldfusion.

    Dreamweaver won't do it for you automatically. You need to write the code yourself. The Zend Framework makes it relatively easy to connect to a variety of services, such as Amazon. See: http://framework.zend.com/manual/en/zend.service.html. Requires a good understanding of PHP.

  • API/Web Service/CLI

    Does VIN have a CLI, Web Service or API to interact with, and schedule or automate tasks ?

    VIN does not have an officially supported API.
    But there are unofficial ways to interact with VIN, see William Lam blog post on the subject -
    http://www.virtuallyghetto.com/2012/11/extracting-information-from-vin-vsphere_6.html

  • Java API (web services) for  exportMetadata and importMetadata

    We ususally use WLST command : exportMetadata and importMetadata to export/import MDS. is there any corresponding web services or Java API avalaible for the similar purpose?
    Thanks

    Hi,
    U can expose a EJB or a java class as a webservice in webdynpro and u can use it in webdynpro directly and if u want to use it through Portal u need to create proxies and do it.
    U can go through this weblog which helps u in creating a Bean as a webservice.
    /people/sap.user72/blog/2005/09/15/creating-a-web-service-and-consuming-it-in-web-dynpro
      And u can expose the services created in XI also as webservices.
    Regards,
    Sirisha.

Maybe you are looking for