Db connection from content server context through JSP
Hi All,
Can anyone tell me how to get ucm db connection from Content Server context through JSP file? Thanks.
Joe
FMW Team,iTech,Shenzhen
Start by getting a sample JSP here:
http://www.corecontentonly.com/Blog/UsingJavaServerPagesWithContentServerAndAnExample
Then, you can use the Workspace object in the jsp to create resultsets from SQL.
String sql = "SELECT * FROM REVISIONS";
// Execute the sql
rs = objWorkspace.createResultSetSQL(sql);
drs = new DataResultSet();
drs.copy(rs);
for (drs.first(); drs.isRowPresent(); drs.next())
String dDocName = ResultSetUtils.getValue(drs, "dDocName");
System.out.println(dDocName);
}
Similar Messages
-
Getting error in JDeveloper 11.1.1.6 after Connecting to Content server
Hi,
We are getting below error in JDeveloper 11.1.1.6 after getting "success" to connect content server. We are able to connect to content server but repository is not being loaded into JDeveloper and it gives below error.
Please guide.
Performing action Properties...[ from oracle.jdeveloper.appresources.ApplicationResourcesWindow ]
oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic:May 10, 2012 6:57:31 PM oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic getItem
WARNING: An error occurred while accessing the content repository.
javax.naming.NamingException: May 10, 2012 6:57:31 PM oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic throwGeneric
ALL: An error occurred while accessing the content repository.
[Root exception is javax.jcr.RepositoryException: Error communicating with Content Server.]
at oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic.throwGeneric(AbstractRepositoryLogic.java:35)
at oracle.webcenter.content.internal.model.rc.JCRRepositoryLogic.getItem(JCRRepositoryLogic.java:145)
at oracle.webcenter.content.internal.model.rc.ContentResource.init(ContentResource.java:219)
at oracle.webcenter.content.internal.model.rc.ContentResource.getContentID(ContentResource.java:327)
at oracle.webcenter.content.internal.model.rc.ContentResource.getResourceId(ContentResource.java:313)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listInternal(ContentDirContext.java:326)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:303)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:297)
at oracle.jdeveloper.rescat2.nodes.RepositoryRootNode.loadCache(RepositoryRootNode.java:147)
at oracle.jdeveloper.rescat2.nodes.ExtendedGenericNode$1.run(ExtendedGenericNode.java:296)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.jcr.RepositoryException: Error communicating with Content Server.
at oracle.jcr.impl.ExceptionFactory.repository(ExceptionFactory.java:122)
at oracle.stellent.jcr.IdcPersistenceManager.getRootNode(IdcPersistenceManager.java:971)
at oracle.stellent.jcr.IdcPersistenceManager.getResourceByAbsolutePath(IdcPersistenceManager.java:529)
at oracle.jcr.impl.TransientLayer.getResourceByRelativePath(TransientLayer.java:455)
at oracle.jcr.impl.OracleSessionImpl.getItem(OracleSessionImpl.java:1108)
at oracle.jcr.impl.OracleSessionImpl.getItem(OracleSessionImpl.java:302)
at oracle.webcenter.doclib.internal.model.JCRUtils.getNode(JCRUtils.java:55)
at oracle.webcenter.content.internal.model.rc.JCRRepositoryLogic.getItem(JCRRepositoryLogic.java:125)
... 9 more
oracle.webcenter.content.internal.model.rc.ContentResource:May 10, 2012 6:57:32 PM oracle.webcenter.content.internal.model.rc.ContentResource getContentID
WARNING: An error occurred while accessing the content repository.
javax.naming.NamingException: May 10, 2012 6:57:31 PM oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic throwGeneric
ALL: An error occurred while accessing the content repository.
[Root exception is javax.jcr.RepositoryException: Error communicating with Content Server.]
at oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic.throwGeneric(AbstractRepositoryLogic.java:35)
at oracle.webcenter.content.internal.model.rc.JCRRepositoryLogic.getItem(JCRRepositoryLogic.java:145)
at oracle.webcenter.content.internal.model.rc.ContentResource.init(ContentResource.java:219)
at oracle.webcenter.content.internal.model.rc.ContentResource.getContentID(ContentResource.java:327)
at oracle.webcenter.content.internal.model.rc.ContentResource.getResourceId(ContentResource.java:313)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listInternal(ContentDirContext.java:326)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:303)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:297)
at oracle.jdeveloper.rescat2.nodes.RepositoryRootNode.loadCache(RepositoryRootNode.java:147)
at oracle.jdeveloper.rescat2.nodes.ExtendedGenericNode$1.run(ExtendedGenericNode.java:296)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.jcr.RepositoryException: Error communicating with Content Server.
at oracle.jcr.impl.ExceptionFactory.repository(ExceptionFactory.java:122)
at oracle.stellent.jcr.IdcPersistenceManager.getRootNode(IdcPersistenceManager.java:971)
at oracle.stellent.jcr.IdcPersistenceManager.getResourceByAbsolutePath(IdcPersistenceManager.java:529)
at oracle.jcr.impl.TransientLayer.getResourceByRelativePath(TransientLayer.java:455)
at oracle.jcr.impl.OracleSessionImpl.getItem(OracleSessionImpl.java:1108)
at oracle.jcr.impl.OracleSessionImpl.getItem(OracleSessionImpl.java:302)
at oracle.webcenter.doclib.internal.model.JCRUtils.getNode(JCRUtils.java:55)
at oracle.webcenter.content.internal.model.rc.JCRRepositoryLogic.getItem(JCRRepositoryLogic.java:125)
... 9 more
oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic:May 10, 2012 6:57:32 PM oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic listFolder
WARNING: An error occurred while accessing the content repository.
javax.naming.NamingException: May 10, 2012 6:57:32 PM oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic throwGeneric
ALL: An error occurred while accessing the content repository.
[Root exception is javax.jcr.RepositoryException: Error communicating with Content Server.]
at oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic.throwGeneric(AbstractRepositoryLogic.java:35)
at oracle.webcenter.content.internal.model.rc.JCRRepositoryLogic.listFolder(JCRRepositoryLogic.java:249)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listInternal(ContentDirContext.java:326)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:303)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:297)
at oracle.jdeveloper.rescat2.nodes.RepositoryRootNode.loadCache(RepositoryRootNode.java:147)
at oracle.jdeveloper.rescat2.nodes.ExtendedGenericNode$1.run(ExtendedGenericNode.java:296)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.jcr.RepositoryException: Error communicating with Content Server.
at oracle.jcr.impl.ExceptionFactory.repository(ExceptionFactory.java:122)
at oracle.stellent.jcr.IdcPersistenceManager.getRootNode(IdcPersistenceManager.java:971)
at oracle.stellent.jcr.IdcPersistenceManager.getResourceByAbsolutePath(IdcPersistenceManager.java:529)
at oracle.jcr.impl.TransientLayer.getResourceByRelativePath(TransientLayer.java:455)
at oracle.jcr.impl.OracleSessionImpl.getItem(OracleSessionImpl.java:1108)
at oracle.jcr.impl.OracleSessionImpl.getItem(OracleSessionImpl.java:302)
at oracle.webcenter.doclib.internal.model.JCRUtils.getNode(JCRUtils.java:55)
at oracle.webcenter.content.internal.model.rc.JCRRepositoryLogic.listFolder(JCRRepositoryLogic.java:227)
... 6 more
Performing action Refresh[ from oracle.jdeveloper.appresources.ApplicationResourcesWindow ]
May 10, 2012 7:12:30 PM oracle.stellent.jcr.IdcPersistenceManager listFolder
SEVERE: Could not list contents of folder with ID = dCollectionID:-1
oracle.stellent.ridc.protocol.ServiceException: No service defined for COLLECTION_DISPLAY.
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:142)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
at oracle.stellent.jcr.IdcPersistenceManager.listFolder(IdcPersistenceManager.java:690)
at oracle.stellent.jcr.IdcPersistenceManager.getChildResources(IdcPersistenceManager.java:648)
at oracle.jcr.impl.TransientLayer.getChildResources(TransientLayer.java:534)
at oracle.jcr.impl.FolderNode.getNodes(FolderNode.java:116)
at oracle.webcenter.content.internal.model.rc.JCRRepositoryLogic.listFolder(JCRRepositoryLogic.java:233)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listInternal(ContentDirContext.java:326)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:303)
at oracle.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:297)
at oracle.jdeveloper.rescat2.nodes.RepositoryRootNode.loadCache(RepositoryRootNode.java:147)
at oracle.jdeveloper.rescat2.nodes.ExtendedGenericNode$1.run(ExtendedGenericNode.java:296)
at java.lang.Thread.run(Thread.java:662)
oracle.stellent.ridc.protocol.ServiceException: No service defined for COLLECTION_DISPLAY.
o.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:142)
o.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
o.stellent.jcr.IdcPersistenceManager.listFolder(IdcPersistenceManager.java:690)
o.stellent.jcr.IdcPersistenceManager.getChildResources(IdcPersistenceManager.java:648)
o.jcr.impl.TransientLayer.getChildResources(TransientLayer.java:534)
o.jcr.impl.FolderNode.getNodes(FolderNode.java:116)
o.webcenter.content.internal.model.rc.JCRRepositoryLogic.listFolder(JCRRepositoryLogic.java:233)
o.webcenter.content.internal.model.rc.ContentDirContext.listInternal(ContentDirContext.java:326)
o.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:303)
o.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:297)
o.j.rescat2.nodes.RepositoryRootNode.loadCache(RepositoryRootNode.java:147)
o.j.rescat2.nodes.ExtendedGenericNode$1.run(ExtendedGenericNode.java:296)
j.lang.Thread.run(Thread.java:662)
Regards,
BhaveshThanks Srinath.
We have resolved the issue but we had to follow below steps as we were not able to see Folder_g in componet list.
1. After login to content server, navigated to Admin Server.
2. In Advanced component manager, we have updated component configuration with selecting Folder_g and press Update
3. After that we followed the steps 2 and 3 as you mentioned.
Regards,
Bhavesh -
Problem using content from content server in portlet.
Hi all,
I create a JSR286 portlet project, add a content server connection then drag content from those connection to jspx by selected create > document - content presenter.
Problem occur when i deploy the project to portlet managed server.
I'm not sure any mds they required because while deploying the Deploymeny Configuration was poped up to prompt me select mds repository.
I don't know what mds repository they required.
Please help.
Regards.Hi ngsankar,
Thanks for your reply.
I have no idea about any schema ;(
on the integrated weblogic server i can't deploy too.
Is it possible to use any content from content server in portlet like on portal?
Regards. -
Unable to send email from content server
Hi,
I have a requirement of sending the notification email to user from the stellent when he subscribe to it.To test it i logged in to content server as sysadmin.
Administration->Actions->Send test email.
I had filled some dummy data and when i click on send it gives me a error
Content Server Request Failed
Unable to send email. Could not send mail message from [email protected] with subject line: Test email from Content Server.
intradoc.common.ServiceException: !csMailCouldNotSend,[email protected],Test email from Content Server
at intradoc.server.InternetFunctions.sendMailToEx(Unknown Source)
at intradoc.server.SystemAuditHandler.sendEmail(Unknown Source)
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:585)
at intradoc.common.IdcMethodHolder.invokeMethod(Unknown Source)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(Unknown Source)
at intradoc.server.ServiceHandler.executeAction(Unknown Source)
at intradoc.server.Service.doCodeEx(Unknown Source)
at intradoc.server.Service.doCode(Unknown Source)
at intradoc.server.ServiceRequestImplementor.doAction(Unknown Source)
at intradoc.server.Service.doAction(Unknown Source)
at intradoc.server.ServiceRequestImplementor.doActions(Unknown Source)
at intradoc.server.Service.doActions(Unknown Source)
at intradoc.server.ServiceRequestImplementor.executeActions(Unknown Source)
at intradoc.server.Service.executeActions(Unknown Source)
at intradoc.server.ServiceRequestImplementor.doRequest(Unknown Source)
at intradoc.server.Service.doRequest(Unknown Source)
at intradoc.server.ServiceManager.processCommand(Unknown Source)
at intradoc.server.IdcServerThread.run(Unknown Source)
Caused by: intradoc.common.ServiceException:
at intradoc.common.SmtpClient.sendMail(Unknown Source)
at intradoc.server.InternetFunctions.sendMail(Unknown Source)
... 21 more
Caused by: java.lang.Exception: !csSMTPInvalidMessage,"System Administrator" <[email protected]>!csSMTPUnableToFindRecipients,1
at intradoc.common.SmtpClient.writeMultiMsg(Unknown Source)
... 23 more
Caused by: java.lang.Exception: !csSMTPResponseIndicatesFailure,550 5.7.1 Unable to relay for [email protected]
at intradoc.common.SmtpClient.writeMsg(Unknown Source)
... 24 more
I had set the internet configration in admin server to this values..
HttpServerAddress=blrdxp-rchithul.corp.capgemini.com
MailServer=BLREX002.corp.capgemini.com
[email protected]
SmtpPort=25
HttpRelativeWebRoot=/idc/
CgiFileName=idcplg
UseSSL=No
WebProxyAdminServer=true
But i am still getting the error.kindly help me...
Thanks in Advance
Regards
RakeshHi Rakesh,
You have to request you Network team to add the ip address of the machine where you have installed content server to your Exchange Server.
Let me know if it works.
Deepak -
Hi,
We have employee photos(JPG Format) stored in Content server. And now we want to print the photos in smartforms. For this I had written the below code to read the photo from content server in binary format as below.
REPORT ZTEST1.
PARAMETERS P_PERNR TYPE PERNR_D.
DATA: PS_CONNECT_INFO TYPE TOAV0,
IT_BINARY TYPE TABLE OF SDOKCNTBIN.
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
P_PERNR = P_PERNR
* P_TCLAS = 'A'
* P_BEGDA = '18000101'
* P_ENDDA = '99991231'
IMPORTING
* P_EXISTS =
P_CONNECT_INFO = PS_CONNECT_INFO
* EXCEPTIONS
* ERROR_CONNECTIONTABLE = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
IF PS_CONNECT_INFO IS NOT INITIAL.
CALL FUNCTION 'SCMS_DOC_READ'
EXPORTING
STOR_CAT = SPACE
CREP_ID = PS_CONNECT_INFO-ARCHIV_ID
DOC_ID = PS_CONNECT_INFO-ARC_DOC_ID
* PHIO_ID =
* SIGNATURE = 'X'
* SECURITY = ' '
* NO_CACHE = ' '
* RAW_MODE = ' '
* IMPORTING
* FROM_CACHE =
* CREA_TIME =
* CREA_DATE =
* CHNG_TIME =
* CHNG_DATE =
* STATUS =
* DOC_PROT =
TABLES
* ACCESS_INFO =
* CONTENT_TXT =
CONTENT_BIN = IT_BINARY
* EXCEPTIONS
* BAD_STORAGE_TYPE = 1
* BAD_REQUEST = 2
* UNAUTHORIZED = 3
* COMP_NOT_FOUND = 4
* NOT_FOUND = 5
* FORBIDDEN = 6
* CONFLICT = 7
* INTERNAL_SERVER_ERROR = 8
* ERROR_HTTP = 9
* ERROR_SIGNATURE = 10
* ERROR_CONFIG = 11
* ERROR_FORMAT = 12
* ERROR_PARAMETER = 13
* ERROR = 14
* OTHERS = 15
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
ENDIF
Now the issue is I want to convert that binary data to bitmap image and upload the same in to SE78. So that I can use that BMP image from SE78 in my smartforms.
I had used the class CL_IGS_IMAGE_CONVERTER to covert the image into bmp but it is giving error that error in IMAGE DATA CORRUPT & Error Code 3. The conversion code used is as below.
******* CONVERT THE JPG IMAGE INTO BMP PHOTO. **********
DATA: L_IGS_IMGCONV TYPE REF TO CL_IGS_IMAGE_CONVERTER,
L_IMG_BLOB TYPE W3MIMETABTYPE,
L_IMG_SIZE TYPE W3PARAM-CONT_LEN,
L_IMG_TYPE TYPE W3PARAM-CONT_TYPE,
L_IMG_SUBTYPE TYPE W3PARAM-CONT_TYPE,
L_IMG_URL TYPE W3URL,
L_ERR_CODE TYPE I,
L_ERR_TEXT TYPE STRING,
P_DEST TYPE CHAR32 VALUE 'IGS_RFC_DEST'.
DATA: G_IMG_BLOB TYPE W3MIMETABTYPE,
G_IMG_TYPE TYPE W3PARAM-CONT_TYPE,
G_IMG_SIZE TYPE W3PARAM-CONT_LEN.
IF NOT IT_BINARY[] IS INITIAL.
G_IMG_BLOB[] = IT_BINARY.
CREATE OBJECT L_IGS_IMGCONV
EXPORTING
DESTINATION = P_DEST.
CALL METHOD L_IGS_IMGCONV->SET_IMAGE
EXPORTING
BLOB = G_IMG_BLOB
BLOB_SIZE = G_IMG_SIZE.
CASE PS_CONNECT_INFO-RESERVE.
WHEN 'TIF'.
G_IMG_TYPE = 'image/tiff'.
WHEN 'JPG'.
G_IMG_TYPE = 'image/jpeg'.
WHEN 'PNG'.
G_IMG_TYPE = 'image/png'.
WHEN 'GIF'.
G_IMG_TYPE = 'image/gif'.
WHEN 'BMP'.
G_IMG_TYPE = 'image/x-ms-bmp'.
WHEN OTHERS.
EXIT.
ENDCASE.
L_IGS_IMGCONV->INPUT = G_IMG_TYPE.
L_IGS_IMGCONV->OUTPUT = 'image/x-ms-bmp'.
* PERFORM GET_SIZE USING PICTURE_CONTAINER
* L_IGS_IMGCONV->WIDTH
* L_IGS_IMGCONV->HEIGHT.
CALL METHOD L_IGS_IMGCONV->EXECUTE
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC IS INITIAL.
CALL METHOD L_IGS_IMGCONV->GET_IMAGE
IMPORTING
BLOB = L_IMG_BLOB
BLOB_SIZE = L_IMG_SIZE
BLOB_TYPE = L_IMG_TYPE.
SPLIT L_IMG_TYPE AT '/' INTO L_IMG_TYPE L_IMG_SUBTYPE.
ELSE.
CALL METHOD L_IGS_IMGCONV->GET_ERROR
IMPORTING
NUMBER = L_ERR_CODE
MESSAGE = L_ERR_TEXT.
BREAK-POINT.
ENDIF.
ENDIF.
ENDIF.
So could you please some one help me how to convert JPEG Photo to BMP programatically.
Regards,
Mayur.johnandersonpalmdesert wrote:
My printer is requesting a vector file.
Jpeg File format does not support vectors. Photoshop has limited vector support and tools. Photoshop can not save vector file formats like SVG. What File type does your printer want?
Adobe Illustrator is Adobe vector application. -
Copy any kind of file from content server to network directory
Helli All
The question:
I nee to copy any kind of file from content server to any network directory.
Explanation
1. transaction CV02N
2. There is attached file for a document in tab "Document data/Original"
3. This file stored in content server
4. I wrote program code that creates path of the stored file that finally looks like
http://cont:8888/ContentServer.dll?get&Version=.....*...&compid=app1.doc
where app1.doc is file's name and I have to copy this file into network directory.
The problem is that this URL open the file instead of just pointing to him
so that no function or method can't see this file and as the result I got message that
the file doesn\t exist.
Please, advice.
Regards,
Daniel.many many thanks for ur help. i really did not check the URLClassLoader properly.
but i would like to hear a little more from u. i have another question. here in this code (provided earlier), i searched for attribute values in the manifest file, then again i load the required class file from the very url. is it not good to retrieve the whole jar file first, and then check attribute values inside manifest file and load the required class files from that jar file that is already downloaded without going to that url again? how can i do this? -
Error Displaying Portlet Preview created from Content Server templates
I created portlet from content server announcement portlet template.Whet put on the page this portlet shows the following error message:
Error Displaying Portlet Preview.Error Getting Content from Portlet.
Same error with portlet created from the news template.If the link exists in TOA01, why is the dosumnet not visible ? When i use the Function Module ARCHIVOBJECT_DISPLAY, i get the error -
Error when opening document with HTML control:DP_ERROR_GENERAL
Can someone please let me know what are we doing wrong ?? -
Reading the Excel from Content Server...
Hello Experts
I have a requirement to read the contents of the excel from DMS content server to Internal Table.
I tried using the function module "SCMS_DOC_READ", but it is reading only the part of the contents and remaining contents are missing in the Internal Table.
Is there any other way to read the content of excel file stored in content server.
Many Thanks in advance!!!
Regards,
BenuHi Christoph,
Many thanks for your reply...
Now I am using the same report for downloading the document from content server but my requirement is to read the contents directly from content server without downloading it to presentation server..
The function module mentioned in the above post is not reading the complete contents of the excel sheet.
Regards,
Benu -
Fetch XML from Content server to Portlet and display as HTML
Hi,
I want to fetch the XML from the content server and display that XML in the Weblogic Portlet as HTML.
The main reason is that data will be contributed by the users in UCM and then I had to get that data from content server and display in portlet
Please Help........
Thanks,
VinodVinod:
Probably what you're looking for is to bring the content over using the UCM SPI adapter for WLP's VCR:
[http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/intro.html]
And then to display the content using a custom template using Content Presenter:
[http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/cm/displaytemplatesCM.html]
[http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/development.html]
When you say you want to fetch xml, is that because it's a contributor data file? You can either read the property values directly from the VCR, or use the info you get from the node (such as dDocName) to then use a UCM/WCM web service to retrieve formatted content and put it in an iframe. There are a lot of ways to go in formatting the data.
You can even add edit capabilities to your Presenter template by calling the 'edit data file' web service of WCM. -
Get files from Content server to Application server
I want to Get few files from Content server to Application server, I have the required Archive ID. It is a HTTP Content server type. Can you please suggest the suitable method for this.
Thanks
Purna> I am new to SDN and SAP XI, can anyone tell me whether its possible to move the files (different strcuture files i.e. some are master data files and some are transaction data file) from FTP server to Application server with one interface.
Hello Bob,
Yes it is possible.
There can be two ways of doing it.
1. N:1 mapping, BPM will require for this.
N:1 Mapping refer this blog
IDOCs (Multiple Types) Collection in BPM
BpmPatterns CollectMerge
part1 BPM with Patterns explained Part-1
part2 BPM with Patterns explained Part-2
Second option
Create 3 scanarios in integration directory and correspondingly in integration repositoy create different data types, message types, mappings & interface mappings and then in each of scenario us different message interface and interface mapping.
> I know that if we create new configuration it will work but I question is does master data interface picks this transaction data file also.
>
If you are using N:1 scenario then use *.csv in your sender adapter under file name parameter and then all the files will be picked up from same directory.
If you are using second option (3 different scenarios) then also you can pick the different files from same directory. You will be having 3 sender adapters in this case, So, one for picking master data, and another for product data and the last one for transaction data.
So, in case of master data use "plant_*.csv" as a file name and directory name.
In case of product data, use "product_*.csv " as a file name and source directory will remain same.
similarly do it for transaction data.
So by this way all 3 sender adapters will perform their job to pick the different files from same source directory.
Regards,
Sarvesh -
Unable to initialize socket connection to Content Server
Hi,
Webcenter installed on linux, content server installed on windows. Here is the error I see in the log files. I did added the ip address of the linux machine in windows host file but in Spaces I see JCR Connection problem. Any idea on what might be wrong. Here ar the settings I have Repository Connection:
User Name: sysadmin
CIS Socket Type: Socket
Server Host: windowsmachine
Server Port: 5444
Authntication Method: Identity Propagation
javax.jcr.RepositoryException: oracle.stellent.ridc.protocol.ProtocolException: Unable to initialize socket connection to Content Server
at oracle.jcr.impl.ExceptionFactory.repository(ExceptionFactory.java:161)
at oracle.stellent.jcr.IdcPersistenceManagerFactory.createPersistenceManager(IdcPersistenceManagerFactory.java:177)
at oracle.jcr.impl.OracleRepositoryImpl.login(OracleRepositoryImpl.java:444)
at oracle.vcr.jam.LoginTask.call(LoginTask.java:68)
at oracle.vcr.jam.LoginTask.call(LoginTask.java:29)
at oracle.webcenter.concurrent.Submission$2.run(Submission.java:495)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:509)
at oracle.webcenter.concurrent.Submission.run(Submission.java:436)
at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:792)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
at java.lang.Thread.run(Thread.java:619)
Caused by: oracle.stellent.ridc.protocol.ProtocolException: Unable to initialize socket connection to Content Server
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:23)
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:10)
at oracle.stellent.ridc.protocol.impl.SimpleConnectionPool.acquireConnection(SimpleConnectionPool.java:35)
at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:130)
at oracle.stellent.jcr.IdcPersistenceManagerFactory.createPersistenceManager(IdcPersistenceManagerFactory.java:163)
... 15 more
Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.net.ConnectException: Connection refused
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.connect(SocketConnection.java:41)
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:21)
... 19 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.createSocket(SocketConnection.java:111)
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.connect(SocketConnection.java:38)
... 20 moreThis error usually occurs because you have not authorized the client's IP address in UCM. The steps to add the WebCenter host to the list of authorized clients are detailed in section [4.3.1.3.1 of the Installation Guide|http://download.oracle.com/docs/cd/E12839_01/install.1111/e12001/webcenterservice_install.htm#sthref161].
Regards,
Nicolas -
Display different types of file formats from contents server on web UI
Hi,
I have to read different types of documents from content server and display it in web page using webdynpro abap.
Different types of documents are : Tif, Jpeg, BMP, PNG etc. need to be convert into gif format and display
Txt files as it is.
PDF files as it is.
Microsoft office documents as it is.
ALF files i.e. printlists to be shown on web page.
Please anyone has any information regarding this let me know ASAP.
Thanks & Regards,
Manalihi ,
pls refer the below thread :
Dynamic Use of Mime in component
n check wid thomas reply in the thread :
Create the cached response object that we will insert the content
Well you can manipulate the MIME content at runtime by using the API: CL_MIME_REPOSITORY_API. However if your content is temporary, it is more efficient to just place the content directly into the ICM cache. You don't have the overhead of having to both write and then delete it from the database. Here is an example of how you can do this:
I hope it wud be helpful
rgds,
amit -
Steps to change universe database connection from SQL server to Oracle 10
Hi,
we are moving from sql server to Oracle 10.Please let me know the steps and various parameters I should consider while changing universe database connection from SQL server to Oracle 10.
Following are the steps which I assumed :
1. create a new Oracle database connection or edit the existing connection to point to Oracle server
2. Need to check sql for each object, having integrity check for universe will solve the purpose of parsing each object
3. Exporting the universe after integrity check
4. Report data testing
Let me know if I miss on any steps.Also what all factors I need to consider while moving to Oracle for eg: what @ custom sql,what @ table names,what @ LOV etc.
Kindly replyThanks Abhijeet and Shreyash,
I will follow the steps you have suggested.
Actually I was searching for this on net and got to know that with Oracle database connection,theres lot of stuff needs to take care of in terms of custom sql and LOV and in our case,we have lot of custom sql for each object in the universe so just wanted to confirm.
I will do the changes and let you guys know in case theres any isuue specifically to Oracle. -
Accessing pdfs through jsp content tags from content server!!!!!
hi,
i have uploaded few images in content server which i can access by dis syntax
<ad:adTarget query="adAltText='intraday'" height="200" width="200"/>
or
<ad:adTarget query="image_name=='first'"/>
but for accessing pdfs..
<ad:adTarget query="title=='InsuranceDataSheet'"/><br>
dis syntax doesnt work..it only provides me a link on the jsp page on click of which i can go to that pdf..
what should i change?
kindly help..By default, only image and text content have configured renderers for <ad:adTarget>, <ad:render>, and <ph:placeholder>; for all others, it does just print a link, as you're seeing. However, you can write and configure additional content renderer classes for other mime types (e.g. appliation/pdf). See http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14238/placeholders.htm#i1006120 for details.
Greg -
Issues in connecting to Content Server through Stellent CIS
Hi,
I have installed CIS on Content Server 7.5. I have also installed the CIS adapaters on Weblogic Server. I am trying to connect to Stellent to search for content through these adapters from Weblogic server. I am able to connect to the sevrer, but getting the below error after connecting. Could any one please help?
Event generated by user 'guest' at host 'CIS'. Unable to retrieve search results. Permission denied. Host '(null)' is not an allowable remote socket host. [ Details ]
An error has occurred. The stack trace below shows more information. !csUserEventMessage,guest,CIS!$!csUnableToRetrieveSearchResults!csIncomingHostNotAllowed,(null) intradoc.common.ServiceException: !csUnableToRetrieveSearchResults!csIncomingHostNotAllowed,(null)
at intradoc.server.Service.buildServiceException(Unknown Source)
at intradoc.server.Service.createServiceExceptionEx(Unknown Source)
at intradoc.server.Service.createServiceException(Unknown Source)
at intradoc.server.ServiceSecurityImplementor.validateRemoteClientConnectionPrivilege(Unknown Source)
at intradoc.server.ServiceSecurityImplementor.globalSecurityCheck(Unknown Source)
at intradoc.upload.UploadSecurityImplementor.globalSecurityCheck(Unknown Source)
at intradoc.server.Service.globalSecurityCheck(Unknown Source)
at intradoc.server.Service.doRequest(Unknown Source)
at intradoc.server.ServiceManager.processCommand(Unknown Source)
at intradoc.server.IdcServerThread.run(Unknown Source)
Caused by: intradoc.common.ServiceException: !csIncomingHostNotAllowed,(null)
at intradoc.provider.SocketIncomingConnection.checkEnvironmentValueFilter(Unknown Source)
at intradoc.provider.SocketIncomingConnection.checkRequestAllowed(Unknown Source)
... 7 moresame issue as here:
Re: Permission denied. Host '(null)' is not an allowable remote socket host.
Maybe you are looking for
-
Hello, I've created a WebService and Deployed it succefully. The Service appears under System Administration->Stystem Configuration->Service Configuration and it is up and running there. The problem is that when I browse to it's wdsl file I receive "
-
Pre-order Street Fighter V to gain special access to the online beta tests!
The world-renowned fighting game series, Street Fighter, is back with its fifth, all-new main entry coming exclusively to PlayStation 4 and Windows PC early next year! For Street Fighter V, Capcom has announced the largest online beta testing in the
-
I installed createjs.zxt from Adobe site via the ext mng Now I get error that createjs panel was not installed. Can someone help please? Thanks, Paul.
-
I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes. I
-
Customize e-mail printer problem
Hello, after many days of work my M375 printer is crazy. Every function of printer was stopped (copy, scanner, printer). To resolve problem I send another time firmware. After this operation i cannot put another time my customized mail address for ep