Using SSRS local mode, receive invalid token error when trying to export the report when running in worker thread

We're using ASP.net with .Net 4, developing with Visual Studio 2012.  We use SSRS 2012sp1 with local reports, so exporting the report ourselves instead of using a reportviewer control (and not using the SQL Reporting service).  The reports are
executing fine when we export the report in the main thread, but if we spawn a worker thread and run a report there we receive the following error when calling Render():
Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Failed to load expression host assembly. Details: Invalid token for impersonation - it cannot be duplicated.
We only receive this when running a report that uses expressions on a separate thread.  I've tried running the application pool under all the default built-in accounts (NetworkService, etc), and under admin user accounts to no avail.
This didn't occur with the previous version of our application which used .net 3.5.

As mentioned, we are not using the Reportviewer control, we are rendering locally.  Not certain if that would make a difference.
Also, I had tried using all the built-in accounts.  Just for kicks I changed it to LocalSystem again, then reset IIS (see image below).  I then tried to export the report in a worker thread and received the same error.
Here is the text from the exception:
Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Failed to load expression host assembly. Details: Invalid token for impersonation - it cannot be duplicated.
at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.ProcessLoadingExprHostException(ObjectType assemblyHolderObjectType, Exception e, ProcessingErrorCode errorCode)
at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.LoadCompiledCode(IExpressionHostAssemblyHolder expressionHostAssemblyHolder, Boolean includeParameters, Boolean parametersOnly, ObjectModelImpl reportObjectModel, ReportRuntimeSetup runtimeSetup)
at Microsoft.ReportingServices.OnDemandProcessing.Merge.Init(Boolean includeParameters, Boolean parametersOnly)
at Microsoft.ReportingServices.OnDemandProcessing.Merge.Init(ParameterInfoCollection parameters)
at Microsoft.ReportingServices.ReportProcessing.Execution.ProcessReportOdp.CreateReportInstance(OnDemandProcessingContext odpContext, OnDemandMetadata odpMetadata, ReportSnapshot reportSnapshot, Merge& odpMerge)
at Microsoft.ReportingServices.ReportProcessing.Execution.ProcessReportOdp.Execute(OnDemandProcessingContext& odpContext)
at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReportOdpInitial.ProcessReport(ProcessingErrorContext errorContext, ExecutionLogContext executionLogContext, UserProfileState& userProfileState)
at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension newRenderer, DateTime executionTimeStamp, ProcessingContext pc, RenderingContext rc, IChunkFactory yukonCompiledDefinition)
at Microsoft.Reporting.LocalService.CreateSnapshotAndRender(ReportProcessing repProc, IRenderingExtension renderer, ProcessingContext pc, RenderingContext rc, SubreportCallbackHandler subreportHandler, ParameterInfoCollection parameters, DatasourceCredentialsCollection credentials)
at Microsoft.Reporting.LocalService.Render(String format, String deviceInfo, String paginationMode, Boolean allowInternalRenderers, IEnumerable dataSources, CreateAndRegisterStream createStreamCallback)
at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)
--- End of inner exception stack trace ---
at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)
at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
at Microsoft.Reporting.WebForms.LocalReport.Render(String format, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
at Microsoft.Reporting.WebForms.Report.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
at IxSS.Infolinx.Report.MicrosoftInfolinxReport.ExportReport(String strFileFullyQualifiedPath, String strExportType, String strFilterDesc, Dictionary`2 extraParams, String area)
at IxSS.Infolinx.Report.MicrosoftInfolinxReport.ExportReport(String strFileFullyQualifiedPath, String strExportType, String strFilterDesc, Dictionary`2 extraParams)

Similar Messages

  • Object Open Error while trying to export the vDataFact table

    I am getting an error when trying to export the vDataFact table to a flat file.  I have been able to do this several time before with the segment tables but would like to run this against vDataFact
    The error in the error log is:
       ERROR:
           Code............ -2147217915
           Description..... Object was open.
    The screen error is:
          The connection cannot be used to perform this operation.  It is either closed or invalid in this context.
    The line that appears to cause the issue is: Set rssql = API.DataWindow.DataAccess.farsKeySet(CStr(strSQL))
    Here is my complete script:
    Sub webdatafacts()
    'Declare Variables
       Dim objFileSystem 'File System
       Dim strFileName 'File name
       Dim ObjTextFile
    'SQL variables
      Dim strSQL ' Placehold for SQL Query
      Dim rssql 'Placeholder for result set for sql query execution
    'SQL Statement
                strSQL = "SELECT PartitionKey, Account, AccountX, Entity, EntityX, ICP, ICPX, UD1, UD1X, UD2, UD2X, UD3, UD3X, UD4, UD4X, Amount  FROM vDataFact" 
                set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    'Create the filesystem object
                Set objFileSystem = CreateObject("Scripting.FileSystemObject")
                Set ObjTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, TRUE, 0)  
                ObjTextFile.Close
                If Not rssql.EOF and Not rssql.BOF Then
                Set objTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, FALSE, 0)
                Do Until rssql.EOF
    'Loop across all fields in recordset delimiting them with a tab key
                For i = 0 To rssql.Fields.Count -1
               strString = StrString & rssql(i) & vbTab
               Next
    'Output the resulting string to the text file
              ObjTextFile.WriteLine (strString)
    'Reset the string to empty for the next record
             strString = ""
    'Move to the next record in the recordset
                  rssql.MoveNext
                  Loop
    'Close the recordset and the text file
                 rssql.Close
                 ObjTextFile.Close
        End If
    'Destroy the instance of the recordset from memory
          Set rssql = Nothing
    End Sub

    Thanks, that was one of my suspicions, however, i was able to get the script to work by changing:
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    to
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,True)
    ...to be honest though, i'm not entirely sure why that fixed my issue

  • I have created a DVD via iMovie and burned several copies. When played the DVD's will stop and display a message SKIPPING DAMAGED Part. It is not the DVD. When trying to export the project, I get an error message.

    I have created a DVD via iMovie and burned several copies. It is a large file. When played the some DVD's will stop and display a message SKIPPING DAMAGED Part but will not resume. Some work fine.  It is not the DVD. I have burned from several batches. When trying to export the project, I get an error message with the following message: The project could not be prepared for publishing because an error occured (-108).

    TV video typically is copyrighted content.  We'd be breaking several rules trying to help you.  Good luck!

  • Error while trying to export a report into PDF using JRC (Linux env)

    Hi all,
    I have my web app installed on a Linux environment. When trying to export a CR report into PDF using JRC
    PrintOutputController controller = reportClientDoc.getPrintOutputController();
              ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) controller.export(ReportExportFormat.PDF);
    I got this error message:
    19/02/2009     10:21:37     b     INFO     PdfExporter: PdfDocumentModeller.modelPage (page 1)
    19/02/2009     10:21:37     b     INFO     PdfExporter: Modelling page
    19/02/2009     10:21:37     b     INFO     PdfExporter: Creating document manager, text modeller and image modeller.
    19/02/2009     10:21:37     b     ERROR     PdfExporter: Exception caught in PDFFormatter.formatPage (from PdfDocumentModeller.modelPage); aborting export
    java.lang.IllegalArgumentException: Data type is not supported.
         at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)
         at java.awt.image.Raster.createInterleavedRaster(Raster.java:178)
         at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2826)
         at java.awt.image.BufferedImage.<init>(BufferedImage.java:439)
         at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.u.<init>(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.d(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
    On my Windows environment the JRC export into PDF work perfectly. I know that there are some known issues regarding the usage of JRC on Linux environments. Could this be one of those?
    Any solution (or workaround) would be highly appreciated!
    Thank you!
    PS Maybe this is relevant: I use a MySQL database!
    Edited by: Sandila Catalin on Feb 19, 2009 10:01 AM

    What kind of image do you have in the report?
    Do you have -Djava.awt.headless=true specified for the Java JVM option?
    Sincerely,
    Ted Ueda

  • "Invalid file name" error when trying to load the report in IIS/CR 2008

    We have deployed our application to many installations with no problem however in one particular case we get this error whenever we try to load any reports in our web app.
    I made sure that the DefaulAppPool user (Network Service) has read+excute on all folders as well as the IIS anonymous user.
    The anonnymous access is off but Windows Integrated Security is on.
    ASP.NET Version:2.0.50727.3082
    Web.config is healthy and is listed below.
    Other pages in the application which are not depenent on C.R load and run perfectly.
    I don't know what else to check
    thanks for you help
    jeff
    Web.Config Entries related to CR ***********
    <compilation debug="true">
    <assemblies>
    <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </assemblies>
    <buildProviders>
    <add extension=".rpt" type="CrystalDecisions.Web.Compilation.RptBuildProvider, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></buildProviders>
    </compilation>
      ERROR DETAILS *****************
    [COMException (0x800001fb): Invalid file name.]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +356
    [CrystalReportsException: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +418
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.get_ProductLocaleID() +31
       CrystalDecisions.ReportSource.CachedObjectReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated) +474
       CrystalDecisions.ReportSource.CachedObjectReportSource.InternalGetReport(RequestContext context, Boolean bAddToCacheWhenCreated) +15
       CrystalDecisions.Web.CrystalReportSource.get_ReportDocument() +184
       CrystalReportPageTemplate.OnInit(EventArgs e) in

    I got a procmon log file and examined it. I have the file and I could also provide you with that or screenshots of it.
    There is nothing unusual about it. I can see entires in which CR has successfully opened the report and has cached in a c:\windows\temp.
    However there is one or two non-successful entries that may be related, especially that examining the stack trace brings us to a call to get_ProductLocaleID():
    - A call to read reg entry HKU\S-1-5-20\Software\Business Objects\Suite 12.0\Crystal Reports\Locale fails with NAME NOT FOUND.
    - immediately after that and from the same process (w3wp.ex) there is a call to open directory "c:\" which is logged as ACCESS DENIED.
    Any subsequent unsuccessful calls seem to be results of exception handling in the debug code.
    Does this point to any setup issues with CR? We always run the redistributable x86 runtime when installing it.

  • HT201407 iPhone 4 activation and restore errors. Tried everything and the phone still won't work

    Woke up this morning and looked at my phone. Found an error message saying "iPhone cannot make or recieve calls, please restore through iTunes". So before restoring it I checked the support website to see if there was anything else I could do before I had no other choice than to restore the phone. Followed everything, found the phone still wouldn't work or recieve signal. I restored the phone and now it wouldn't activate, so called Apple and explained to them. Tried everything I was told, (Call my network, original network provider of phone, restore again, try recovery mode, activating with a different SIM card, absolutely everything) and still the phone wont activate. Apple have bent over backwards for me to try solve this but have had no luck, so if anyone else has experienced this and had any luck fixing it can you please share any info with me as I'm now effectively stuck in a contract without a phone or an option to renew the phone or one to put my SIM card into. iTunes also thinks 6.1.3 is the latest software but I have seen users with 6.1.4
    The phone is an iPhone 4 16GB originally locked to Orange UK but has been working fine with a T-mobile UK SIM.
    I've spent a couple of hours looking on the Internet and had no luck at all so any replies would be greatly appreciated.
    Thanks.

    Are there any other errors that you are receiving? The exact error helps. You say it was locked to Orange, did they unlock the device? Or did you do something else to make the device work with the other SIM. There are a number of issues regarding activation, and many deal with trying to activate a device that has been locked to a carrier, hacked to work with another and then locked back when the device is updated. Would any of this pertain to you?

  • Repersentation of #error in HFR while exporting the report in Excel

    Hi All,
    We are working on Hyperion Financial Report 9.3.1 with Essbase as a data source.
    We are replacing the #error with 'NA', which is working fine when we are viewing the FR reports in workspace.
    But when we export this report in Excel, word "NA" is changed by 0 (zero), which is misleading the user.
    How can we stop this conversion (NA to 0)?
    Any suggestion and help will be appreciated.
    Thanks & Regards,
    Mohit Jain

    Hi All,
    Thanks for your answers and support.
    I raised this issue to Oracle support also, I got the following response-
    Hi Mohit,
    I tested the case with the way you offered me. I can reproduce the problem. I think it should be a bug of the product.
    I searched that on ML3. I found a bug which said that. This bug has been fixed in EPM 11.1.1.0.00. I tested that on my EPM 11.1.1.0.00 system. It works fine. The NA value can be exported in excel.
    So would you like to upgrade to EPM 11.1.1.0.00 to fix the issue?
    Hope this information will help others in future.
    Thanks & Regards,
    Mohit Jain

  • BI portal error while trying to export to excel

    Hi All,
    In BI portal, I am getting an error message when trying to export the report to excel. Following is the error message:
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with SAP NetWeaver 7.0 Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1164789.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,
    Required information for reproduction  according to note 948490.
    Can anyone please help me out.
    Thanks & Regards,
    Deb

    Hi,
    Let me know How much amount of data you are exporting and your system information(ABAP and Java)?
    Thanks,
    Venkat

  • Getting an error message when trying to export from the Lightroom 5.7.1

    hi
    i'm getting an error message when trying to export the images from the Lightroom, all the images are on the external drive
    i'm using windows 7 with 4gb of ram core i5
    "AN INTERNAL ERROR HAS OCCURRED WIN32 API ERROR2 ("THE SYSTEM CANNOT FIND THE FILE SPECIFIED.")WHEN CALLING SHELLEXECUTEXW FROM AGWORKSPACE.SHELLEXECUTE"

    i found the answer my myself
    post processing was blank that was causing it  to happen

  • "Content generation error. Failed to Export the PDF file"

    Building a multi-folio in InDesign 6 Folio Builder V30. Received "Content generation error. Failed to Export the PDF file" on several of the spreads. I have tried reducing the original pdf files sizes, but that did not help.
    Any suggestions on other possible causes or way to fix.?
    thanks
    Christopher Huber
    MMN

    I'm very new to DPS so I hope the following description makes some kind of sense.
    My magazine is in the process of doing trial runs for an iPad edition. I'm setting some templates up for us to work off so the process from magazine to iPad will run a lot smoother month to month.
    So far I've set up some dummy stock pages in an InDesign CS6 document, currently 15 pages long.
    All images are linked and all fonts have paragraph styles applied to them.
    I'm at the stage I want to check the document on my iPad to test run font sizes and their legibility.
    We have successfully been able to export the document as a jpg file but we really need the PDF format. When attempting this we get the above message.
    Sonia.

  • An error occurred trying to load the NTX Terminal.

    Hello,
    I have to do a navigation system with Lego's hardware. My English is not really well and I don't know how to install all the drivers and thinks I need to work with Lego mindstorms and Labwieu 8.5.
    I have in my computer (windows vista) Labwieu 8.5 and the tool kit too. But I thinks I need to install more things because I have always warnings when I do any application (like a simple display).
    With more specifications my problem is:
    When I Click: Tools--NTX Modul--NTX Terminal. I have message box like this: An error occurred trying to load the NTX Terminal. 
    If you can help me, I will be really grateful!

    #include "stdafx.h"
    using namespace System;
    extern "C" {
    namespace clrtest {
        public ref class testClass
        public:
             testClass()
             int foo(void)
                return(42);
    Compiling the above minimal c++ code  into a clr dll gives the same cryptic
    "an error occurred trying to load the assembly" when the .net constructor node tries to load it.
    I am far from a .net expert or a c++ one for that matter.
    Anyone know what is missing from the above code?
    Ultimatley I want to write a wrapper for cyusb.lib a static (c++) library for the FX2 USB chip from cypress exposing some of its functionality to labview.
    Cheers
    baldrik

  • Error REP-0001 While starting the Report service

    Hi
    When trying to start the reports service from 9iAS, i am getting error message as "REP-0001 Unable to open the message file", and in the Window Title it shows "Message 16200 not found, No message file for product rw".
    Regards
    Ranganath

    Hi,
    You(The user) need to have access permission to read the mesg files. The DBA installing Reports will be able to run the reports.
    Grant read access to rwus.msb and rwus.msg files on $ORACLE_HOME/reports/mesg/
    Try to run it, should work.
    Thanks,
    Oracle Reports Team.

  • Invalid Token Error in Verification Service. Received invalid token

    Hi,
    Actually I have deployed a cluster installation of SOA Suite following the indications available in Oracle® Application Server Enterprise Deployment Guide 10g Release 3 (10.1.3.1.0) B28939-03. I have integrated the WorkList Application with Active Directory.
    I have deploy a process including a human task and added a simple task form. My problem rise when I tried to check the detail of a task in the worklist application. Sometimes worklist show the following exception
    An error occured while processing your request.
    Error while inoking URL to display the content. Error while invoking URL. http://myhost.com.co:7777/default/StarLoan/1.0/LoanApproval/Template1.jsp Check the underlying exception and correct the error. Contact oracle support if error is not fixable..
    In the logs I can see the error
    <2008-10-21 18:40:22,774> <ERROR> <default.collaxa.cube.services> <::> WorkflowService:: VerificationService.validateContext: invalid token: c9pHcmBFtc5lSM/g/slFB4MynulA3WZ5mgzsiEDn/zIU9oI97im6QwNIRJSfiG+LnWr4TAzedz3E5di50ocWbdEg+ZFrBFtBMUqFngoPHMTpMVugdIUxmLtPwZcacwzxJpeFRTQ0+dx8CO6drJlAvnvWAuB6GmzCfIoiNAVl/y3CQckD9sLAD/HWStKX7VB2TSzjVuLLH0Qmkp0eRjoXNg==
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::> ORABPEL-30503
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::>
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::> Invalid Token Error in Verification Service.
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::> Invalid Token Error in Verification Service. Received invalid token c9pHcmBFtc5lSM/g/slFB4MynulA3WZ5mgzsiEDn/zIU9oI97im6QwNIRJSfiG+LnWr4TAzedz3E5di50ocWbdEg+ZFrBFtBMUqFngoPHMTpMVugdIUxmLtPwZcacwzxJpeFRTQ0+dx8CO6drJlAvnvWAuB6GmzCfIoiNAVl/y3CQckD9sLAD/HWStKX7VB2TSzjVuLLH0Qmkp0eRjoXNg== in validateContext
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::> Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::>
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::>      at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:917)
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::>      at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:930)
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::>      at oracle.bpel.services.workflow.verification.impl.VerificationService.getContext(VerificationService.java:541)
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::>      at oracle.bpel.services.workflow.query.impl.TaskQueryService.getWorkflowContext(TaskQueryService.java:171)
    <2008-10-21 18:40:22,775> <ERROR> <default.collaxa.cube.services> <::>      at Footer1.jspService(_Footer1.java:131)
    <2008-
    What can I do to fix the problem?

    well, no, you're not the only one. I just got the BPEL worklist app running, and I have the same error. I've deployed the app on a different server from the bpel / oc4j container, and I'm using the SOAP client. Using wireshark, I can see that the authentication is happening properly - valid requests and responses to the TaskQuery service, but after that I get:
    <::> TaskQueryServiceSOAPClient: Soap Response:
    <::> ORABPEL-30504
    <::>
    <::> Internal Error in Verification Service.
    <::> Internal Error in Verification Service for user . getWorkflowContextFromElement
    <::> Check the underlying exception and correct the error. Contact oracle support if error is not fixable.

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • OIM-SOA tasks error (Invalid Token Error in Verification Service)

    Hi Guys,
    I have the following environment:
    wls 10.3.3, soa 11.1.13, OIM 11.1..3, OAM 11.1.1.3 with OID and OVD for LDAP store all configured to run in different Hosts according to Entreprise deployement minus the clusters using the latest jrockit.
    However, as soon as everything is up and running in developmetn mode (? jrockit maybe jdk if dev mode?), logged on to the OIM admin page as xelsysadm, click on the Task tab, it fails saying that an error occured while trying to access soa. So i went and check soa under the wls concole deployments, it has a warning as its status but i understand that occurs after you have patched soa from 11.1.1.2 to 11.1.1.3. Then i looked into the soa managed server logs and i found the following stacktrace and wonder if you guys have a clue of whats really going on:
    <Mar 14, 2011 10:04:06 PM WAT> <Error> <oracle.soa.services.common> <BEA-000000> <<oracle.bpel.services.common.util.EncryptionService.getKey> Received null from credential store>
    <Mar 14, 2011 10:04:06 PM WAT> <Error> <oracle.soa.services.workflow.common> <BEA-000000> <<.> Unable to fetch/generate encryption key.
    Unable to fetch/generate encryption key.
    Check installation/post-installation steps for errors. Check for errors during SOA server startup.
    ORABPEL-35012
    Unable to fetch/generate encryption key.
    Unable to fetch/generate encryption key.
    Check installation/post-installation steps for errors. Check for errors during SOA server startup.
    at oracle.bpel.services.common.util.EncryptionService.getKey(EncryptionService.java:139)
    at oracle.bpel.services.common.util.EncryptionService.encrypt(EncryptionService.java:54)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.encryptString(VerificationService.java:2336)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createTokenFromMap(VerificationService.java:2094)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createToken(VerificationService.java:2067)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextS(VerificationService.java:904)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:874)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:826)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.authenticateUser(VerificationService.java:666)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:89)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy202.authenticateUser(Unknown Source)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.authenticate(TaskQueryService.java:457)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    <Mar 14, 2011 8:58:37 PM WAT> <Error> <oracle.soa.services.workflow.query> <BEA-000000> <<.> Invalid Token Error in Verification Service.
    Invalid Token Error in Verification Service. Received invalid token in createContext.
    Verify that correct token is passed.
    ORABPEL-30503
    Invalid Token Error in Verification Service.
    Invalid Token Error in Verification Service. Received invalid token in createContext.
    Verify that correct token is passed.
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:879)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:826)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.authenticateUser(VerificationService.java:666)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:89)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy202.authenticateUser(Unknown Source)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.authenticate(TaskQueryService.java:457)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:89)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.workflow.test.workflow.ExceptionTestCaseBuilder.invoke(ExceptionTestCaseBuilder.java:155)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy215.authenticate(Unknown Source)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryServiceBean.authenticate(TaskQueryServiceBean.java:80)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl.authenticate(TaskQueryService_oz1ipg_EOImpl.java:299)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: ORABPEL-35012
    Unable to fetch/generate encryption key.
    Unable to fetch/generate encryption key.
    Check installation/post-installation steps for errors. Check for errors during SOA server startup.
    at oracle.bpel.services.common.util.EncryptionService.getKey(EncryptionService.java:139)
    at oracle.bpel.services.common.util.EncryptionService.encrypt(EncryptionService.java:54)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.encryptString(VerificationService.java:2336)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createTokenFromMap(VerificationService.java:2094)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createToken(VerificationService.java:2067)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextS(VerificationService.java:904)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:874)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:826)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.authenticateUser(VerificationService.java:666)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:89)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy202.authenticateUser(Unknown Source)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.authenticate(TaskQueryService.java:457)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:89)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.workflow.test.workflow.ExceptionTestCaseBuilder.invoke(ExceptionTestCaseBuilder.java:155)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy215.authenticate(Unknown Source)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryServiceBean.authenticate(TaskQueryServiceBean.java:80)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl.authenticate(TaskQueryService_oz1ipg_EOImpl.java:299)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    Thanks in advance guys. We have tried everything from trying to map the keystores to retracing our installation but it just doesnt solve our problem.
    Ta
    Edited by: mocx on Mar 14, 2011 11:31 PM

    Hi regoeng,
    i too am facimg the same issue and using OID .
    Can you please let me know the exact stpes followed to resoilve this issue.
    Components used : UCM , SOA
    Flow :
    1 . User places an file/record in the content server folder in the review state.
    2 . An Workflow will be intiated.
    3 . It will send an mail to the approvers.
    4 . The Approver will click on the link which will be sent in the mail.
    5 . Provide there credentials.
    6 . Approves the file/record.
    7 . The file/record will be released state.
    Now we are facing an issue in step 4 , where a mail is sent to the approver and when approvers click on the link it will keep on trying to open the page and in the back end we are finding the ORABPEL-35012 error.
    Regards,
    Karthik
    Edited by: user13293564 on Aug 11, 2011 12:20 AM

Maybe you are looking for