Collaboration API - project.store() error
Hi,
I am attempting to create a collaboration project via the API using C#. I have based my code on the samples from the "Extending Server Functionality with Remote APIs: Collaboration Server" documentation.
The following code all works fine:
IPortletContext portletContext = PortletContextFactory.CreatePortletContext(System.Web.HttpContext.Current.Request, System.Web.HttpContext.Current.Response);
IPortletRequest portletRequest = portletContext.GetRequest();
stringloginToken = portletRequest.GetLoginToken();
Plumtree.Remote.PRC.IRemoteSession portalSession = portletContext.GetRemotePortalSession();
ICollaborationFactory collabFactory = portalSession.GetCollaborationFactory();
projectManager = collabFactory.GetProjectManager();
IProject project = projectManager.CreateProject("NewProjectName", "NewProjectDescription");
However, the next line fails:
project.store();
The exception raised is:
"System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Invalid pointer at com.plumtree.remote.prc.soap.QueryInterfaceProcedures.QueryInterface(String sLoginToken, String sInterfaceID, String sUUID) in e:\latestbuild\Release\devkit\5.2.x\prc\src\dotnet\portalprocedures\QueryInterfaceProcedures.cs:line 63 at com.plumtree.remote.prc.xp.XPRemoteSession.getCollaborationRemoteServerFromGlobalMap(IXPQueryInterfaceProcedures queryInterfaceProcedures)"
I am using the following versions:
Collaboration Server 4.02
edk.dll 5.2.0
Portal Server 5.04
Is there anything I need to install on the Portal server to make the above versions/code compatible or is there a bug in the edk.dll?
Thanks in advance for any help.
Regards,
Greig
My first question would be you are on Collab 4.0.1+, correct? Collab 4.0.0 does not have API support.
I would try hitting a URL in your browser that looks like this: http://collabmachine:port/collab/services. You should get a page back that says, "And now... Some Services" followed by a list of about 9 service names.
If you can get that, your API services are installed/registered. But your installation probably has some kind of error. So the next step would be to check your Collab logs for exceptions (located in /ptcollab/4.0/logs I think).
Similar Messages
-
Error while creating IViews using collaboration API
Hi
I have created one Dynpage portal component, in that i would like to utilize collaboration API.
I am keep on getting errors like "<b>The compilation unit directly references the missing type ...."</b>"
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sap.ip.collaboration.room.api.IRooms;
import com.sapportals.portal.prt.runtime.PortalRuntime;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
public class Sample extends PageProcessorComponent {
public DynPage getPage() {
return new SampleDynPage();
public static class SampleDynPage extends DynPage
IRooms roomsAPI = (IRooms)PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
Initialization code executed once per user.
I have included the following jar files:
bc.rf.framework_api.jar
coll.shared.extension_api.jar
coll.shared.roomobject_api.jar
coll.shared.types_api.jar
com.sap.security.api.ep5.jar
and also i have included com.sap.netweaver.coll.shared in portal.xml as servicesreference
Experts can you please help in the above problem
I am sure u will get reward points.
Thanks in AdvanceHI,
You have to add the following jars apart from the jars you have mentioned
1. kmc.util.core_api.jar
2. umapi.jar
To find jar files
==================
Download and install the JAR Finder. how to is mentioned in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951">Weblog</a>. see what jar is required by copying the com.sap.ip.BaseException from the error "compilation unit references................." and put the "BaseException" in the jar finder and search. from the given options select the correct jar "com.sap.ip.BaseException" right click and add to the project. You can add all the jars required by this method.
Portalapp.xml
==============
<application-config>
<property name="SharingReference" value="com.sap.portal.htmlb"/>
<property name="ServicesReference" value="com.sap.netweaver.coll.shared"/>
</application-config>
HI,
use the BaseException etc the errors you get in NWDS to search for the jar. paste the BaseException and search in jarfinder.
Message was edited by: Kirupanand Venkatapathi
Message was edited by: Kirupanand Venkatapathi -
Hello,Is it possible to retrieve a projects list with the collaboration API from only one information: the project folder where are stored these projects ?
I parsed the API collaboration reference manual. And I don't find any function allowing me to do that.Can somebody confirm or explain if such a query is possible ?
Thanks in advance,ChristianThanks Caroline. Do you know if such a feature could be available in next versions of the Collab or EDK ?If not, could this be considered as a wish for next releases ?Christian
-
SAP HANA XSODATA service (Service exception: column store error.)
Hi all,
i have a problem with my calculation view using xsodata service on it. (There's an input parameter called P
_SWERK)
In my calculation view, the data origin are two analytic views (on which the input parameter P_SWERK should be filter data at beginning of the sql script code).
First i read the analytic views with function CE_OLAP_VIEW and after i do a CE_PROJECTION function on them using the input parameter P_SWERK like a filter on field SWERK.
But when i run my application on browser the following error occurs :
<message xml:lang="en-US">Service exception: column store error.</message>
The link is this :
http://host:port/Project_DM/services/Test/TEST_ZIIG_PDM_CALC_VIEW_FINAL_service.xsodata/PianiDiManutenzioneParameters(P_SWERK='CO05')/Results
The service definition is :
service {
"EricssonItalgas/TEST_ZIIG_PDM_VIEW_FINAL.calculationview" as "PianiDiManutenzione" keys generate local "ID"
parameters via entity;
The SAP HANA AWS revision is 60.
Someone could you help me,please?
Thanks in advance.
Dario.Hi Dario,
Does the calculation view work without xsodata service? From the URL, your XS project name should be Project_DM, but from the xsodata source, the project name is EricssonItalgas. I'm confused with this. Did you use rewrite_rules or?
Best regards,
Wenjun -
Using KM and Collaboration API in portal component and web dynpro
Hi,
I have to develop portal components and Web Dynpros (JAVA) which have to use the following functions:
- copy, delete KM documents
- sending E-Mails
Can anyone give me some actual documentation links for the KM and Collaboration APIs ?
Which references do I need in portalapp.xml for KM/collaboration and which jar-Files do I have to add to the project?
We are using NetWeaver 7.01 SP18.Hi Yogalakshmi,
thank you for the link and the information. Now I managed to work with the KM documents.
One more Question: to get the resource Context, I use this code:
portalUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
IResourceContext resourceContext = new ResourceContext(portalUser);
The method getServiceUser is deprecated, also the com.sapportals.portal.security.usermanagement.IUser is deprecated. Is there an other possibility to get the ResourceContext. (perhaps with com.sap.security.api.IUser) ? -
Collaboration Administration Console Access Error
Hi,
I have installed and configured webcenter collaboration but I am getting below error when I am trying to access Administration Console for Collaboration. I tried two times and get the same error.
com/plumtree/core/db/DBManager
com.plumtree.collaboration.api.portalaccess.PortalAccessManager.getGuestPortals(PortalAccessManager.java:287)
com.plumtree.collaboration.api.portalaccess.PortalAccessManager.fillMap(PortalAccessManager.java:396)
com.plumtree.collaboration.api.portalaccess.PortalAccessManager.initialize(PortalAccessManager.java:323)
com.plumtree.collaboration.api.portalaccess.PortalAccessManager.<clinit>(PortalAccessManager.java:55)
com.plumtree.collaboration.context.CollaborationContextFactory.createCollaborationContext(CollaborationContextFactory.java:72)
com.plumtree.collaboration.webui.framework.action.CollaborationController.service(CollaborationController.java:90)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:887)
org.apache.coyote.http11.Http11NioProtocol412Http11ConnectionHandler.process(Http11NioProtocol.java:696)
org.apache.tomcat.util.net.NioEndpoint412SocketProcessor.run(NioEndpoint.java:2009)
java.util.concurrent.ThreadPoolExecutor412Worker.runTask(ThreadPoolExecutor.java:650)
java.util.concurrent.ThreadPoolExecutor412Worker.run(ThreadPoolExecutor.java:675)
java.lang.Thread.run(Thread.java:595)
also collaboration diaognostic URL giving me no details on the screen.
Does anyone have clue ?
- MukeshYou might want to check that you ran all of the database scripts for Collaboration. Some scripts must be run as the collabdbuser and the others must be run as portaldbuser. It might be possible that the portal can't access the Collaboration database or vice versa.
-
SAP HANA Spatial Features (Store Error)
I've been stumbling with an the folowing error : "Error: SAP DBTech JDBC: [2048]: column store error: search table error: " over and over again. Every time I add a spatial column to a table it becomes unsuable (can't query, edit, add, update) so I have to delete the whole table and repopulate it, which is really annoying. Sometimes it doesn't happen right away, sometimes it works just fine at first but after a few minutes or hours the table just stops "working". It has happened several times with different tables.
If anyone can tell me why is that happening or how to solve it I would be very grateful.
I'm using Hana Version 1.00.74.00.390550.
Thanks in advance.Hi Dario,
Does the calculation view work without xsodata service? From the URL, your XS project name should be Project_DM, but from the xsodata source, the project name is EricssonItalgas. I'm confused with this. Did you use rewrite_rules or?
Best regards,
Wenjun -
"Unable to Open Project File" - error
Does anyone know how to resolve an "Unable to Open Project File" - error. I accidentally shut down my computer wrong, although Final Cut wasn't open.
Welcome to the forums.
The project file might have gotten corrupted. Look for the AUTOSAVE VAULT (typically in the DOCUMENTS>FINAL CUT PRO DOCUMENTS folder) and open the most recent version. Copy it to your main project folder if it works.
If not, then try trashing your prefs with FCP Rescue.
Shane -
Call to WPG_SESSION API Failed. Error-Code:6550
Can someone please help me figure out what I may be doing wrong? Using recent downloaded versions of 8i and 9iAS I cannot access Portal30 using IE5 browser. Please see error below. During portal configuration I specified connect string of oracle:1521:dba1. The connectstring entry of the DAD is dba1. I ran ssodatan. The database is open, listener is listening and SQL*Plus, DBA Studio, Net8 Assistant all connect to dba1 fine. Discussions mention cookies, upgrades, etc., but nothing definitive. Troubleshooting Guide does not reference error 6550. I am at a loss. Any suggestions would be appreciated.
I downloaded and installed 8.1.7 on NT host oracle then downloaded and installed 9iAS on another NT host. Portal Diagnostics are successful, however I get database login failed when attempting to use IE5 browser to access portal at http://oracle/pls/portal30/PORTAL30.home
Here's the diags:
D:\ora9ias\portal30\admin\plsql>set ORACLE_HOME=d:\ora9ias
D:\ora9ias\portal30\admin\plsql>diag -s portal30 -c dba1
Begining Portal Diagnostics
...portal_schema: portal30
...portal_password: *************
...portal_connect_string: dba1
Loading java class for Portal Diagnostics ...
SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 25 08:41:58 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
Creating Table 'wwsec_diagnostic$'
Creating Sequence 'wwsec_diagnostic_seq'
Diagnostics Report v 1.01: Oracle Portal v 3.0.9.8.0
As of 25-Jul-2001 08:42:17 Schema Name: PORTAL30 SSO Schema Name: portal30
_sso
Proxy Server Settings:
HTTP Server:
HTTP Server Port:
No Proxy Servers for Domains beginning with:
URL Connection Time-Out (seconds):
PORTAL30.wwsec_enabler_config_info$
Login Server URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_app_admi
n.ls_login
DAD : portal30_sso
Host connection : successful.
mod_plsql : working.
JServ : working.
Schema name : portal30_sso
Connect string : dba1
Authentication mode : Single Sign-On
Partner Application Information
**** The Login Server (portal30_sso) ****
Home URL : http://oracle/pls/portal30_sso/portal30_sso.home
Success URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_home.pro
cess_signon
DAD : portal30_sso
Host connection : successful.
mod_plsql : working.
JServ : working.
Schema name : portal30_sso
Connect string : dba1
Authentication mode : Single Sign-On
**** Oracle Portal (portal30) ****
Home URL : http://oracle/pls/portal30/portal30.home
Success URL : http://oracle/pls/portal30/portal30.wwsec_app_priv.process
_signon
DAD : portal30
Host connection : successful.
mod_plsql : working.
JServ : working.
Schema name : portal30
Connect string : dba1
Authentication mode : Single Sign-On
**** The Login Server (portal30_sso) ****
Home URL : http://oracle/pls/portal30_sso/portal30_sso.home
Success URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_home.pro
cess_signon
DAD : portal30_sso
Host connection : successful.
mod_plsql : working.
JServ : working.
Schema name : portal30_sso
Connect string : dba1
Authentication mode : Single Sign-On
Diagnostics completed successfully!
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
D:\ora9ias\portal30\ admin\plsql>
Call to WPG_SESSION API Failed.
Error-Code:6550
Error TimeStamp:Wed, 25 Jul 2001 12:33:52 GMT
Database Log In Failed
TNS is unable to connect to destination. Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport problems.
Verify that the TNS name in the connectstring entry of the DAD for this URL is valid and the database listener is running.
nullI met that error several times. Check TNS connection from web server box to database server, if applicable. - use tnsping.
That's the only cause that produces the error. If the web server box has more than one Oracle Home, find the correct one. Check $iAS_home/Apache/bin/apachectl script which will tell you its oracle home directory. It may not use $TNS_ADMIN/tnsnames.ora, but $ORACLE_HOME/network/admin/tnsnames.ora. -
i can't update apps at mac app store - error saying "There was an error in the App Store. Please try again later. (100)"
i tried it for weeks and months, but with no success.
i am using macbook air mid 2011, running os x lion.try changing the date a month or a year ahead..
-
Hi All,
I get the below error when i load my xsjs file in browser,
Error while executing query: [dberror(PreparedStatement.executeQuery): 2048 - column store error: column store error: [2950] user is not authorized : at ptime/session/dist/RemoteQueryExecution.cc:1354]
I am able to execute the same query in HANA SQL editor
Please note that ,No Analytical privileges are applied to the view.
Could you please help solving this issue.
Regards,
Logesh Kumar.Hay,
are you using the same Database user for both SQL Editor and XSJS ?
try the following.
Before executing the query , display it and copy the same from browser and execute in SQL editor.
Put the statement in a try catch block and analyse the exception .
Sreehari -
Ecatt script fails due "Error in OLE API method Call" error
Hi ,
Ecatt scripts fails due to "Error in OLE API method Call" error, this error message occurs once a while.
We are calling testpartner scripts from Ecatt using REFEXT command. At times this ECATT script fails due to above issue.
Please help in solving this issue.
Thanks,
Asha>
Asha Nagaraj wrote:
> Hi ,
>
> Ecatt scripts fails due to "Error in OLE API method Call" error, this error message occurs once a while.
>
> We are calling testpartner scripts from Ecatt using REFEXT command. At times this ECATT script fails due to above issue.
>
> Please help in solving this issue.
>
> Thanks,
> Asha
Hi Asha,
Are those components are connected and the necessay settings has been done?
Regards,
SSN. -
when i attempt to download a 'free' app from the app store error message comes up: "Account Not in this store- your account is not valid for use in the US store. You must switch to the Guyanese store before purchasing."
Change App Store
1. Tap "Settings"
2. Tap "iTunes & App Stores"
3.Tap "View Apple ID"
4. Enter your user name and password.
5. Tap "Country/Region."
6. Tap "Change Country/Region"
7. Select the region where you will be located.
8. Tap "Done". -
I cant download in app store error message cocoa error?
i cant download in app store error message cocoa error?
Apple’s having trouble with the iTunes Store servers right now. Keep checking http://www.apple.com/support/systemstatus/ and wait for them to resolve the issue.
(123941) -
I just set up my new iMac, and receive error messages when trying to purchase from the iTunes store (error 8003) or update from the App store (error 403 forbidden). THOUGHTS?
I am not sure what you mean by "Flash Player for steam"; the only Flash Player installers I know is the ActiveX (for Internet Explorer) and the plugin (for other browsers); you can find both at http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
[topic moved to Flash Player forum]
Maybe you are looking for
-
Data of customize BSP in Enterprise Portal is not displayed
Dear All, I stuck on to find out the solution, in order to display FAQ list in BSP Enterprise Portal by using customer id to logon to Enterprise Portal, need your guide. Let me explain: It is customize/own develop BSP application, which is search FAQ
-
Use of "Adapter-Specific Message Attributes"?
Hi, What is "Adapter-Specific Message Attributes" and when should we use this? Is it different for sender and receiver channel? Please help.
-
Hi All, I have a question about the HW key and license key for SAP on Solaris. As currently, we would like to replace the existing hard-disk with a larger one. And i would like to know that, can we using the same license generated before, or we need
-
Can I group account mailboxes in my sidebar?
Hello, I have two accounts set up in Mail.app. Let's call them Account 1 and Account 2. In my sidebar, I see: Inbox - Account 1 - Account 2 Sent - Account 1 - Account 2 Trash - Account 1 - Account 2 Is there any way to group my accounts like this ins
-
MovieClip Loader Class - assigning Events to Movies
Hi. I have a MovieClipLoader Class that loads a SWF into a holder clip that is on my main timeline. Then Im using "mclListener.onLoadInit" to check that the SWF is loaded so that I can continue to load some buttons into the holderclip from an XML fil