Execute method of IWDPDFDocumentCreationContext throwing error

Hi All
I am using NWDS2004s SPS10
I need to generate a pdf. I am using "IWDPDFDocumentCreationContext" Interface to create the pdf from given xml and xdp. When i use the "execute" method of the interface it throws me following error.
webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument Processor failed to process Render Request.
     at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException.<init>(PDFDocumentRuntimeException.java:25)
     at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
     at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentCreationContext.execute(PDFDocumentCreationContext.java:146)
     at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentCreationContext.execute(PDFDocumentCreationContext.java:170)
     at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.impl.PDFDocumentCreationContextWDImpl.execute(PDFDocumentCreationContextWDImpl.java:94)
Please help.
Regards
Sonal Mangla

Hi Deepak
We are getting exactly the same error. We have also created OSS message for the same.
It would really help if you can post the solution.
Thanks & Regards
Rupesh

Similar Messages

  • Database.LoadDataSet() method throwing error while retriving data from IBM DB2 database

    Database.LoadDataSet() method is throwing error during retriving data from empty table of IBM DB2 database. It is giving error code "SQL0100W".
    “Error Message: 0NO_DATA [02000] [IBM] [DB2 / NT] SQL0100W FETCH, whether there is a line to be UPDATE or DELETE, or of the query result is an empty table .
    SQLSTATE = 02000”

    Hello SharayuPandit,
    For issues regarding DB2, i suggest that you could post it to DB2 related forum:
    https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000842
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [Windows] file.url throw error when application executable in root directory

    Here is the bugbase ticked: Bug#3940278 - [Windows] file.url throw error when application executable in root directory
    If you launch AIR application packaged as bundle from root directory and try to get url property of any file you get IllegalOperationError.
    No matter what file url property you try to get.
    It's a big problem when you distribute your application on CD disks or flash drive.
    I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
    Thanks.

    I checked all deployment descriptions and there are no references to t3://localhost:7001. Few months back, I had the complete clustering setup working on 2 machines and now when I deploy my application on same configuration, it fails with t3://localhost:7001 unreachable error. I created a new cluster configuration on one machine with 2 managed server and it deploys fine. Can not figure out what has changed ?

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • IDocumentQuery.Execute() method throws user does not have edit permissions exception

    I'm trying to query a document folder for all of its containing documents. Its a basic query like this:
    IPortletContext PortletContext = PortletContextFactory.CreatePortletContext(Request,Response);IRemoteSession PTSession;PTSession = PortletContext.GetRemotePortalSession();IDocumentManager documentManager = PTSession.GetDocumentManager();
    IDocumentQuery documentQuery = documentManager.CreateQuery(FolderID); documentQuery.SetSortProperty(ObjectProperty.Name);IObjectQuery queryResults = documentQuery.Execute();
    When I'm logged into the portal as an administrator, everything works fine. However if I'm logged in as a "regular" user, I get this exception when calling the Execute() method:
    Plumtree.Remote.PRC.PortalException: Exception of type Plumtree.Remote.PRC.PortalException was thrown. ---> System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Access denied: Current user does not have edit permission
    I'm sending the Login Token to the portlet. Now I've tried giving the user Edit rights on the document folder as well as Edit the Knowledge Directory rights in the Activity Manager, but neither gets rid of the exception. I'm not sure what other "Edit" permissions to check. I don't even see why the user would need "Edit" permission to anything in the first place since the Execute() method simply returns an IObjectQuery that doesn't have any ability to make changes to any objects. I know that I could use the SearchFactory interface, but I wanted the results to be real time. Any help would be much appreciated. Thanks!
    Jimmy

    The problem here is that the query is created with default settings to show unapproved documents -- only users with edit access can see unapproved documents. Add the bold line to your code and it will work.
    IDocumentManager docManager = prcSession.GetDocumentManager();IDocumentQuery docQuery = docManager.CreateQuery(iFolderID);docQuery.SetShowUnapproved(false);IObjectQuery queryResults = docQuery.Execute()

  • Execute Method must not return a resultSet

    Hi.
    I am using DataModifyQuery to insert a record in MS SQL. On that Table there is one trigger defined whcih in turn insert data into some other table. in case there is any error the trigger return a error message.
    When i execute the Sql with DataModifyQuery and there is a error return from the trigger then Toplink gives me a error message.
    Execute Method must not return a resultSet
    how can i over come this sistuation.
    Thanks.

    Nadir wrote:
    I was lost. Right, there was no return statement. Below works now
    public String getIPAddress(){
    String hostip = "";
    try {
    hostip = InetAddress.getLocalHost().getHostAddress();
    System.out.println("ip is "+hostip);
    } catch (UnknownHostException e) {
    hostip = e.getMessage();
    return hostip;
    -----It compiles. I wouldn't say it works. If I call a method getIPAddress(), I expect the String I get back to be an IP address. I don't want to have to parse it to determine that it's not an error message. That defeats the whole purpose of the exception mechanism. If that method can't get the IP address, it should throw an exception. In this case, there's no reason to catch the exception; just let it propagate up out of that method.
    Beginners often seem to think that exceptions are something that just arose on their own out of the language, and the designers had to add try/catch in order to be able to stop them from preventing our code executing. That's not the case. They were deliberately added to the language as a better way of indicating an error than checking return values at every step.

  • Search Crawl status throwing error

    Hi,
    We installed MOSS on our clients machine and Search has been problematic from the getgo.
    When we have performed a forced restart on the osearch service (http://bruteforcesharepoint.blogspot.com/2009_04_01_archive.html), within the next couple of hours the crawler status wil be Error. But, search at this point is still working. Indexing basically
    stops and event errors are thrown in the event logs, but searching is still possible.
    Here are the symptoms:
    the Crawl status is 'Error'
    /ssp/admin/_layouts/searchsspsettings.aspx (Search Settings page) is throwing a HTTP 403 error : The website declined to show this webpage.
    I can still get to the Search Administration, and when I go to view the Content Sources or view the crawl logs specifically, I get the same 403 error.
    When I try to 'Reset all crawled content', that is when Search dies. I get the message an exception error message.
    When I try to stop the Office SharePoint Search service in Central Admin, it hangs in the Stopping state. It'll only come out of this if I go through the task manger and manually force the process to stop and then start it again using the
    stsadm -o osearch -action start -role index
    command then search starts again. And I have to reset the crawled content and perform a full crawl (apart from also reconfiguring the indexer). I can successfully perform a full crawl, takes about 2 hours and it does an incremental crawl for the first
    couple of increments. Then all of a sudden I get the follow errors in the event view log:
    Error event ID: 1030
    Source: Userenv
    Desc: Windows cannot query for the list of Group Policy objects. Check the event log for possible messages previously logged by the policy engine that describes the reason for this.
    And then we get thousands on the following error (the indexing schedule timer job basically stops working):
    Error event id 6398
    Source: Windows SharePoint Services 3
    Desc: The Execute method of job definition Microsoft.Office.Server.Search.Administration.IndexingScheduleJobDefinition (ID b6d1868e-26a5-4ae2-b922-0f129fd77a61) threw an exception. More information is included below.
    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Now before you ask me about permission, we have created an admin user called spadmin who has access to everything and is the default content access account as well. It is also spadmin that is running the osearch, not the network account.
    Can anyone provide any insights into why we are experiencing this issue??? We have gone round in circles trying to figure out what we're doing wrong or whether this is a sharepoint issue.
    any help would be much appreciated.
    Cheers
    danielle

    hi danielle,
    I was also in a same sort of situation,  here is what i did:
    1> locate the catalog file directory.
    2>place CI dumps in the 12 hive/bin folder.
    3>run the command
    cidump -dump "catalog filedirectory location" -widset>c:\xyz.txt
    4>search with the word "exception" if there is a hit eg
    error:excetion caught xxxxxxxxx in shadow index xxxxxxxx then u need to delete this index.
    5>run below command
    cidump -removeindex "catalog filedirectory location" -i xxxxxxxxx
    xxxxxxxx signifies the shadow index .
    6> restart the searchservice manually,timersevice.
    if the issue persists let us know
    Moderator Note: NEVER propose your own posts as answers. The function is for proposing the good answers of
    other people. Not for self-proposing.
    (Also don't write let me know - these are forums not private conversations)

  • Logout throws error 500

    Hi OTN,
    After WebLogic 10.3.3 -> 10.3.4 migration (ADF 11.1.1.3 -> 11.1.1.4) logout link in my application throws error 500 internal server error.
    <af:goLink text="Exit" id="gl1"
                               destination="adfAuthentication?logout=true"
                               shortDesc="Exit from application"/>How could I fix it?
    Thanks.
    Here's a stacktrace:
    Error 500--Internal Server Error
    java.io.CharConversionException: Not an ISO 8859-1 character: В
         at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:99)
         at javax.servlet.ServletOutputStream.println(ServletOutputStream.java:252)
         at oracle.adf.share.security.authentication.AuthenticationServlet.doLogout(AuthenticationServlet.java:244)
         at oracle.adf.share.security.authentication.AuthenticationServlet.processRequest(AuthenticationServlet.java:157)
         at oracle.adf.share.security.authentication.AuthenticationServlet.doGet(AuthenticationServlet.java:122)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:45)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:268)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:471)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:191)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:777)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:293)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:213)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

    Instead of using af:goLink, can you use af:commandLink for the logout functionality and add the logout code in the action method in the managed bean as specified in the blog post:
    http://blogs.oracle.com/jdevotnharvest/2011/01/how-to_logout_from_adf_security.html
    Thanks,
    Navaneeth

  • MDMJavaAPI: Execute() method is not running.

    Hi Gurus,
    I am trying to delete the repository using MDMJavaAPI.
    Here is the whole code for deleting repository.
    =============================================import com.sap.mdm.commands.AuthenticateRepositorySessionCommand;
    import com.sap.mdm.commands.CommandException;
    import com.sap.mdm.commands.CreateRepositorySessionCommand;
    import com.sap.mdm.commands.DestroySessionCommand;
    import com.sap.mdm.net.ConnectionException;
    import com.sap.mdm.net.ConnectionPool;
    import com.sap.mdm.net.ConnectionPoolFactory;
    import com.sap.mdm.repository.RepositoryStatus;
    import com.sap.mdm.repository.commands.DeleteRepositoryCommand;
    import com.sap.mdm.repository.commands.GetRepositoryStatusCommand;
    import com.sap.mdm.server.DBMSType;
    import com.sap.mdm.server.RepositoryIdentifier;
    @author tarunsha
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class TestDeleteRepository {
                        public static final int STATE_NOT_CONNECTED = 0;
                        public static final int STATE_CONNECTED = 1;
                        public static int state = STATE_NOT_CONNECTED;
                        public static ConnectionPool simpleConnection;
                        public static RepositoryIdentifier repIdentifier;
                        public static String session;
                        public static String connection = "ntbomsap14";
                        public static String repository = "Test_JavaMDMapi_Tarun";
                        public static DBMSType dbmsType = DBMSType.MS_SQL;
                       public static void main(String[] args)throws CommandException, ConnectionException {
                       //Creating Connection.
                       simpleConnection = ConnectionPoolFactory.getInstance(connection);     
                       //Establishing connection with Repository.
                       repIdentifier = new RepositoryIdentifier("Test_JavaMDMapi_Tarun", connection, dbmsType);
                       //Creation Repository Session.
                       CreateRepositorySessionCommand createRepositorySessionCmd = new CreateRepositorySessionCommand(simpleConnection);
                       createRepositorySessionCmd.setRepositoryIdentifier(repIdentifier);
                       createRepositorySessionCmd.execute();
                       System.out.println("Create Repository Session Cmd is Executed.......");
                       session = createRepositorySessionCmd.getRepositorySession();
                       System.out.println("STATE_CONNECTION_ESTABLISHED.....");
                       AuthenticateRepositorySessionCommand authenticateRepositorySessionCmd = new AuthenticateRepositorySessionCommand(simpleConnection);
                       authenticateRepositorySessionCmd.setSession(session);
                       authenticateRepositorySessionCmd.setUserName("Admin");
                       authenticateRepositorySessionCmd.setUserPassword("");
                       authenticateRepositorySessionCmd.execute();
                        session = authenticateRepositorySessionCmd.getSession();
                        GetRepositoryStatusCommand getRepStatusCmd = new GetRepositoryStatusCommand(simpleConnection);
                        getRepStatusCmd.setSession(session);
                       getRepStatusCmd.execute();
                        RepositoryStatus repStatus = getRepStatusCmd.getStatus();  
                        if(repStatus.getStatus() == RepositoryStatus.RUNNING) {
                        System.out.println("Cannot delete a repository with status running! Canceling deletion process...");
                        destroy(session);     
                      DeleteRepositoryCommand deleteRepCmd = new DeleteRepositoryCommand(simpleConnection); deleteRepCmd.setRepositoryIdentifier(repIdentifier);     
                      deleteRepCmd.setSession(session);
                      // Excute the command...
                      System.out.println("Running");//Just for checking wheather control is reaching here or not.
                    deleteRepCmd.execute();
         System.out.println("Execution of DeleteRepositoryCommand successful.");
                      destroy(session);
                      public static void destroy(String session) throws CommandException{
                                  DestroySessionCommand destroySessionCmd = new DestroySessionCommand(simpleConnection);
                                  destroySessionCmd.setSession(session);
                                  destroySessionCmd.execute();
                                  session = null;
                                  System.out.println("STATE CONNECTION is DESTROYED......");
    =============================================
    When control reaches at execute method of DeleteRepositoryCommand class, it displays the following error msg.
    com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: The current Protocol operation is not supported for the session specified.
    *     at com.sap.mdm.repository.commands.DeleteRepositoryCommand.execute(DeleteRepositoryCommand.java:69)*
    *     at Test_Package.TestDeleteRepository.main(TestDeleteRepository.java:85)*
    Caused by: com.sap.mdm.internal.protocol.manual.ServerException: The current Protocol operation is not supported for the session specified.
    *     at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:112)*
    *     at com.sap.mdm.repository.commands.DeleteRepositoryCommand.execute(DeleteRepositoryCommand.java:64)*
    *     ... 1 more*
    Exception in thread "main"
    Could you suggest me, what i have to do in this situation.
    I need your help.
    Edited by: Tarun Sharma on Jan 2, 2008 5:46 PM
    Edited by: Tarun Sharma on Jan 2, 2008 5:50 PM
    Edited by: Tarun Sharma on Jan 3, 2008 11:32 AM

    Hi Namrata,
    If we are deleting an repository, it means we are making connection with repository that's why we have to createRepositorySession rather than serverSession.
    According to this JavaDoc note:
    "NOTE: This command used to take in a repository session. This command had be changed to take in a server session. The setRepositoryIdentifier is also required."
    the method setRepositoryIdentifier is defined in CreateRepositorySessionCommand not in ServerSessionCommand. That's why we have to use RepositorySessionCmd.
    According to your advice I changed CreateRepositorySessionCommand and AuthenticateRepositorySessionCommand with ServerSessionCommand and AuthenticateServerSessionCommand but getting Same Error "The current Protocol operation is not supported for the session specified."
    Thanks
    Tarun
    Edited by: Tarun Sharma on Jan 3, 2008 10:44 AM

  • PL/SQL throwing errors! trying to alter dates

    the following code keeps throwing errors, I was wondering if it is due to me getting confused when to use ":" before a variable and also ":=" when setting values?
    Can anyone see what I am doing wrong?
    Here is the code, at the moment it is throwing an error on line 44
    ORA-06550: line 44, column 1:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    CODE.....
    DECLARE
         QNStart DATE;
         QNFinish DATE;
         Q1Start DATE;
         Q1Finish DATE;
         Q2Start DATE;
         Q2Finish DATE;
         Q3Start DATE;
         Q3Finish DATE;
         Q4Start DATE;
         Q4Finish DATE;
         Q5Start DATE;
         Q5Finish DATE;
         QNT NUMBER;
         Q1T NUMBER;
         Q2T NUMBER;
         Q3T NUMBER;
         Q4T NUMBER;
         QNR NUMBER;
         Q1R NUMBER;
         Q2R NUMBER;
         Q3R NUMBER;
         Q4R NUMBER;
    BEGIN
         case current_date
              when current_date between to_date('01-JAN', 'DD-Mon') AND to_date('31-MAR', 'DD-Mon') then
                        QNStart := to_date('01-JAN', 'DD-Mon');
                        QNFinish := to_date('31-MAR', 'DD-Mon');
              when current_date between to_date('01-APR', 'DD-Mon') AND to_date('30-JUN', 'DD-Mon') then
                        QNStart := to_date('01-APR', 'DD-Mon');
                        QNFinish := to_date('30-JUN', 'DD-Mon');
              when current_date between to_date('01-JUL', 'DD-Mon') AND to_date('30-SEP', 'DD-Mon') then
                        QNStart := to_date('01-JUL', 'DD-Mon');
                        QNFinish := to_date('30-SEP', 'DD-Mon');
              when current_date between to_date('01-OCT', 'DD-Mon') AND to_date('31-DEC', 'DD-Mon') then
                        QNStart := to_date('01-OCT', 'DD-Mon');
                        QNFinish := to_date('31-DEC', 'DD-Mon');
         End Case
    :Q1Start := ADD_MONTHS(:QNStart,-3);
    :Q1Finish := ADD_MONTHS(:QNFinish,-3);
    :Q2Start := ADD_MONTHS(:QNStart,-6);
    :Q2Finish := ADD_MONTHS(:QNFinish,-6);
    :Q3Start := ADD_MONTHS(:QNStart,-3);
    :Q3Finish := ADD_MONTHS(:QNFinish,-3);
    :Q4Start := ADD_MONTHS(:QNStart,-4);
    :Q4Finish := ADD_MONTHS(:QNFinish,-4);
    :Q5Start := ADD_MONTHS(:QNStart,-5);
    :Q5Finish := ADD_MONTHS(:QNFinish,-5);
    select COUNT(COUNT(*)) INTO :Q1T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :Q1Start AND :Q1Finish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q2T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :Q2Start AND :Q2Finish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q3T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :Q3Start AND :Q3Finish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q4T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :Q4Start AND :Q4Finish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :QNT from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :QNStart AND :QNFinish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q1R from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN Q1Start AND Q1Finish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q2Start AND Q2Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q2R from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN Q2Start AND Q2Finish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q3Start AND Q3Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q3R from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN Q3Start AND Q3Finish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q4Start AND Q4Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q4R from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN Q4Start AND Q4Finish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q5Start AND Q5Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :QNR from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN QNStart AND QNFinish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q1Start AND Q1Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    EXECUTE
    Cheers
    Simon

    Dave had given you already some good advice.
    Your code is not only too complicated, but you have also probably a bug in it. You have for instance a QNstart as to_date('01.01, 'dd.mm') and a corresponding QNfinish as to_date('31.03', 'dd.mm'). As this means, it is the time portion at 00:01, you are missing the complete last day of this interval. So you better do:
    declare
      l_QNstart      date;
      l_Q1start      date;
      l_Q1finish     date;
      l_q1t          number
    begin
      l_QNstart := trunc(sysdate, 'Q');
      l_Q1start := add_months(l_QNstart, -3);
      l_Q1finish := l_QNstart;
      -- your condition is now
      select count(count(*))
      into   l_q1t
      from   ff_actions f, ff_action_type_lov a
      where  f.date_entered >= l_Q1start and f.date_entered < l_Q1finish
      and    a.action_score = 'y'
      and    f.input_type = a.action_name
      group by f.company_name;
    end;
    /Message was edited by:
    Leo Mannhart
    btw: what is the difference between Q1Start / Q3 Start and Q1Finish / Q3Finish resp.?

  • SSRS dataset throws error when another stored procedure is called inside dataset stored procedure

    Hello;
    I am using Report Build 3.0, I have a simple report which gets data using dataset which is created from a Stored Procedure. I have another stored procedure which updates the data in the table which is used for the report. I want to get the live data on report everytime
    the report is run so that I call that stored procedure (sp_updatedata) inside my report dataset stored procedure and here where my report fails as it throws error while creating dataset.
    Here is sample:
    sp_updatedata (this only returns "Command(s) completed successfully"
    Create Proce sp_getReportData
    As
    Begin
    Exec sp_updatedata -- I call it to update the data before it displays on the report
    Select * from customers
    End
    If I remove this line it works.
    Exec sp_updatedata -- I call it to update the data before it displays on the report
    Thanks
    Essa Mughal

    Hi MESSA,
    According to your description, you create a dataset based on a stored procedure. In this procedure, it calls another procedure. Now it throws error when creating dataset. Right?
    In Reporting Services, when creating dataset, all the query or stored procedure will be executed in SSMS. So if the procedure can be executed in SSMS, it supposed to be working in SSRS. However, it has a limitation in SSRS. In a dataset, it can only return
    one result set.
    In this scenario, I don't think it's the issue of calling other procedure inside of procedure. Because we tested in our local environment, it works fine. I guess the sp_updatedata returns a result set, and the "select * from customers" returns
    another result set. This might be the reason cause the error.
    Reference:
    Query Design Tools in Report Designer SQL Server Data Tools (SSRS)
    Reporting Services Query Designers
    If you still have any question, please post the error message and the store procedure (sp_updatedata).
    Best Regards,
    Simon Hou

  • Throwing error message for a component

    I have a form in which there are several fields. One of field is LOV for which i do some validation on valuechangeListener. If that validation fails, i send error to the form for that particular field. It is working fine. but after this if user submits the form, it is submitted. In case of validation failed by framewrok, it is not submitted. HOw i can set that component in error state so that form is not submitted. I am using following code to throw error or component:
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Invalid value");
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage(binding.getClientId(context), msg);
    I am using Jdeveloper 11g with latest patch set of ADF i.e. 11.1.3.x

    Hi,
    actually you are not throwing an error but set a message to display to the user. Can't you just create a validation for the input field. The field has a property for you to define a managed bean validation reference. You can generate the method skeleton from JDeveloper.
    Frank

  • Submit button not throwing error

    I have a Search Region and a table to show the data based on Search criteria...After search I am modifying the some fields with invalid data in Result table
    and I am clicking the Submit button, it is throwing error(I written Exception in EO level) , the same time if i click the submit button second time , it is not validating and throwing the error and record is saving to database with invalid data.
    Could you please help me and let me know what I am missing here?

    I written the following code in EntityExpert, the EntityExpert code in EO
    public boolean isItemNameValid(String ItemName)
    System.out.println("Entity Expert");
    System.out.println(ItemName);
    boolean isActive = false;
    ItemNameVVOImpl ItemNameVO = (ItemNameVVOImpl)findValidationViewObject("ItemNameVVO1");
    ItemNameVO.initQuery(ItemName);
    if (ItemNameVO.hasNext())
    isActive = true;
    System.out.println("Return ");
    System.out.println(isActive);
    return isActive;
    and I am calling the above method in EOImpl
    public void setItemName(String value)
    if ((value != null) || (!("".equals(value.trim()))))
    ItemNameEntityExpert expert = getItemNameEntityExpert(getOADBTransaction());
    if (!(expert.isItemNameValid(value)))
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "Item Name", // Attribute Name
    value, // Attribute value
    "MSC", // Message product short name
    "UPDATE_SUPPLY_ITEMNAME"); // Message name
    setAttributeInternal(ITEMNAME, value);
    Please check.
    Thanks,
    K.Murugesan

  • Applicatio​n on Win7 64bit throws error -50103, but not on Win XP 32bit host

    LabVIEW application newly installed on Win7 64bit host throws error -50103.
    Same aplication deployed from same installation disk on Win XP 32bit host have been working for 2 years withourt problem.
    I did have a problem with importing the MAX configuration from the Win XP 32bit machine to the  Win 7 64bit machine.
    My solution was to install all the drivers from my most recent Devaloper Suite 2012 DVD.
    After that the executable did run fine, except when the variuos DAq tasks are executed for the second time in a loop it thows error -50103.
    If i click ok on the erro popup, everything else works fine until in the next pass of the loop I get the same error.
    Why would I get error on one host but not on the other one?
    How do I fix this?
    Scientia est potentia!

    A common error that you can find numerous posts about with a search
    http://forums.ni.com/t5/forums/searchpage/tab/mess​age?filter=location&location=forum-board%3A170&q=5​...

  • Throwing error from backing bean on button click?

    Hi Everyone,
    i have two lovs out of 2 lovs user has to select atleast one lov value and click on find button.
    On clicking on find button im getting lov values if atleast one is not selected i need to throw one error message.
    How can i throw error message?
    Thanks.

    Hi,
    i used this code:
    public String showMessage() {
    System.out.println("inside error msg");
    String messageText="Please select emp or ename";
    FacesMessage fm = new FacesMessage(messageText);
    * set the type of the message.
    * Valid types: error, fatal,info,warning
    //fm.setSeverity(FacesMessage.SEVERITY_INFO);
    fm.setSeverity(FacesMessage.SEVERITY_ERROR);
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage(null, fm);
    System.out.println("end of error msg");
    return null;
    And called this method on clicking on find button in the method binding of the find button but it didnt show any error dialog bax rather it moved to the next page as usual.
    Code in the find backing bean:
    public String Find(){
    if(Emp.equalsIgnoreCase("ALL") && EmpNo.equalsIgnoreCase("ALL")) {
    String k=this.showMessage();
    return "Find"; // to navigate to next page
    what to do now?

Maybe you are looking for

  • Adding Photos To Photo Stream From iPhoto Doesn't Work.

    Hi, I'm a new Mac user, just becoming acquainted to Mavericks. I've imported all of my photos into iPhoto, have found some photos I wanted to share with some friends. So, I selected the Photos, then clicked the "Share" icon, then "iCloud". I created

  • I can no longer open a new tab in firefox

    I cannot open a new tab in firefox. If I click on a link, a new tab opens, but if I use the new tab button or control t nothing happens. I used to be able to open multiple tabs, but suddenly this changed. Can you tell my why?

  • Compaq 6510b factory restore

    Hi I'm trying to factory restore my HP Compaq 6510b with Vista. I've not got a recovery disc & laptop didn't come with 1 either. F11 option doesn't work however F8 allows me to access the Advanced Boot Options however there is no repair your computer

  • Web Service in Apex

    Hi I'm using APEX 2.1.0, OracleXE 10.2, Oracle SOA 10.1.3, Jdev 10.1.3.3 I've created a webservice in jdeveloper based upon a plsql package it has 3 input parameters and return a parameter I've deployed the webservice to my SOA apps server and tested

  • Tables not shown

    I am using Oracle SQL Developer 3.0.03. We are going through some security lock downs in Oracle (10g, 11g) and before we were able to use Oracle SQL Developer to see tables, when logged in as the schema owner. Now, after completing the Oracle lock do