Pcs:if tag error in Content Server presentation template

This probably isn't the right discussion group, but I couldn't find a group to which this inquiry applies.
Anyway, I'm working on Content Server (5.0.2) presentation template code, using a pcs:if tag, that looks something like this:
<pcs:foreach var=&#034;item&#034; expr=&#034;itemList&#034;>
     <pcs:if expr='item == &#034;Cats & Dogs&#034;'>
          Print something
     </pcs:if>
</pcs:foreach>
After clicking &#034;Save&#034; or &#034;Validate&#034; (to validate my code), I receive the following error message:
Error: Expected to find an apostrophe (') ending the attribute value, and did not.
<pcs:if expr='item == &#034;Cats & Dogs&#034;'>     // <--- the ampersand is highlighted
In other words, the validator doesn't know how to escape the ampersand (&) inside my string (&#034;Cats & Dogs&#034;).  I've tried numerous ways to escape it, but, so far, nothing has worked.  Replacing the ampersand with &#034;&&#034; effectively changes the string, so that doesn't work either.
Please let me know if you have a solution to this.
Thanks,
-Jose

Hi,
I am new to this field.
Kindly bear with me & guide me how to verify the password in SM59.
I went there,but not sure of it.Please let me know.
Regards,
john.

Similar Messages

  • Interactive PDF form in Activities - Error in Content Server

    Hi Experts,
    We would like to display an interactive PDF form in the attachements of activities.
    But the new windows shows nothing.
    First we thought this was an error due to Interactive Forms, but then we found out that Content Server has obviously some problems with this generated PDF and assigns a Content Length = 0 to all these generated documents.
    Please find attached some ICM traces, which shows this
    content length = 0.
    M  ICTSYS: AddHeaderField 'Content-Type' -> 'application/pdf'
    M  ICTSYS: AddHeaderField 'Content-Disposition' -> 'inline; filename="Interview.pdf"'
    M  ICTSYS: AddHeaderField 'X-compId' -> 'Interview.pdf'
    M  ICTSYS: AddHeaderField 'X-Content-Length' -> '0 '
    M  ICTSYS: AddHeaderField 'X-compDateC' -> '2007-02-06'
    M  ICTSYS: AddHeaderField 'X-compTimeC' -> '07:35:17'
    M  ICTSYS: AddHeaderField 'X-compDateM' -> '2007-02-06'
    M  ICTSYS: AddHeaderField 'X-compTimeM' -> '07:35:17'
    M  ICTSYS: AddHeaderField 'X-compStatus' -> 'online'
    M  ICTSYS: AddHeaderField 'X-pVersion' -> '0046'
    M  ICTSYS: AddHeaderField 'X-docProt' -> 'dru'
    M  ICTSYS: SetData data=00000000 off=0 len=0
    M  ICTSYS: SetStatus 200 OKICTSYS: AddHeaderField 'server' -> 'SAP Web Application Server (1.0;700)'
    A  SYSTEM-CALL RFC_ID id RFC_VALUE value
    A  RFC-SYSTEM> ID[0, type :0]: len:4 val:HTTP
    All suggestion are welcome!
    Best regards,
    Levente Bartha

    To have information entered once in a text field, and then have information repeat in subsequent fields, the name of each text field form needs to be identical. In screen shot, both fields are named the same

  • Connection pool error in content server

    getting below error. resumed the suspended pool and tried restarting the content server... but, unable to get login page itself.
    Unable to load the user information. There are no connections available from pool for provider 'SystemDatabase'. Unable to execute service method 'getConnection'. weblogic.jdbc.extensions.PoolDisabledSQLException: weblogic.common.resourcepool.ResourceDisabledException: Pool CSDS is Suspended, cannot allocate resources to applications...
    verified data source connection via weblogic (using option "Test DataSource"). it's throwing below error
    Connection test failed with the following exception: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: IO Error: Unknown host specified
    NOTE: There are no changes done on data source settings

    There was a similar question: Unable to load the user info or execute service method 'getConnection'
    There is nothing to add to William's answer:
    This is a WebLogic issue. You need to determine why the datasource was suspended. Restarting the WLS admin server and the UCM managed server should restart the suspended pool, but I'd expect the underlying issue to remain.

  • Search error in Content server

    Hi All,
    We have Migrated documents from IPM 10 g to IPM 11g.
    Now currently we are working in Production environment.
    But whenever I search for documents in UCM I am getting Following error
    Unable to retrieve search results. Error occurred while processing. Unable to return results. Unable to create the result set for query 'SELECT Revisions.dID, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, dFileSize AS VaultFileSize, DocMeta.*, RevClasses.* FROM Revisions, DocMeta, Documents, RevClasses
    WHERE Revisions.dID=DocMeta.dID And Revisions.dID=Documents.dID And Revisions.dDocName = RevClasses.dDocName And dIsPrimary = 1 And dReleaseState IN ('Y', 'U', 'I') ORDER BY dInDate Desc'. [FMWGEN][SQLServer JDBC Driver]Execution timeout expired. java.sql.SQLTimeoutException: [FMWGEN][SQLServer JDBC Driver]Execution timeout expired..
    Please somebody help me..
    Thanks in advance
    vikas

    Srinath Menon wrote:SELECT Revisions.dID, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, dFileSize AS VaultFileSize, DocMeta., RevClasses. FROM Revisions, DocMeta, Documents, RevClassesWHERE Revisions.dID=DocMeta.dID And Revisions.dID=Documents.dID And Revisions.dDocName = RevClasses.dDocName And dIsPrimary = 1 And dReleaseState IN ('Y', 'U', 'I') ORDER BY dInDate Desc
    Execute the above query on the DB directly and see if that brings up the results .>
    It looks like you may not have followed Srinath's instructions exactly. You edited your query to include a schema namespace, which defeats the purpose of running the query that the system is actually attempting to execute. Please run the exact query that was requested, since that's the query the system is actually running.
    If you run the query as posted in the original error (and included in Srinath's request), I would expect it to fail, as it appears to be malformed (see "DocMeta., RevClasses."). The trailing dots are probably the issue, and they shouldn't be there.
    If you cannot execute a search directly in the Content Server interface successfully, please post which search engine is being used. The query above is actually part of a query called a datasource. This particular datasource has been used for many years and is quite stable. I'd imagine that something else (like a customization or some other productized component) is the culprit, especially if the standard search within the Content Server itself is no longer working.

  • Error in content Server after installing folder_g component

    Hi,
    As soon as I install and enable the folder_g component, I get an error while restarting the content server, I am attaching the stack trace below...
    Info     12/21/09 11:13 AM 'Folders_g' component, version '2009_07_01 (build 49) ($Rev: 75409 $) br-10g-10.1.3.5-release', extends folders:7.2-1000.0.0.42 feature(s)
    Info     12/21/09 11:13 AM     Service 'DELETE_DOC' Extended
    Info     12/21/09 11:13 AM     Service 'DELETE_BYREV_REVISION' Extended
    Fatal     12/21/09 11:13 AM     Failed to initialize the server. intradoc.common.ServiceException: intradoc.shared.MetaFieldUtils.updateMetaData(Lintradoc/data/Workspace;Lintradoc/common/ExecutionContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V java.lang.NoSuchMethodError: intradoc.shared.MetaFieldUtils.updateMetaData(Lintradoc/data/Workspace;Lintradoc/common/ExecutionContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V [ Details ]
    A fatal error has occurred. The stack trace below shows more information.
    !csFailedToInitServer!syExceptionType2,intradoc.common.ServiceException,intradoc.shared.MetaFieldUtils.updateMetaData(Lintradoc/data/Workspace;Lintradoc/common/ExecutionContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V!syExceptionType2,java.lang.NoSuchMethodError,intradoc.shared.MetaFieldUtils.updateMetaData(Lintradoc/data/Workspace;Lintradoc/common/ExecutionContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
    intradoc.common.ServiceException: intradoc.shared.MetaFieldUtils.updateMetaData(Lintradoc/data/Workspace;Lintradoc/common/ExecutionContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
         at intradoc.server.IdcServerManager.init(IdcServerManager.java:148)
         at IdcServerNT.init(IdcServerNT.java:86)
         at IdcServerNT.main(IdcServerNT.java:54)
    Caused by: java.lang.NoSuchMethodError: intradoc.shared.MetaFieldUtils.updateMetaData(Lintradoc/data/Workspace;Lintradoc/common/ExecutionContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
         at collections.CollectionHelper.addMetaAndSetEnv(CollectionHelper.java:1036)
         at collections.CollectionHelper.createMetaFieldsUsedWithFolderTrash(CollectionHelper.java:1025)
         at FoldersgInstallFilter.doInstall(FoldersgInstallFilter.java:1172)
         at FoldersgInstallFilter.doFilter(FoldersgInstallFilter.java:248)
         at intradoc.shared.PluginFilters.filter(PluginFilters.java:92)
         at intradoc.server.IdcExtendedLoader.executeFilter(IdcExtendedLoader.java:285)
         at intradoc.server.IdcExtendedLoader.extraAfterServicesLoadInit(IdcExtendedLoader.java:270)
         at intradoc.server.IdcSystemLoader.loadServiceData(IdcSystemLoader.java:915)
         at intradoc.server.IdcServerManager.init(IdcServerManager.java:115)
         ... 2 more
    can anyone tell me if I m missing any components to be pre installed b4 the folder_g installation.
    Actually I m trying to install the Collaboration Manager component for which Folder_g is a prerequisite.
    Thanks,
    Jit

    Hi
    I believe that you need to install the CS10gR35CoreUpdate bundle as well and then restart the CS to get it up and running. Let me know how it goes.
    Srinath

  • DB50 error on Content Server instance

    Hi,
    I installed Content Server 6.40 with MaxDB 7.6 on a standalone host.
    Then I configured the above content server on ECC 6.0 DEV system.
    The content server respositories were created on ECC 6.0 DEV system and connecting between ECC 6.0 to content server was established successfully.
    Now I execute DB50 on ECC 6.0 DEV system to check the performance of MaxDB instance (which was connected to ECC 6.0 DEV system by content server repositories).
    After executing DB50, I get an error "Program can only be used with MaxDB". How can I rectify this error?

    Hi Diana,
    you are able to see many profiles at path /usr/sap/<SID>/SYS/profile because profiles of application servers are also saved.
    You are able to see profiles of Dialog Instance installed on another server as well as on same server.
    To know the exact profile, understand the naming convention
    PRD_DVEBMGS00_SPRODUCCION1 --> From this profile, we can say that Instance DVEBMGS is installed with Instance Number 00, SID as PRD on server SPRODUCCION1
    PRD_D02_SPRODUCCION2  --> From this profile, we can say that Instance D  (Dialog Instance) is installed with Instance Number 02, SID as PRD on server SPRODUCCION2
    PRD_SCS01_SPRODUCCION    --> From this profile, we can say that Instance SCS  (Central Services Instance) is installed with Instance Number 01, SID as PRD on server SPRODUCCION
    Now, to see correct profiles in Transaction RZ10, you need to Import Profiles in it.
    You can do this by going to Tcode RZ10 ---> From Menu Click on Utilities --> Import Profiles --> Of Active Servers
    You can select the Profile you want to edit and select the option Extended Maintenance and click on change.
    To find out the Correct Profile to add New Values, you need to know where you want to do changes i.e. on Dialog Instance on Another Server, Dialog Instance on Same Server or DVEBMGS00 Instance.
    After changing the profile parameters, you need to take restart of SAP System to make the changes effective.
    Let us know, if this information was helpful to you.
    with regards,
    Parin Hariyani

  • Weird Error from Content Server

    We are using Apache-Tomcat, I have built some content server portlets that display images, if I use .jpg's I get these strange errors, I have seen them when using bitstreaming on other Non-content server portlets, my solution was to use png's. Creating PNG's for this particular content server portlet is not an option, anyone seen this error: Plumxoac1f

    CH,
    Not I do not have a colition to this, but it has not happened to me in a while.
    Good Luck with this and hope someone chimes in to help you.

  • Content Server Portlet Template Searching

    I am trying to use the Community Directory Portlet Template. I basically used it as it came (no editting of templates). I created a couple of folders and added & published content items in those folders.
    The problem is that the Search within the portlet is not returning anything (even searching for '*') returns nothing.
    Is there some setting I missed or something? I've tried publishing the whole folder from Content Server Explorer and still no luck. Searching for text in the published items from the Content Server Explorer does work, but searching from the portlet does not.
    Thanks.

    Hi Raj ,
    ORA-01013: user requested cancel of current operation error comes up usually in 2 cases :
    1. When CS is losing DB connection intermittently
    2. DB is timing out with the queries being fired from the UCM
    Add the config variable DatabaseConnectionKeepAliveInterval=300 (for SCS to send Keep Alive Packet to the network so that the connectio drop is avoided)
    The value provided is ins secs.
    Secondly drop / rebuild the indexes for the following tables :
    DOCMETA , COUNTERS, DCOUMENTS , REVISIONS
    Then execute the statistics procedure on the DB so that all the indexes are updated with the latest db stats.
    Test to see if the issue still persists.
    Hope this helps
    Thanks
    Srinath

  • Error in content server configuration

    While creating content repository in OAC0,after filling all necessary fileds and trying to send the certificate,the below mentioned error occurs.
    Error in HTTP access : If_HTTP_client>receive 1
    ICM_HTTP_CONNECTION_FAILED.
    Help me how to rectify...
    Regards,
    John.

    Hi,
    I am new to this field.
    Kindly bear with me & guide me how to verify the password in SM59.
    I went there,but not sure of it.Please let me know.
    Regards,
    john.

  • pcs:insert not working correctly in Content Server 6.0

    Hello,
    I'm having a difficult time getting the <pcs:insert> tag working in Content Server 6.0. In the previous version of Content Server, I used <pcs:insert expr="mycontentitem"></pcs:insert> and the content item that I want inserted shows up fine. Now when I try it in Content Server 6.0, the inserted (child) content item tries to reference the parent's content item variables, giving me nothing. Also, I have tried using <pcs:insert path="mycontentitem"> to the same result.
    Any help, or example of a working <pcs:insert> for Content Server 6.0 would be a lifesaver!
    Thank you,
    PK

    We have the same problem with "INSERT" tags not working in the newest version CS6.0. I am a bit surprised that anyone had replied to your post to give us some explanations or directions how to solve the problem. It looks as a serious problem to me.

  • Dynamically Updating Content Server Portlets

    [urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
    ArticleName Author Title Date mystory author1 title1 04/05/01
    story2 author2 title2 06/07/04
    story author3 title3 01/02/03
    So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
    I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
    First Problem: Passing Information
    I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
    I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
    I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
    Second Problem: Dynamically Updating PCS Tags
    Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
    My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
    Thanks a lot,
    Jason Grauel

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • JavaScript and Content Server Portlets

    Header, footer, news, custom, doesnt matter. Can you use javascript in them and if so, to what extent? For mouseovers, animation, div tag management and manipulation, etc...

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • Error occurred in diagnosticTests.jsp after installation of content server

    HI
    I installed the plumtree portal (PlumtreePortal_v5-0.exe) and Content server (PlumtreeContentServer_v5-0.exe). The portal is working fine. But When I completed the installation of content server I received the following errors, when I checked the diagnosticTests.jsp Which tells whether the installation is successful or not....
    I found 2 bugs
    - Root Section Publishing Target
    - Root Section Preview Target
    Possible Resolution is as follows.
    The Publishing Target Browser Path is invalid. The item was published successfully but could not be found at the Browser Path. To change the publishing target right click on the root folder in Content Explorer and choose "Publishing Target". Click on the Publish Tab. Change the Browser Path to a valid path.
    I am not able to find the Content server explorer. Please let me know how and where can I find these editor
    - Content server explorer
    - Portlet Editor
    - Data Entry Template Editor
    - Presentation Template Editor
    - Workflow Editor
    - WebDav Interface
    Thanks
    Vivek

    Hi Romain Testu, Jstorz & srinathmenon:
    Thanks for the information on the 2 exes that I need to run (IdcServer.exe & IdcAdmin.exe). I ran these two exes from the command prompt as suggested by srinathmenon (I first ran IdcServer next IdcAdmin). However, I did not find any new windows services showing up, with any similar sounding name.
    I once again visited the http://localhost/idc, and when I clicked on the picture of the LOCK, I found a new difference from before. Earlier, I was getting an error message as soon as I clicked on the LOCK. Now, when I clicked on the LOCK, I got a prompt for Username and Password. I typed the default sysadmin & idc. Then I got logged onto a window which says "Oracle Content Server", with three Tree-view dropdowns on the left (My Content Server, Browse Content and Search).
    But in the main part of this Oracle Content Server window, it gives the following error message: -
    Content Server Request failed..Unable to retrieve page. Permission denied. Address 127.0.0.1 is not an allowable remote socket address
    Could you please suggest what could be wrong here?
    Thanks,
    -Deepak

  • Content Server: Controlling layout in 2 column table

    I have created an employee roster based on the news portlet template. I would like my "main page" to show the content items in a 2-column table so that they read from left to right like my graphic below. Does anyone know how I would do this in the main page's presentation template? Does it involve the <pcs:foreach> tag? Thanks. Elaine

    Given the template you send me over email, I modified it and it should now give you the result you want. Let me know if you have any problems.
    <!-- start Documents --><table width="100%" border="0" cellspacing="2" cellpadding="2"><pcs:foreach var="item" expr="filter(list.items, 'filtered.published &and; !filtered.hidden')"><pcs:if expr="item_position &le; maxitems"><!-- If the remainder of the position divided by two is 0, then start a new row. Otherwise, completethe row. NOTE: We need to add checks if there total number of items is odd, the table could look a little strange. --><pcs:if expr="item_position % 2 != 0"> <tr> <td width="50%"> <table> <tr> <td width="125" align="center"><img src="<pcs:value expr="item.clerkphoto.location"></pcs:value>"> </td> <td align="left" class="listSubtitle">This is item <pcs:value expr="item_position"></pcs:value>. </pcs:value>('<pcs:value expr='item.location'></pcs:value>'); return false;"><pcs:value expr="encode(item.firstname)"></pcs:value> <pcs:value expr="encode(item.lastname)"></pcs:value></a><br> <span class="listItalicText"><pcs:value expr="item.published" format="MMMM d, yyyy h:mma z"></pcs:value></span> </td> </tr> </table> </td><pcs:if><pcs:if expr="item_position % 2 == 0"> <td width="50%"> <table> <tr> <td width="125" align="center"><img src="<pcs:value expr="item.clerkphoto.location"></pcs:value>"> </td> <td align="left" class="listSubtitle">This is item <pcs:value expr="item_position"></pcs:value>. <a href="#" onClick="open_article<pcs:value expr="pcs_id"></pcs:value>('<pcs:value expr='item.location'></pcs:value>'); return false;"><pcs:value expr="encode(item.firstname)"></pcs:value> <pcs:value expr="encode(item.lastname)"></pcs:value></a><br> <span class="listItalicText"><pcs:value expr="item.published" format="MMMM d, yyyy h:mma z"></pcs:value></span> </td> </tr> </table> </td> </tr><pcs:if> <pcs:if expr="item_position == maxitems &and; item_size > maxitems"> <tr><td align="right" class="listSubtitle"><a href="#" onClick="open_index<pcs:value expr='pcs_id'></pcs:value>();return false;">View All...</a></td></tr> </pcs:if></pcs:if></pcs:foreach></table><!-- end Documents -->

  • Content server log showing exception in stream

    Hi all,
    I am connecting to ecm with the follwoing cod eand error
    on transfere stream is ocurring
    after connection was paralyesd for about 4 minutes then
    ecxeption occure then server log shows
    a service exception
    the follwoing is the used code
    PLZ HELP ME
    * Copyright (c) 1997-2001 IntraNet Solutions, Incorporated. All rights reserved.
    * Copyright (c) 2001-2007 Stellent, Incorporated. All rights reserved.
    package com.stellent.cis.sdk.samples.checkin;
    import java.net.MalformedURLException;
    import java.rmi.RemoteException;
    import java.util.Date;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import com.stellent.cis.client.command.CommandException;
    import com.stellent.cis.client.io.ICISTransferStream;
    import com.stellent.cis.client.api.scs.ISCSContent;
    import com.stellent.cis.client.api.scs.ISCSContentID;
    import com.stellent.cis.client.api.scs.document.checkin.ISCSDocumentCheckinAPI;
    import com.stellent.cis.client.api.scs.document.checkin.ISCSCheckinFlags;
    import com.stellent.cis.client.api.scs.document.checkin.ISCSDocumentCheckinResponse;
    import com.twainconnect.sample.UCPMClient1;
    import java.io.FileInputStream;
    import java.io.InputStream;
    * This class shows how to check in a file into the content server. This takes a bunch of command line switches most of which is
    * optional. If some required values are not given, it creates random values for them.
    * -file : the absolute path to the file which is to be checked in (required)
    * -contentid : the content id of the document (auto generated)
    * -title : the title of the document (auto generated)
    * -type : the type of the document (defaults to ADACCT)
    * -securitygroup : the security group (defaults to Public)
    public class CheckinFile extends UCPMClient1 {
    // The path to the primary file of the document
    private String primaryFile = null;
    // The content id of the document
    private String contentId = null;
    // The title of the document
    private String title = null;
    // the type of the document
    private String type = null;
    // the security group of the document
    private String securityGroup = null;
    // The check in api from the cis
    private ISCSDocumentCheckinAPI api = null;
    public static void main(String[] args) {
    CheckinFile checkin = new CheckinFile();
    checkin.initialize(args);
    try {
    checkin.connect();
    checkin.execute();
    } catch (CommandException e) {
    e.printStackTrace();
    } catch (MalformedURLException e) {
    e.printStackTrace();
    } catch (RemoteException e) {
    e.printStackTrace();
    System.exit(0);
    * Executes the services to perform a content server check in.
    protected void execute() throws RemoteException, CommandException {
    // Get the Document check in api from the active api.
    api = getClient().getUCPMAPI().getActiveAPI().getDocumentCheckinAPI();
    // Perform a check in of the file with the values provided. The check in flags is generated in the method
    // getCheckinFlags(). Also see getActiveContent(), getActiveContentId()
    try {
    ICISTransferStream transferStream = getClient().getUCPMAPI().createTransferStream();
    transferStream.setFile(new File("D:\\ddd.doc"));
    System.out.println("read b4 get === "+transferStream.getInputStream().read());
    // InputStream inputStreamxx = new FileInputStream( );//transferStream.getInputStream();
    // FileInputStream inputStreamxx = new FileInputStream(new File("D:\\ddd.doc"));
    // transferStream.setInputStream(inputStreamxx);
    // System.out.println("after setting "+transferStream.getInputStream().read());
    // byte[] input = new byte[25];
    // for (int i = 0; i < input.length; i++) {
    // int b = transferStream.getInputStream().read(input);
    // if (b == -1)
    // break;
    // input[i] = (byte)b;
    // System.out.println("\n---------\n"+input.length);
    // System.out.println("Whole legnth= "+transferStream.getInputStream().read(input));
    // System.out.println(inputStream .read());
    // System.out.println(getPrimaryFile());
    // transferStream.setFileName("mmm");
    // transferStream.setContentType("text/plain");
    // transferStream.setContentLength(5);
    ISCSDocumentCheckinResponse result =
    api.checkinFileStream(getSCSContext(), getActiveContent(),
    transferStream);
    //getSCSContext().setCrendentials();
    // The message from the content server , if any
    String message = result.getMessage();
    // Print a status message to the console
    print("Checked in the file [" + getPrimaryFile() +
    "] with content id " + getContentId() + ". Message:" +
    message);
    } catch (FileNotFoundException exp) {
    throw new CommandException(exp);
    } catch (IOException exp) {
    throw new CommandException(exp);
    } catch (Exception exp) {
    exp.printStackTrace();
    * This creates a new SCSCheckinFlags object which can be used to define the check-in properties.
    * @return new SCSCheckinFlags object
    * @throws RemoteException
    * @throws com.stellent.cis.client.command.CommandException
    protected ISCSCheckinFlags getCheckinFlags() throws RemoteException,
    CommandException {
    log.fine("Entering getCheckinFlags");
    ISCSCheckinFlags checkinFlags =
    (ISCSCheckinFlags)getClient().getUCPMAPI().createObject(ISCSCheckinFlags.class);
    // Specify that the file should be copied, and not be deleted after the check in.
    checkinFlags.setFileCopy(true);
    // Specify this to true if this is a workflow step checkin.
    checkinFlags.setFinished(false);
    return checkinFlags;
    * Creates a new SCSContent object where all the document specific properties and meta-data values can be set for the
    * check-in process.
    * @return new SCSContent object with the properties set
    * @throws RemoteException
    * @throws com.stellent.cis.client.command.CommandException
    protected ISCSContent getActiveContent() throws RemoteException,
    CommandException {
    // Create a new content object for the executing context
    ISCSContent activeContent =
    (ISCSContent)getClient().getUCPMAPI().createObject(ISCSContent.class);
    ISCSContentID contentID =
    (ISCSContentID)getClient().getUCPMAPI().createObject(ISCSContentID.class);
    contentID.setContentID(getContentId());
    activeContent.setContentID(contentID);
    // Set the Title of the document
    activeContent.setTitle(getTitle());
    // set the type of the document
    activeContent.setType(getType());
    // set the security group of the document
    activeContent.setSecurityGroup(getSecurityGroup());
    return activeContent;
    * Override the initialize method to read in more document specific values from the command line.
    protected void initialize(String[] args) {
    log.fine("Entering initialize");
    super.initialize(args);
    // Provide a default value for the fields so that we don't have to enter it always. ;-)
    // Date is random enough for us.
    Date now = new Date();
    setPrimaryFile(readArgsAsString("-file", args, null));
    setTitle(readArgsAsString("-title", args,
    "Title By SDK " + now.getTime()));
    setContentId(readArgsAsString("-contentid", args,
    now.getTime() + "Content-Id-SDK"));
    setType(readArgsAsString("-type", args, "ADACCT"));
    setSecurityGroup(readArgsAsString("-securitygroup", args, "Public"));
    // Getters and setters for the variables
    public String getPrimaryFile() {
    primaryFile = "D:\\w.txt";
    return primaryFile;
    public void setPrimaryFile(String primaryFile) {
    this.primaryFile = primaryFile;
    public String getContentId() {
    return contentId;
    public void setContentId(String contentId) {
    this.contentId = contentId;
    public String getTitle() {
    return title;
    public void setTitle(String title) {
    this.title = title;
    public String getSecurityGroup() {
    return securityGroup;
    public void setSecurityGroup(String securityGroup) {
    this.securityGroup = securityGroup;
    public String getType() {
    return type;
    public void setType(String type) {
    this.type = type;
    Edited by: user7326470 on Oct 17, 2009 2:52 AM

    <?xml version="1.0" encoding="windows-1256" ?>
    <config>
    <adapter default="true" name="myadapter" type="scs">
    <config>
    <property name="type">web</property>
    <property name="vaultType">web</property>
    <property
    name="host">http://192.168.0.104/MIC_ECM/idcplg</propert
    y>
    <property name="port">4444</property>
    <property
    name="contentServerAdminID">sysadmin</property>
    <property
    name="contentServerAdminPassword">idc</property>
    <property
    name="eventPollingEnabled">true</property>
    <property
    name="persistentConnection">true</property>
    <property name="cacheEnabled">true</property>
    <property
    name="connectionTimeout">9999999999999999999999999999999
    9999999999999999999999999999999999999999999999999999</pr
    operty>
    <property
    name="contentServerMappedVault"></property>
    <property name="appserverMappedVault"></property>
    </config>
    <beans template="classpath:/META-
    INF/resources/adapter/adapter-services-scs.jxml"/>
    </adapter>
    <adapter name="checkin" type="scs">
    <config>
    <property name="type">web</property>
    <property
    name="host">http://192.168.0.104/MIC_ECM/idcplg</propert
    y>
    <property name="port">4444</property>
    <property
    name="contentServerAdminID">sysadmin</property>
    <property
    name="contentServerAdminPassword">idc</property>
    <property
    name="eventPollingEnabled">true</property>
    <property
    name="persistentConnection">false</property>
    <property name="cacheEnabled">true</property>
    <property
    name="connectionTimeout">9999999999999999999999999999</p
    roperty>
    <property
    name="contentServerMappedVault"></property>
    <property name="appserverMappedVault"></property>
    </config>
    <beans template="classpath:/META-
    INF/resources/adapter/adapter-services-scs.jxml"/>
    </adapter>
    </config>
    the JDeveloper exception is as foolows
    [2009-10-17 11:24:10,749] [SCS EventPoller [myadapter]]
    WARN
    (com.stellent.cis.server.api.scs.event.impl.SCSEventPoll
    er) - No password credentials supplied for background
    polling thread but adapter config 'myadapter' is set to
    type web which requires authentication will attempt to
    poll with no credentials
    [2009-10-17 11:24:10,811] [SCS EventPoller [myadapter]]
    WARN
    (com.stellent.cis.server.api.scs.event.impl.SCSEventPoll
    er) - Error in content server event poller
    com.stellent.cis.client.command.CommandException: Error
    reading the response from the Content Server: 401
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:338)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.execute
    (SCSCommand.java:222)
         at
    com.stellent.cis.client.command.impl.services.CommandExe
    cutorService.executeCommand
    (CommandExecutorService.java:57)
         at
    com.stellent.cis.client.command.impl.CommandFacade.execu
    teCommand(CommandFacade.java:158)
         at
    com.stellent.cis.client.command.impl.BaseCommandAPI.invo
    keCommand(BaseCommandAPI.java:84)
         at
    com.stellent.cis.client.api.scs.administrative.query.imp
    l.SCSAdministrativeQueryAPI.queryDocumentHistory
    (SCSAdministrativeQueryAPI.java:76)
         at
    com.stellent.cis.server.api.scs.event.impl.SCSEventPolle
    r$SCSFileCachePollingThread.run(SCSEventPoller.java:275)
    Caused by:
    com.stellent.cis.server.api.scs.request.SCSRequestExcept
    ion: Error reading the response from the Content Server:
    401
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:156)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.processRequest(SCSRequestProcessor.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:61)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedPublishFilter.handleRequest
    (SCSOptimizedPublishFilter.java:128)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedRetrieveFilter.handleRequest
    (SCSOptimizedRetrieveFilter.java:250)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.rewrite.SCSRewri
    teURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.cache.impl.SCSSe
    rviceCacheFilter.handleRequest
    (SCSServiceCacheFilter.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestE
    xecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeV
    iaProxy(SCSCommand.java:353)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:335)
         ... 6 more
    Caused by:
    com.stellent.cis.common.exception.HttpException: 401
         at
    com.stellent.cis.server.api.scs.protocol.impl.httpclient
    .HdaViaHttpProtocol.writeMessage
    (HdaViaHttpProtocol.java:171)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:148)
         ... 19 more
    [2009-10-17 11:29:10,847] [SCS EventPoller [myadapter]]
    WARN
    (com.stellent.cis.server.api.scs.event.impl.SCSEventPoll
    er) - Error in content server event poller
    com.stellent.cis.client.command.CommandException: Error
    reading the response from the Content Server: 401
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:338)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.execute
    (SCSCommand.java:222)
         at
    com.stellent.cis.client.command.impl.services.CommandExe
    cutorService.executeCommand
    (CommandExecutorService.java:57)
         at
    com.stellent.cis.client.command.impl.CommandFacade.execu
    teCommand(CommandFacade.java:158)
         at
    com.stellent.cis.client.command.impl.BaseCommandAPI.invo
    keCommand(BaseCommandAPI.java:84)
         at
    com.stellent.cis.client.api.scs.administrative.query.imp
    l.SCSAdministrativeQueryAPI.queryDocumentHistory
    (SCSAdministrativeQueryAPI.java:76)
         at
    com.stellent.cis.server.api.scs.event.impl.SCSEventPolle
    r$SCSFileCachePollingThread.run(SCSEventPoller.java:275)
    Caused by:
    com.stellent.cis.server.api.scs.request.SCSRequestExcept
    ion: Error reading the response from the Content Server:
    401
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:156)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.processRequest(SCSRequestProcessor.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:61)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedPublishFilter.handleRequest
    (SCSOptimizedPublishFilter.java:128)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedRetrieveFilter.handleRequest
    (SCSOptimizedRetrieveFilter.java:250)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.rewrite.SCSRewri
    teURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.cache.impl.SCSSe
    rviceCacheFilter.handleRequest
    (SCSServiceCacheFilter.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestE
    xecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeV
    iaProxy(SCSCommand.java:353)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:335)
         ... 6 more
    Caused by:
    com.stellent.cis.common.exception.HttpException: 401
         at
    com.stellent.cis.server.api.scs.protocol.impl.httpclient
    .HdaViaHttpProtocol.writeMessage
    (HdaViaHttpProtocol.java:171)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:148)
         ... 19 more
    com.stellent.cis.client.command.CommandException: Error
    reading the response from the Content Server: 500
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:338)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.execute
    (SCSCommand.java:222)
         at
    com.stellent.cis.client.command.impl.services.CommandExe
    cutorService.executeCommand
    (CommandExecutorService.java:57)
         at
    com.stellent.cis.client.command.impl.CommandFacade.execu
    teCommand(CommandFacade.java:158)
         at
    com.stellent.cis.client.command.impl.BaseCommandAPI.invo
    keCommand(BaseCommandAPI.java:84)
         at
    com.stellent.cis.client.api.scs.document.checkin.impl.SC
    SDocumentCheckinAPI.checkinFileStream
    (SCSDocumentCheckinAPI.java:663)
         at
    com.stellent.cis.sdk.samples.checkin.CheckinFile.execute
    (CheckinFile.java:118)
         at
    com.stellent.cis.sdk.samples.checkin.CheckinFile.main
    (CheckinFile.java:71)
    Caused by:
    com.stellent.cis.server.api.scs.request.SCSRequestExcept
    ion: Error reading the response from the Content Server:
    500
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:156)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.processRequest(SCSRequestProcessor.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:61)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedPublishFilter.handleRequest
    (SCSOptimizedPublishFilter.java:128)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedRetrieveFilter.handleRequest
    (SCSOptimizedRetrieveFilter.java:250)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.rewrite.SCSRewri
    teURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.cache.impl.SCSSe
    rviceCacheFilter.handleRequest
    (SCSServiceCacheFilter.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestE
    xecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeV
    iaProxy(SCSCommand.java:353)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:335)
         ... 7 more
    Caused by:
    com.stellent.cis.common.exception.HttpException: 500
         at
    com.stellent.cis.server.api.scs.protocol.impl.httpclient
    .HdaViaHttpProtocol.writeMessage
    (HdaViaHttpProtocol.java:171)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:148)
         ... 20 more
    Process exited with exit code 0.
    the server exception in log of content server is as
    follows
    Event generated by user 'anonymous' at host
    '192.168.0.104'. Stream terminated before being able to
    read HTTP protocol line. Stream terminated before being
    able to read HTTP protocol line. [ Details ]
    An error has occurred. The stack trace below shows more
    information.
    !csUserEventMessage,anonymous,192.168.0.104!$!
    syStreamTerminatedBeforeProtocol!
    syStreamTerminatedBeforeProtocol
    intradoc.common.ServiceException: !
    syStreamTerminatedBeforeProtocol
         at
    intradoc.server.ServiceRequestImplementor.doRequest
    (ServiceRequestImplementor.java:628)
         at intradoc.server.Service.doRequest
    (Service.java:1709)
         at
    intradoc.server.ServiceManager.processCommand
    (ServiceManager.java:357)
         at intradoc.server.IdcServerThread.run
    (IdcServerThread.java:195)
    Caused by: java.io.IOException: !
    syStreamTerminatedBeforeProtocol
         at
    intradoc.serialize.DataBinderSerializer.readStreamLineBy
    teEx(DataBinderSerializer.java:1588)
         at
    intradoc.serialize.DataBinderSerializer.readStreamLineEx
    (DataBinderSerializer.java:1556)
         at
    intradoc.serialize.DataBinderSerializer.readLineEx
    (DataBinderSerializer.java:1528)
         at
    intradoc.serialize.DataBinderSerializer.parseForData
    (DataBinderSerializer.java:1336)
         at
    intradoc.serialize.DataBinderSerializer.parseMultiConten
    t(DataBinderSerializer.java:1283)
         at
    intradoc.serialize.DataBinderSerializer.continueParse
    (DataBinderSerializer.java:1244)
         at
    intradoc.data.DataSerializeUtils.continueParse
    (DataSerializeUtils.java:138)
         at intradoc.server.Service.continueParse
    (Service.java:415)
         at
    intradoc.server.ServiceRequestImplementor.doRequest
    (ServiceRequestImplementor.java:620)
         ... 3 more

Maybe you are looking for

  • Error message: Item doesn't have proper security settings

    I just installed protools on my new mac bookand now i get an error message that says "An item in the Startup Items folder (/library/startupitems/PACESupport) does not have the proper security settings. Then it prompts me to disable, fix, or decide la

  • List Box or Combo Box?

    I am not sure if either of these are what I need to use. I will show an example: I have four categories that I would like to add up to 100% Attitude     What type of form field can I use that if I put 25% here Worth-ethic       and 25 % Timeliness   

  • Can't Capture more than 10 minutes or so before the window freezes

    Using Final Cut Express 2 Camera feeding is a Hi-8 Sony DCR-TRV120 NTSC (non Hi Def) Troubles started (I think) after I upgraded my OS System to 10.5.6 I hadn't used this program in a while. Things seem to go as they used to when I was capturing vide

  • Battery dies and computer shuts down

    Up until about a week or two ago my MacBook was working fine. Yet now the battery is all messed up. Whenever the battery dies the whole system shuts down instead of going into safe sleep mode. I tried resetting the SMS, it worked at first, but then i

  • 1.9 not happening in NY

    1.9 delayed again. Just saw tweets from Joe. No new time frame