DMS API
Hi,
I was just going through the Dynamic Monitoring Service provided by Oracle9ias. I am having a few doubts.
Can I access the DMS Metrics from my application(e.g servlet)?If so, How? I need this since I want to display some of the DMS metrics from my application.
Is the javadoc available for the DMS API? Is there a detailed document that explains the usage of the DMS API.
Regards,
jagannath
I am also interested in this topic. I have done a little research on DMS and have not found anything conclusive.
I might've missed a whitepaper but, if anyone knows, please kindly direct me towards the proper direction.
Thanks,
Maxime
Similar Messages
-
OC4J 9.0.4 DMS API?
Does anyone have experience in using the dms api in an application, to obtain statistics about the container 'health'? For instance: we would like our application to log information about global-thread-pool usage. Is this possible? How should this be done?
Can you try the "-updateConfig" option of admin.jar?
java -jar admin.jar ormi://localhost admin Matrox -updateConfigTo my vague memory, the "-restart" option does not necessarily implies reading the config files again. -
How can I get oracle.dms.* API Javadoc
Hi, every Oracle system expert,
I am going to developing a servlet to get the all the performance matrics from the AggreSpy(a per-packeged servlet in Oracle9iAS).
Is any one know how can I get oracle.dms.* package, How can get dms API.
dms - dynamic monitoring service is a monitoring framwork of the Oracle9iAS.
I have search everywhere on the Oracle web site, still cannot found. but I haven't install Oracle9iAS yet.
Does it should be somewhere in the Oracle_home/lib
Thanks in advance!
ElyEly,\\why don't you ask this question in one of the Oracle Application Server forums ?
Frank -
Document Management - store and retrieve
Currently we are running on SRM 4.0 with SRM 5.0 server and Netweaver 6.4. Our screens were developed using BSPs and running in SAP Portal 5.0 (soon to be 6.0, hopefully). What is the recommendation for storing and retrieving documents? There are SEVERAL postings on different sites, but not getting anywhere. Some of the postings contain specific function modules (like Bapi_document_create2, CVAPI, O_Document_ ) but were not found in our system. We did find CL_BDS_DOCUMENT, but found the following statement "SAP currently recommends not using BDS or DMF. Even use of the other Knowledge Provider services should be evaluated carefully." within this site's documentation under Knowledge Provider section. Can anyone refer us to some technical documents and hopefully sample code?
Your question is not easy to answer. There are different options to store and retrieve documents. First of all it depends on the functionality you need on your documents. Since I have no experience with SAP KM I can only talk about the options within SAP NetWeaver.
The SAP Knowledge Provider is divided into different part. The most basic part is the CMS API(Content Management Service) (All function modules starting with SCMS_*). This API allows the retrieval and storage of documents in terms of the SAP Knowledge provider document model where a document consists of components and each component corresponds to the content. With the CMS API you can store and retrieve those documents in a Content Server via the HTTP 4.5 interface.
Such a content server can be an external archive system that is certified for the HTTP 4.5 API (a list is provided by the ICC), the SAP data base or preferably the SAP content server (coming with SAP NetWeaver).
All document management services in SAP (SAP ArchiveLink, Business Document Service, SAP Records Management, Document Management System) are clients of the SAP Knowledge Provider CMS API.
Now, in order to model documents, the SAP Knowledge provider comes with the SAP DMS API. This DMS API is used to model complex document models (attributes, relations, ...) based on a so called content model that can be modelled via the document modeling workbench (DMWB). Here, the document management services mentioned above behave different. The SAP Knowledge provider is only infrastructure. This infrastructure has specializations using this infrastructure. Here are the most important ones I know about.
SAP ArchiveLink: This services offers the storage and retrieval of simple images and the service of linking those images to business objects. Those links are for example contained in the table TOA01.
So, the main focus here is to be able to navigate from a business object to the related images. It further has a workflow integration. The classical example is the invoice related to an FI document.
SAP ArchiveLink does not support any kind of document management functionality such as versioning and indexing. But, with the introduction of the SAP Document Finder, this can be done project specifically.
SAP ArchiveLink comes with a nice document viewer for viewing stored documents.
SAP Business Document Service: The business object serevice was designed to be a simple API for managing documents including simple versioning and indexing of images and documents.
SAP Document Management Service: This is the specialization with respect to PLM. So, DMS has the focus on engineering documents but can also be used to store other images and documents. SAP DMS offers document management functionalities such as check-in, check out of documents.
SAP DMS is using a classification service for classifying documents. It also has a very large BAPI API for the external access on those documents. As far as I know, SAP DMS is not part of SAP NetWeaver (therefore, you did not find CVAPI*).
SAP Records Management: SAP Records Management can be used for document management but is more than that.
Within Records Management it is possible to create hierarchical structures and to fill them with all kinds of documents. You can either integrate scanned images (via ArchiveLink) or you can use the SAP Records Management Document service provider offering some basic DMS functionalities such as versioning and indexing. The nice thing is that you can keep a whole structure of documents and even any other SAP objects such as business objects, transactions or URL's.
A typical application example is a HR personnel file. We've already done a lot of projects on that.
In the end, the choice of the document management infrastructure depends on the needs you have.
If you simply want to store and retrieve documents without any document management functionality ArchiveLink or simply the SAP CMS API will do.
If you need hierarchical structures for your documents and an integration with various business objects SAP Records Management would be a good choice.
You will find quite a lot of documentation in http://help.sap.com about these services.
Now, a last remark for web applications. Most of the GUI's of the upper applications are made for SAPGUI. So, here it is necessary to extend the SAP functionality by developing own applications. Since all services are using the CMS HTTP API for storing and retrieving the content you can always generate a URL for displaying the documents. Use SCMS_DOC_URL_CREATE for creating such a URL for example.
I hope, that helps a bit.
Torsten -
How to Link SRGBTBREL-BRELGUID with SOFFPHIO-PHIO_ID????
Does anyone know this linking in ECC6.0?
We need to attach document using GOS and stored in content server and also URL enabled.
After attached,
we will have data SRGBTBREL-BRELGUID : DDC767121B847DF1ACC9001A6431E09E
SOFFPHIO-PHIO_ID : DDC7670B8D04C9F1ACC9001A6431E09E
SRGBTBREL - Relationships in GOS Environment
SOFFPHF - SOFF: Instances of Physical Information Objects
FYI, we can display the file using browser with PHIO_ID ( physical id ), however we need to link this document to the PO which we can find in SRGBTBREL and SOOD.
http://XXX.XXX.XXX.XXX/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=Z2&docId=DDC7670B8D04C9F1ACC9001A6431E09E&compId=13_mm_en.pdf
How can we relate this two id?
Pls adviceHi Allan,
it seems to me, maybe I'm wrong, that SAP developed a one-way solution, that goes from to SAP to external software, but not the opposite. Not really surprising in fact.
Here are a few trails to investigate, unfortunately I couldn't succeed. I feel there is probably another means to achieve your requirement. Anyway, I hope someone will find and describe the solution :-).
1) I tried to use the "instance attributes" of SOFFPHCL (so that to fill fields PROP01 to PROP10 of table SOFFPHIO). You must use transaction DMWB
1-a) I added 3 IO attributes ZCATID, ZTYPEID and ZINSTID (that I had to assign to a new Z document area too). Note: at least 2 attributes are needed as the maximum lengths of PROP01-10 are 15 to 40 characters.
1-b) I assigned these 3 IO attributes to SOFFPHIO class (to select it, you must first switch to the Package View, and expand the SO package), as instance attributes, with Unique flag, and clicked the TAbulation button, to assign them respectively to PROP01, PROP02 and PROP08 fields (15, 15 and 40 characters).
1-c) I created a function module to assign to PROPERTY_FUNCTION attribute of the SOFFPHIO class, which will set the values of these 3 properties. It must have this interface :
*" IMPORTING
*" REFERENCE(OBJECT_ID) TYPE SDOKOBJECT
*" REFERENCE(CLIENT) TYPE SYMANDT
*" TABLES
*" COMPONENTS STRUCTURE SDOKCOMPRS
*" PROPERTIES STRUCTURE SDOKPROPTY
When I attached a document, with breakpoint on the function module, I realized that we don't have the information which business object it is about. The only way to get it, I think, is to do a modification of the standard of the GOS attachment service.
2) I also tried to look at adding a new relationship attribute (in fact, a new table, based on a persistence class) for the ATTA link type, via SOBL_MODEL transaction. SAP provides an example with the FLIGHTCONN link type. Unfortunately, I didn't have enough time to spend on it, maybe it's worth looking a little bit further.
3) The last solution is the simplest, based on the DMS API (this is the only one documented by SAP) : run a periodic background job that reads all new attachments, determines the PHIO IDs for each business object, and writes them to a table, that you can query from SharePoint.
BR
Sandra -
Does anyone know how to get live statistics of either the size of each servlet session or the average size? That is, while embedded OC4J is running, is there anyway for me to determine the total size of all objects sitting in a particular user's servlet session?
Thanks,
JeffNot by default.
We collect a range of stats for general OC4J operations and J2EE application execution via our DMS (dynamic monitoring service) but the size of a particular user's HttpSession object (or just the objects therein) is not covered there. We count sessions.established, sessions.open and sessions.closed to keep track of raw session usage.
Probably not what you want to hear, but you could potentially do this yourself by implementing one of the session listener interfaces so you get notified when sessions are altered, and then publishing the session-id and size of objects in the session somewhere -- text file, xmlfile, straight to console, to a database table, etc..
You could even look at using the DMS API we've exposed to make this available with the rest of the DMS statistics.
cheers
-steve- -
Hi Web Cache Team,
We are currently using Webcache 9.0.3.1 cluster in our production environment with Oracle 9iAS as the app server. Now there is some critical content which is served (for better performance) through the Web Cache. We have implemented the invalidation mechnism using the invalidation APIs. But the problem is if for some reason the invalidation mechanism fails then what is the alternate route to invalidate the cached contents as they will be otherwise serving wrong data. Let me give an example:
Case 1: Web cache is down
Solution: Well in this case we are safe as even the users of the system will not be able to get the Stale data from cache.
Case 2: The webcache is up but the link from n/w link from App Server to the webcache (via Load Balancers) is down. In this case our application will NOT be able to invalidate the cache if the underlying data changes. Moreover the users will continue to be served old content.
Solution: How can we invalidate or notify cache in this case? Use DMS APIs ???
Case 3: Both the Webcache & Network links are fine but in invalidation code (written in Java) throws an exception.
Solution: POssibly we can trap all the exceptions in the invalidation logic and do something..... what???
Any ideas will be highly appreciated.Hello,
Thats one mechanism we are trying to explore at our end. The only thing is that we are not send the invalidation requests from EJB but from the classes provided by the Web framework we are using. What we are trying to achoeve is that if we make the invalidation as the first step of any Business Process transaction, and if it fails the entire transaction is rolled-back and we donot change the data. That way atleast web-cache is uptodate but the flip side is that Business Processes suffer..... -
API for DMS Connector(KM)
Hi,
We configured the DMS Connector for KM on our portal. The DMS Document Explored Iview has document upload and DIR creation capabilities. We are trying to upload documents for browser(WD Java application) to DMS. We wanted to use the DMS connector functionalities. Is there a DMS Connector API which we can use in our WD Java application to create the DIRs and upload documents to DMS? Any help would be greatly appreciated.
thanks,
Venkatesh.KHi Venkatesh,
We had the same issue and raised an OSS message, But as per SAP there is no standard DMS Connector API's for KM at this time. They have proposed this one to be a standard for future releases. But here is a note which would give you an idea of all the Standard BAPI's in DMS. Note :766277
Regards
Krishna -
DMS Connector API for KM?
Hi,
We configured the DMS Connector for KM on our portal. The DMS Document Explored Iview has document upload and DIR creation capabilities. We are trying to upload documents for browser(WD Java application) to DMS. We wanted to use the DMS connector functionalities. Is there a DMS Connector API which we can use in our WD Java application to create the DIRs and upload documents to DMS? Any help would be greatly appreciated.
thanks,
Venkatesh.KHi Venkatesh,
We had the same issue and raised an OSS message, But as per SAP there is no standard DMS Connector API's for KM at this time. They have proposed this one to be a standard for future releases. But here is a note which would give you an idea of all the Standard BAPI's in DMS. Note :766277
Regards
Krishna -
802.11v DMS support and API
I understand that at least parts of 802.11v are implemented in iOS, but I've seen various mentions of Directed Multicast Service (DMS) support which leads to three questions:
1. Does the airport extreme support DMS?
2. Does OS X (in which case which which products/versions)
3. Is there an apple API for requesting DMS via 802.11v?Hi Christoph,
the folders in DMS are nothing else then document BOM headers. So if you create a new document info record and you want
to add it to a DMS folder you have to hand over the document BOM header data as well. Generally I would recommend you to use BAPI_DOCUMENT_CREATE2 or API_DOCUMENT_MAINTAIN2 for creating the documents correctly.
Best regards,
Christoph -
DMS Connector for KM and KM API
Hi All,
Our Client has SAP Content Server installed in the landscape, and would like to use SAP Portal (NW 7.3) KM API capabilities for document management (attachements on Custom portal application developed via WebDynpro for Java).
Inorder to connect to the Content Server to SAP Portal as one of the repository, DMS Connector for KM is used (got to know this via some posts on SDN).
I am still unclear if KM API can be used document retrieval and save to Content Server direcly and seconldy about the possibility of having correct version of DMS Connector.
Any inputs on the above two points would be helpful.
Thanks,
Vamshi
moved by moderatorHi All,
Our Client has SAP Content Server installed in the landscape, and would like to use SAP Portal (NW 7.3) KM API capabilities for document management (attachements on Custom portal application developed via WebDynpro for Java).
Inorder to connect to the Content Server to SAP Portal as one of the repository, DMS Connector for KM is used (got to know this via some posts on SDN).
I am still unclear if KM API can be used document retrieval and save to Content Server direcly and seconldy about the possibility of having correct version of DMS Connector.
Any inputs on the above two points would be helpful.
Thanks,
Vamshi
moved by moderator -
Error while invoking a public PL/SQL API in EBIZ from Sync BPEL process
Hi,
SOA Suite: 11.1.1.3
I am getting the following error when I am invoking a public API in EBIZ from Oracle via a BPEL process. I am supplying the username/password via binding properties (as mentioned in other posts). Can someone point out that is the exact cause for this error please?
SEVERE: AbstractWebServiceBindingComponent.dispatchRequest Unable to dispatch request to http://<myserver>:8006/webservices/SOAProvider/plsql/hz_party_v2pub/ due to exceptionjavax.xml.ws.soap.SOAPF
aultException: Error occured while service was processing.
at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:874)
at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:707)
at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:226)
at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:97)
at oracle.integration.platform.blocks.soap.AbstractWebServiceBindingComponent.dispatchRequest(AbstractWebServiceBindingComponent.java:449)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.processOutboundMessage(WebServiceExternalBindingComponent.java:184)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.sendSOAPMessage(WebServiceExternalBindingComponent.java:634)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.request(WebServiceExternalBindingComponent.java:520)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:144)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy204.request(Unknown Source)
at oracle.fabric.CubeServiceEngine.requestToMesh(CubeServiceEngine.java:704)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:246)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:935)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.handleNormalInvoke(BPELInvokeWMP.java:440)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:182)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:140)
at com.collaxa.cube.engine.CubeEngine._performActivity(CubeEngine.java:2675)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2558)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1256)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:188)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:285)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4607)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:828)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:111)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:147)
at com.collaxa.cube.engine.ejb.impl.bpel.BPELEngineBean.syncCreateAndInvoke(BPELEngineBean.java:103)
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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy193.syncCreateAndInvoke(Unknown Source)
at com.collaxa.cube.engine.ejb.impl.bpel.BPELEngineBean_51369e_ICubeEngineLocalBeanImpl.syncCreateAndInvoke(BPELEngineBean_51369e_ICubeEngineLocalBeanImpl.java:575)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:528)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:482)
at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:156)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.request(CubeDeliveryBean.java:600)
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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy190.request(Unknown Source)
at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.request(BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.java:325)
at oracle.fabric.CubeServiceEngine.request(CubeServiceEngine.java:290)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:144)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy204.request(Unknown Source)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.doMessageProcessing(WebServiceEntryBindingComponent.java:1155)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:767)
at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1119)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:873)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:553)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:202)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:166)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:384)
at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:444)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Nov 3, 2010 2:32:08 PM com.collaxa.cube.CubeLogger error
SEVERE: <WSInvocationManager::invoke> got FabricInvocationException
oracle.fabric.common.FabricInvocationException: javax.xml.ws.soap.SOAPFaultException: Error occured while service was processing.
Thanks,
DineshHi James,
Thanks for the quick reply.
We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
But on the BPEL console, we are getting the error as mentioned.
Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
Thanks,
Saurabh -
Error when invoking worklist api from adf 11g
Hi,
I am using ADF 11g. This application invokes Worklist Application APIs. When I try to login it throws this error. Basically it throws error at worklist application authentication. Am I missing any jar files? These are the jar files I included in the project.
Bpm-services.jar
Bpm-workflow-datacontrol.jar
Oracle.soa.workflow.jar
Wsclient.jar
javax.servlet.ServletException: oracle/tip/pc/infra/exception/PCException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NoClassDefFoundError: oracle/tip/pc/infra/exception/PCException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:204)
at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:135)
at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:306)
at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:399)
at weblogic.utils.io.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(ChunkedObjectInputStream.java:257)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
at weblogic.rjvm.ResponseImpl.getThrowable(ResponseImpl.java:190)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:232)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_1031_WLStub.authenticate(Unknown Source)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:103)
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 oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invokeTarget(WFClientRetryInvocationHandler.java:121)
at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invoke(WFClientRetryInvocationHandler.java:67)
at $Proxy133.authenticate(Unknown Source)
at task.TaskBacking.getWorkflowContext(TaskBacking.java:103)
at task.TaskBacking.updateTaskStatus(TaskBacking.java:125)
at task.TaskBacking.approveInvoiceTask(TaskBacking.java:159)
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 com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:87)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:81)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:673)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 34 more
Caused by: java.lang.ClassNotFoundException: oracle.tip.pc.infra.exception.PCException
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 127 more
Thanks
SaruI added the jar files and I don;t get the exception anymore. I am able to login in as weblogic and the application works fine. When I login in as anyother user I get this error. Where is this pc.properties?
Warning: Could not locate file pc.properties in classpath
ORABPEL-30501
Error in authenticating user.
Error in authenticating and creating a workflow context for user jazn.com/pat.
Verify that the user credentials and identity service configurations are correct.
Thanks
Saru -
We have a Webservice deployed on a Sharepoint 2010 deployment with a method as follows:
public static string ensureParentFolder(SPWeb parentSite, string destinationUrl)
destinationUrl = parentSite.GetFile(destinationUrl).Url;
int index = destinationUrl.LastIndexOf("/");
string parentFolderUrl = string.Empty;
if (index > -1)
parentFolderUrl = destinationUrl.Substring(0, index);
SPFolder parentFolder
= parentSite.GetFolder(parentFolderUrl);
if (!parentFolder.Exists)
SPFolder currentFolder = parentSite.RootFolder;
foreach (string folder in parentFolderUrl.Split('/'))
try
currentFolder = currentFolder.SubFolders.Add(folder);
catch (Exception ex)
FINEOSLogger.Medium(LoggerCategory.FINEOSToSharePointDMS, "User could not create SP folder so elevating permissions");
SPSecurity.RunWithElevatedPrivileges(delegate()
currentFolder = currentFolder.SubFolders.Add(folder);
return parentFolderUrl;
When invoked by a User with only Contribute rights the SubFolders.Add( ) call appears to fail and the
SPSecurity.RunWithElevatedPrivileges
code is invoked, which also fails.
1. So the first question is should you be able to invoke SubFolders.Add() with only Contribute? It works with Design privileges for the Customer. You can add folders on the Sharepoint website as a Contribute user so why not on the API.
Customer raising this as a security concern.
2. Also why would the
SPSecurity.RunWithElevatedPrivileges
part fail, is the syntax incorrect for Sharepoint 2010? We migrated this code from Sharepoint 2007 project.
The error I get when I try run the code as a Contribute user is
com.fineos.ta.dms.external.DMSException: The exception [A SharePoint error occured "An Error occured in SharePoint". For user "FINEOS\bryces" uploading the file "Ru Ext_1501.txt", with title "Ru Ext_1501.txt", to the SharePoint Library "FINEOSDocumentLibrary/2015/02/23/13/18".] was caused by the exception [A SharePoint error occured "An Error occured in SharePoint". For user "FINEOS\bryces" uploading the file "Ru Ext_1501.txt", with title "Ru Ext_1501.txt", to the SharePoint Library "FINEOSDocumentLibrary/2015/02/23/13/18".]., Ta Exception info,Exception Class=class com.fineos.ta.dms.external.DMSException,Root cause ID=10,Root cause host=IEL163,Localized message=A SharePoint error occured "An Error occured in SharePoint". For user "FINEOS\bryces" uploading the file "Ru Ext_1501.txt", with title "Ru Ext_1501.txt", to the SharePoint Library "FINEOSDocumentLibrary/2015/02/23/13/18"
at com.fineos.integration.dms.internal.thirdparty.GenericDMS.add(GenericDMS.java:149)
at com.fineos.frontoffice.documentmanager.DocumentManager.saveToThirdPartyDMS(DocumentManager.java:280)
at com.fineos.frontoffice.documentmanager.fileupload.UploadDocumentWidget.save(UploadDocumentWidget.java:401)
at org.apache.jsp.sharedpages.documentmanager.fileupload.uploaddocumentpage_jsp._jspService(uploaddocumentpage_jsp.java:77)
Caused by: com.fineos.integration.dms.external.services.SharePointDmsException: A SharePoint error occured "An Error occured in SharePoint". For user "FINEOS\bryces" uploading the file "Ru Ext_1501.txt", with title "Ru Ext_1501.txt", to the SharePoint Library "FINEOSDocumentLibrary/2015/02/23/13/18".
at com.fineos.integration.dms.external.services.GenericDMSClient.uploadDocument(GenericDMSClient.java:139)
at com.fineos.integration.dms.internal.thirdparty.GenericDMS.add(GenericDMS.java:132)
... 88 more
Caused by: org.apache.axis2.AxisFault: Error_occured_sharepoint [Message Details = An Exception occurred in SharePoint; System.UnauthorizedAccessException: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.
at Microsoft.SharePoint.Library.SPRequest.AddOrDeleteUrl(String bstrUrl, String bstrDirName, Boolean bAdd, UInt32 dwDeleteOp, Int32 iUserId, Guid& pgDeleteTransactionId)
at Microsoft.SharePoint.SPFolderCollection.AddInternal(String strUrl, Int32 userId)
at FINEOSIntegration.FINEOSToSharePointDMS.SharePointDMSUtilities.<>c__DisplayClass9.<ensureParentFolder>b__5()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at FINEOSIntegration.FINEOSToSharePointDMS.SharePointDMSUtilities.ensureParentFolder(SPWeb parentSite, String destinationUrl)
at FINEOSIntegration.FINEOSToSharePointDMS.FINEOSToSharePointDMS.uploadDocument(String UserName, String FolderPath, String Filename, Byte[] File, DocumentProperties DocumentProperties, Boolean NotifyFINEOS, Boolean NotifyFINEOSSpecified, Boolean OverwriteIfExists, Boolean OverwriteIfExistsSpecified, String& DMSDocType)]
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.fineos.frontoffice.thirdpartydms.operationtypes.ThirdPartyDmsServicesStub.uploadDocument(ThirdPartyDmsServicesStub.java:761)
at com.fineos.integration.dms.external.services.GenericDMSClient.uploadDocument(GenericDMSClient.java:119)
... 89 more
Note that the user SPWeb being passed into the method is from an impersonated user, don't know if that matters.
So the webservice payload contains the id of the user who wants to do the Sharepoint work while the webservice is invoked by anonymous or some other service user. We then impersonate the user specified in the webservice payload like follows and use
that web SPWeb from then on in the webservice methods:
userToImpersonate = currentWeb.AllUsers[user];
site = new SPSite(fileUrl, userToImpersonate.UserToken);
web = site.OpenWeb();
Any help appreciated.
Thanks,
Ruairi.Ideally, a user with Contribute permissions should be able to add folders. Not sure what is the issue there. But I can see that SPSecurity.RunWithElevatedPrivileges is not written properly. You must create a new SPSite object inside the delegate
because SPSite objects created outside do not have Full Control even when referenced inside the delegate. Use the using keyword to ensure that the object is disposed in the delegate. Example:
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite site = new SPSite(web.Site.ID))
// implementation details omitted
});See this for more information about SPSecurity.RunWithElevatedPrivilegeshttps://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges%28v=office.12%29.aspx?f=255&MSPPError=-2147217396
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field -
DMS Console Exception in JSP Page
Hello. I have a simple jsp page that calls a method in a class file. In the class I have a function, where I get an error when the connection is attempted.
I know that the connection is the problem because the jsp page calls it ( <%=opduser.count()%>) fine when the connection line is commented out. The error is posted below, I have ojdbc14_g, and classes12_dms, classes12_g jar files in my classpath, I have tried different combinations of jars as well.
THANKS IN ADVANCE
JAVA CODE
package world;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import java.sql.*;
import oracle.jdbc.driver.OracleDriver;
import javax.servlet.*;
import java.text.*;
import java.util.*;
//import util.HTMLFilter;
import javax.servlet.jsp.tagext.*;
import java.sql.*; // Package for JDBC core API
import javax.naming.*;
//import oracle.jdbc.pool.OracleDataSource; // Oracle Data source class
import javax.servlet.Filter;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.Vector;
import java.lang.*;
public class opd// extends HttpServlet
//HttpServletResponse response;
public int count()throws IOException, SQLException{
int number=-1;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle9ia:1521:xxxxx", "xxx", "xxx Statement stmt = conn.createStatement();
Statement stmt2 = conn.createStatement();
ResultSet rset = stmt.executeQuery("select * from project_access_passwords where project_user='opd'");
rset.next();
number=rset.getInt(3);
number++;
stmt2.executeUpdate("update project_access_passwords set project_access='"+number+"' where project_user='opd'");
stmt2.executeUpdate("commit");
catch(Exception e){}
return number;
ERROR RECEIVED
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: oracle/dms/console/DMSConsole
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.opd_005findex_jsp._jspService(opd_005findex_jsp.java:88)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NoClassDefFoundError: oracle/dms/console/DMSConsole
oracle.jdbc.driver.DMSFactory.<clinit>(DMSFactory.java:28)
oracle.jdbc.driver.OracleConnection.createDMSSensors(OracleConnection.java:662)
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:325)
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
java.sql.DriverManager.getConnection(DriverManager.java:512)
java.sql.DriverManager.getConnection(DriverManager.java:171)
world.opd.count(opd.java:39)
org.apache.jsp.opd_005findex_jsp._jspService(opd_005findex_jsp.java:54)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.Hi,
Could you find a solution to this problem..? I am also getting the same kind of error. If so, kindly email me at : [email protected]
Thanks,
Jyoti.
Maybe you are looking for
-
I just got a (lightly) used Mac Mini as a second computer (2010 model). Logged into Mac App Store with my Apple ID and tried to check for updates...received "An error has occurred - The request timed out" message. Was able to go to the main App Store
-
I have a student who when he tries to batch rename his .jpgs in Adobe Bridge CS5.1, the files will become corrupted and will not be able to open them. The extension is off. How can I correct this for him?
-
Faxing from MS Word using OS 10.7.5
I just updated to MacOS 10.7.5 and I can no longer fax from within a Word document. Printing works fine. I have an Officejet Pro 8600 Plus. I updated all of the software to the latest available on the HP site. I print and fax wirelessly from a white
-
Yosemite TDM f1/f2 do not function
Yosemite TDM f1/f2 do not function I use Imac 27 end 2009 as screen of a macmini 2012 (with TDM target display mode) the 2 macs are connected by a cable mini display port. Since yosemite with Command/f2 I switch the screen towards the macmini but
-
Ipod to car with AUX port using dock or HP jack is quiet
hi all, ive got an aux connector in my car and connecting it to the ipod headphone port OR using the dock line out gives very quiet sound, i end up having the car hifi very loud. id rather not use volume adjust in itunes to raise the file volumes as