PCmd- Parameters- Count fails when there's no parameter
Hello,
With ORAOLEDB 8.1.7, MDAC 2.5, IIS 4.0 and COM : we have problems with pCmd->Parameters->Count.
When my program raise an exception before i add parameters to my _CommandPtr object, I try to delete the parameters ( for security ) and the count property of the Parameters object fails.
Does anybody know why ?
Thanks.
Sample code :
try
// creation of the connection object
_ConnectionPtr pConn= NULL;
pConn.CreateInstance(__uuidof(Connection));
if ( pConn != NULL )
pConn.Open( strConnectionString, CHAINE_VIDE, CHAINE_VIDE, adConnectUnspecified);
if ( pConn->State == adStateOpen )
// creation of the command object
_CommandPtr pCmd = NULL;
pCmd.CreateInstance(__uuidof(Command));
pCmd->ActiveConnection = pConn;
pCmd->CommandType = adCmdText;
pCmd->CommandTimeout = 15;
pCmd->PutPrepared(true);
Funtion_who_fail( param1, param2 ); // raising of an exception
AppendParameter( pCmd, param3, adParamInput, adBSTR );
AppendParameter( pCmd, param4, adParamInput, adBSTR );
_RecordsetPtr pRst = pCmd->Execute( NULL, NULL, adCmdText );
DeleteParameters(pCmd);
catch(_com_error& oErr)
DeleteParameters(pCmd); // catch of the exception
catch(...)
DeleteParameters(pCmd);
void DeleteParameters( _CommandPtr& pCmd )
if ( pCmd != NULL )
while ( pCmd->Parameters->Count > 0 ) // count property fails.
pCmd->Parameters->Delete(long(0));
Write your procedure like the following and it will work.
PROCEDURE mk_adr(klant NUMBER, receiver NUMBER) IS
BEGIN
INSERT INTO lea_adr (
oid, object, streetname,
housenumber, housealpha, ponumber,
postcode, cityname, locationdesc,
province, kind, country_id,
relation_id, offerrec_id,
h_trans_van,
h_geldig_van,
h_gebruiker
SELECT lea_adr_seq.NEXTVAL, lea_adr_seq.NEXTVAL, streetname,
housenumber, housealpha, ponumber,
postcode, cityname, locationdesc,
province, kind, country_id,
null, receiver,
To_Date('01-01-2000'),
To_Date('01-01-2000'),
'conv'
FROM lea_adr
WHERE relation_id = klant
EXCEPTION
WHEN Others THEN
conv_algemeen.debugMessage('mk_adr :: '||SQLERRM);
END;
Using the lea_adr_seq.NEXTVAL more then once in the SAME select will return the same value for both calls.
SQL> create sequence test
2 ;
Sequence created.
SQL> select test.nextval,test.nextval from dual;
NEXTVAL NEXTVAL
1 1
SQL>
Similar Messages
-
FTP Put fails when there is no pre-existing file present in the directory
Hi All,
In our process we use the FTP adapter to write a file to a location. This operation fails when there is no preexisting file on the output directory.
So we placed a zero byte file on the directory and tested and the adapter was able to create the output file but when the files were deleted from the output directory the file transfer failed again.
We got the below error
Non Recoverable System Fault :
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Put' failed due to: Invalid Output Directory. Invalid Output Directory. The value specified for the output (Physical/Logical)Directory interaction parameter or jca binding property has an invalid value "XXXXXXXXXXXXXXX" Ensure that the following conditions are satisfied for the output directory : 1) It exists and is a directory (not a file). and 2) It is writable (file write permissions). and 3) If using a logical name, then ensure that the mapping from logical name<->physical directory is correctly specified in the deployment descriptor. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
Kindly help us resolve the issue.
Thanks in advance.
Regards,
Balaji RBalaji,
This operation fails when there is no preexisting file on the output directory I'm not sure I understood this declaration.
Why do you need to have preexisting file on the output directory?
If it fails, with the mentioned error, it means that something was not defined properly.
OR
Another option is permissions.
Check that your local system user (I guess orabi) has a write permission on the target directory (on the FTP host).
Arik -
Iwlist scan fails when there too many wireless networks
$ sudo iwlist wlan0 scan
print_scanning_info: Allocation failed
wicd uses iwlist to scan networks but iwlist fails when there are too many networks. This seems to be an old issue. Is there a fix for this?
Thanks.There's a fix yes. For wireless_tools-29 there's a patch somewhere. Or you install wireless_tools-30pre9
-
DB_GET_BOTH_RANGE fails when there is only one record for a key
Using the DB_GET_BOTH_RANGE flag doesn't seem to work when there is a
single record for a key.
Here's a sample Python program that illustrates the problem. If you
don't know Python, then consider this to be pseudo code. :)
from bsddb3 import db
import os
env = db.DBEnv()
os.mkdir('t')
env.open('t',
db.DB_INIT_LOCK | db.DB_INIT_LOG | db.DB_INIT_MPOOL |
db.DB_INIT_TXN | db.DB_RECOVER | db.DB_THREAD |
db.DB_CREATE | db.DB_AUTO_COMMIT)
data = db.DB(env)
data.set_flags(db.DB_DUPSORT)
data.open('data', dbtype=db.DB_HASH,
flags=(db.DB_CREATE | db.DB_THREAD | db.DB_AUTO_COMMIT |
db.DB_MULTIVERSION),
txn = env.txn_begin()
#data.put('0', '6ob 0 rev 6', txn)
data.put('0', '7ob 0 rev 7', txn)
#data.put('0', '8ob 0 rev 8', txn)
data.put('1', '9ob 1 rev 9', txn)
txn.commit()
cursor = data.cursor()
print cursor.get('0', '7', flags=db.DB_GET_BOTH_RANGE)
cursor.close()
data.close()
env.close()
This prints None, indicating that the record who's key is '0' and
who's data begins with '7' couldn't be found. If I uncomment wither of
the commented out puts, so that there is more than one record for the
key, then the get with DB_GET_BOTH_RANGE works.
Is this expected behavior? or a bug?You can use the DB_SET flag which will look for an exact key match. If
you use it with the DB_MULTIPLE_KEY flag, it will return multiple keys
after the point it gets a match. If you can post here how all your
LIKE QUERIES look, I may be able to provide you with the suited
combination of the flags you can use for them.I'm not doing like queries. I'm using BDB as a back end for an object
database. In the object database, I keep multiple versions of object
records tagged by timestamp. The most common query is to get the
current (most recent version) for an object, but sometimes I want the
version for a specific timestamp or the latest version before some
timestamp.
I'm leveraging duplicate keys to implement a nested mapping:
{oid -> {timestamp -> data}}
I'm using a hash access method for mapping object ids to a collection
of time stamps and data. The mapping of timestamps to data is
implemented as duplicate records for the oid key, where each record is
an 8-byte inverse timestamp concatenated with the data. The inverse
timestamps are constructed in such a way that they sort
lexicographically in inverse chronological order. So there are
basically 3 kinds of query:
A. Get the most recent data for an object id.
B. Get the data for an object id and timestamp.
C. Get the most recent data for an object id who's timestamp is before
a given timestamp.
For query A, I can use DB->get.
For query B, I want to do a prefix match on the values. This can be
thought of as a like query: "like <inverse-time-stamp>%", but it can
also be modelled as a range search: "get the smallest record that is >=
a given inverse time stamp". Of course, after such a range search,
I'd have to check whether the inverse time stamp matches.
For query C, I really want to do a range search on the inverse time
stamp prefixes. This cannot be modelled as a like query.
I could model this instead as {oid+timestamp -> data}, but then I'd
have to use the btree access method, and I don't expect that to scale
as I'll have hundreds of millions of objects.
We tried using BDB as a back end for our database (ZODB) several years
ago and it didn't scale well. I think there were 2 reasons for
this. First, we used the btree access method for all of our
databases. Second, we used too many tables. This time, I'm hoping that
the hash access method and a leaner design will provide better
scalability. We'll see. :)
If you want to start
on a key partial match you should use the DB_SET_RANGE flag instead of
the DB_SET flag.I don't want to do a key partial match.
Indeed, with DB_GET_BOTH_RANGE you can do partial
matches in the duplicate data set and this should be used only if you
look for duplicate data sets.I can't know ahead of time whether there will be duplicates for an
object. So, that means I have to potentially do the query 2 ways,
which is quite inconvenient.
As you saw, the flags you can use with cursor.get are described in
detailed here.But it wasn't at all clear from the documentation that
DB_GET_BOTH_RANGE wouldn't work unless there were duplicates. As I
mentioned earlier, I think if this was documented more clearly and
especially of there was an example of how one would work around the
behavior, someone would figure out that behavior wasn't very useful.
What you should know is that the usual piece of
information after which the flags are accessing the records, is the
key. What I advice you is to look over Secondary indexes and Foreign
key indexes, as you may need them in implementing your queries.I don't see how secondary indexes help in this situation.
BDB is
used as the storage engine underneath RDBMS. In fact, BDB was the
first "generic data storage library" implemented underneath MySQL. As
such, BDB has API calls and access methods that can support any RDBMS
query. However, since BDB is just a storage engine, your application
has to provide the code that accesses the data store with an
appropriate sequence of steps that will implement the behavior that
you want.Yup.
Sometimes you may find it unsatisfying, but it may be more
efficient than you think.Sure, I just think the notion that DB_GET_BOTH_RANGE should fail if
the number of records for a key is 1 is rather silly. It's hard for me
to imagine that it would be less efficient to handle the non duplicate
case. It is certainly less efficient to handle this at the application
level, as I'm likely to have to implement this with multiple database
queries. Hopefully, BDB's cache will mitigate this.
Thanks again for digging into this.
Jim -
Database logon failed when opening report with parameter values in CrystalReportViewer
Hi,
I designed 2 crystal reports: report A contains parameter fields and report B did not contain any parameter
I can open both reports in development site using CrystalReportViewer control. When I open the reports in testing site,
I can open report B but can't open report A. It display error message "Database logon failed". When I set EnableDatabaseLogonPrompt
to true and try to open the report A again, it shows database connection data which was created on report.
In addition, it is strange that it displays error "Database logon failed" when I click an item in group tree panel of the report B. This indicates that it can load data from database
in testing site but it connect to development database when clicking items in group tree panel
All reports connect to database using Windows Authenication. It use dynamic database connection at runtime
How to ensure the report always connect database using login data dynamically at runtime?
Below is my code about database connection:
string strServerName = null;
string strDatabaseName = null;
ReportDocument rptDoc = new ReportDocument();
rptDoc.Load(strFilePath);
ConnectionInfo connInfo = new ConnectionInfo();
TableLogOnInfo logonInfo;
for (int i = 0; i < rptDoc.Database.Tables.Count; i++)
logonInfo = rptDoc.Database.Tables[i].LogOnInfo;
ReportHelper.GetReportConnection(ref strServerName, ref strDatabaseName, strSystemType);
logonInfo.ConnectionInfo.ServerName = strServerName;
logonInfo.ConnectionInfo.DatabaseName = strDatabaseName;
logonInfo.ConnectionInfo.IntegratedSecurity = true;
rptDoc.Database.Tables[i].ApplyLogOnInfo(logonInfo);
rptDoc.Database.Tables[i].Location = rptDoc.Database.Tables[i].Location.Substring(0, rptDoc.Database.Tables[i].Location.Length - 2);
crvViewer.ReportSource = rptDoc;
crvViewer.DataBind();
Development environment:
- SAP Crystal Reports 2013 Support Pack 1
- Visual Studio Professional 2012
- .NET Framework 3.5
- DDL
CrystalDecisions.Shared (v 13.0.8.1216)
CrystalDecisions.Web (v 13.0.8.1216)
CrystalDecisions.CrystalReports.Engine (v 13.0.8.1216)
Database connection in crystal report:
- Database Type: OLEDB (ADO)
- Provider: SQLOLEDB
- Integrated Security: True
Thanks and Regards,
TonyHi Tonylck
Try to pass login info to crystal report dynamically as follows:
using System;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
namespace WindowsApplication1
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
ReportDocument cryRpt = new ReportDocument();
TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
ConnectionInfo crConnectionInfo = new ConnectionInfo();
Tables CrTables ;
cryRpt.Load("PUT CRYSTAL REPORT PATH HERE\CrystalReport1.rpt");
crConnectionInfo.ServerName = "YOUR SERVER NAME";
crConnectionInfo.DatabaseName = "YOUR DATABASE NAME";
crConnectionInfo.UserID = "YOUR DATABASE USERNAME";
crConnectionInfo.Password = "YOUR DATABASE PASSWORD";
CrTables = cryRpt.Database.Tables ;
foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
crtableLogoninfo = CrTable.LogOnInfo;
crtableLogoninfo.ConnectionInfo = crConnectionInfo;
CrTable.ApplyLogOnInfo(crtableLogoninfo);
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.Refresh();
Ref
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-dynamic-login.htm
Mark as answer if you find it useful
Shridhar J Joshi Thanks a lot -
LOV selection fails when there are validation errors on the base page
Hi
I have lovs and some other required fields on a page . If there are any validation error on one of those text fields and if I open the LOV (not related to the text fields) and tries to select
an item from the LOV search results, it doesn't do it until unless I go back to the base page and correct all the validation errors on the text fields eventhough those text fields have nothing to do with the LOV.
Any suggestion is appreciated.
Thanks
AnwarI am on Anwar's team, and I've been dealing with the same problem, although on a different page.
The JSPX for a contrived example is below. I can provide backing bean code, if needed.
The form contains two LOVs. Both fields are required. If you leave both fields blank and click Continue, you get a red box around both fields and error messages are displayed. If you then click the magnifying glass to select from the first LOV, the LOV pop-up is rendered. However, you cannot make a selection, either by double-clicking a line item or by clicking OK (the OK button has no effect). All you can do is cancel.
Interestingly, the act of clicking the magnifying glass on the first LOV gets rid of the red box around that field. So, once you cancel out, the second LOV actually does work. If there were more than two fields on the page, that wouldn't happen. The problem seems to be that the LOV doesn't work unless there are no validation errors on the page other than for the LOV which is being invoked.
As you can see, immediate="true" is set on both LOVs. The behavior is the same whether this is true or not.
I'm left thinking there must be something obvious that we're missing... but none of us can see it.
Thanks,
KEN
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<af:document title="Add Item">
<af:form>
<af:panelGroupLayout>
<af:panelHeader text="Header">
<af:panelFormLayout>
<af:inputListOfValues label="Id" searchDesc="Search" popupTitle="Supplier Id"
simple="true" required="true" id="supplierId"
model="#{viewScope.AddItemBackingBean.supplierIdListOfValuesModel}"
value="#{viewScope.AddItemValuesBean.supplier.id}"
autoSubmit="true" immediate="true"/>
<af:inputListOfValues label="Description" searchDesc="Search" popupTitle="Supplier Id"
simple="true" required="true" id="supplierDescription"
model="#{viewScope.AddItemBackingBean.supplierDescriptionListOfValuesModel}"
value="#{viewScope.AddItemValuesBean.supplier.description}"
autoSubmit="true" immediate="true"/>
<f:facet name="footer">
<af:panelGroupLayout layout="horizontal" halign="right" >
<af:commandButton text="Continue"
actionListener="#{viewScope.AddItemBackingBean.continueAction}"
id="continueButton" />
</af:panelGroupLayout>
</f:facet>
</af:panelFormLayout>
</af:panelHeader>
</af:panelGroupLayout>
</af:form>
</af:document>
</f:view>
</jsp:root> -
When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this problem previous and was able to fix by doing a complete wipe of my computer and reinstalling CC. However, I should not have to wipe my computer clean everytime I need to do a CC update. HELP!
Hi,
Please download the updates directly from the link below:
WIN: All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
MAC: All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools
Regards,
Sheena -
Minimize the count of cubes when there are more number of cubes
Hi All:
Need your inputs on reducing the count of cubes when there are more number of cubes in any project.
On which basis we can downsize the count of cubes? For example,if there 30 cubes in same region,I want to reduce them to ,say 20 cubes.
Please share your thoughts.
Regards,
Upendra.You need to evaluate all of your existing cubes and see if there is any overlap in dimensionality that would allow you to combine cubes. Such as if one is actuals and another cube is budget for the same data, possibly you can combine those. Or as someone else suggested based on Business Units (If the other dimensions allow it. Perhaps conflicting Account or other structures won't allow it. )
However you have to then balance combining cubes against larger cube size which could impact calc time and other performance issues.
Its all a balancing act.
Look at where it makes sense to combine them. Only you know your environment enough to state if they can be combined or not. -
When I sync my iPad with iTunes it does not update my play counts. Is there a way to make this happen?
Are you using iTunes Match by chance? I had no problems whatsoever with play counts synching between any of my devices until I started using iTunes Match. I turned it off and magically my play counts synced. Once. Hasn't happened again though.
-
Just got a new iPhone 6, selling my 5 to Amazon. Trying to follow Apple instructions to erase content before sending but 5 will not connect to iCloud so I can't proceed - when promoted to enter password I keep getting "Verification failed. There was an error connecting to iCloud". I have checked apple id/password multiple times and they are correct. Any ideas out there? Thanks in advance
HFJ,
every once in a while my iPhone 5 fails to recognize my Apple ID. I don't have to go all the way to Restore to Factory Settings, I just have to turn off the phone. (Hold down top button until screen asks to slide if you want to turn it off.) Give it a few seconds, turn it on again. -
Recurring "connection failed" when selecting TimeCapsule in the sidebar (internet connection works fine). Clicking "Connect As" starts the cyle over again but ends in "There was a problem connection to the server" message. Only fix is resetting TC.
The TC is the wifi base station, also have AirportExpress on the network, both of which work fine. The TC has an external disc connected as well, which is also visible in the sidebar but also cannot be connected to. Several MB computers use the network, all of which either can or cannot connect to the TC disc depending on when it is acting up.
Any ideas other than clicking "connect as" or powering down the network every time?Read up how to install 5.6 utility into ML.. it is pretty easy.
I downloaded 5.6
http://support.apple.com/kb/DL1482
Download unpkg
http://www.timdoug.com/unpkg/
Open the dmg to get the pkg.. drag it onto unpkg.. and it will create a directory under desktop with all the files.. drag the application to the utility directory.. or just run it direct.
Google if you want more explicit instructions.
Much easier with a real tool instead of a toy.
Hold the option key when you select firmware update.. all the old ones will appear.
But this will not work on newer Gen4.. only on every other model and early Gen4. .I do not know when they turned the corner and started this only 7.6 nonsense. -
Error opening report as webservice when there's parameters!
I followed the instructions in the developer's guide: "Publishing and Consuming a Report as a Web Service"
I am using VS2008 and Crystal Reports 2008.
I have a web application with 1 report in it called CrystalReport1.rpt and this report is published as a service called CrystalReport1Service.asmx
The web service is working normally. I can browse to http://localhost:51132/CrystalReport1Service.asmx
I am trying to load the report in a windows application (VB.NET) using the following code in the form:
> Me.CrystalReportViewer1.ReportSource = "http://localhost:51132/CrystalReport1Service.asmx"
This code works as long as the report does not require any parameters.
When I modify the report to require a parameter (date param), the viewer displays the parameter popup window, when I enter the parameter and press OK I get an exception error in visual studio IDE, the exception is:
>System.NullReferenceException was unhandled
> Message="Object reference not set to an instance of an object."
> Source="CrystalDecisions.Windows.Forms"
> StackTrace:
> at CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
> at CrystalDecisions.Windows.Forms.ParameterValueEditControl.Start()
> at CrystalDecisions.Windows.Forms.ParameterUnit.AddEditControl(ParameterValue pv)
> at CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()
> at CrystalDecisions.Windows.Forms.ParameterUnit.set_ParameterFieldInfo(ParameterFieldInfo value)
> at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowParameters()
> at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowInteractiveParameters()
> at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport()
> at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(PaintEventArgs evtArgs)
> at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
> at System.Windows.Forms.Control.WmPaint(Message& m)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
> at System.Windows.Forms.ContainerControl.WndProc(Message& m)
> at System.Windows.Forms.UserControl.WndProc(Message& m)
> at CrystalDecisions.Windows.Forms.CrystalReportViewer.WndProc(Message& msg)
> at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
> at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
The documentation for publishing a report as a web service does not mention any special way to handle parameters, the windows viewer seems to read the parameter info correctly and automatically displays the window to edit the parameter, but the error happens upon submitting the parameter by clicking ok, this seems like a bug doesn't it?
The report works fine if I open it directly from Crystal Reports 2008 or if I embed it in my windows application.
Thanks,
Talal NehmeHello, Talal;
When you create the report with the parameter, was it the same report just adding a parameter or a new report?
Did you recompile the report after adding the parameter so you have a new "CrystalReport1Service.asmx" file?
The Crystal Report viewer should pass the parameter value correctly to the report as long as the asmx file is the updated report.
If you look at the parameter in the report, is it a Date, Date Time or String with date value?
How are you passing the value at runtime - what does the format look like in the prompt?
You may want to test first with a string or number parameter to eliminate possible format issues and see if you can get the parameter to work.
Elaine -
Opendocument failing when parameters populated by Report
Post Author: Lesley
CA Forum: General
I don't know whether this has been raised before, but I am using Crystal Reports XI and trying to access the URL to call a report.
When I pass a parameter to the report, it works. eg
http://localhost:8080/businessobjects/enterprise11/desktoplaunch/opendoc/openDocument.jsp?sType=rpt&sOutputFormat=P&iDocID=214994&lsSP_JRNL_ID=529
When I leave the parameter off, ( eg
http://localhost:8080/businessobjects/enterprise11/desktoplaunch/opendoc/openDocument.jsp?sType=rpt&sOutputFormat=P&iDocID=214994 ) the report will prompt for the parameter and after entering the parameter, I get a HTTP Status 500 screen
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception javax.servlet.ServletException: Error in showing Error Page: java.lang.IllegalStateException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.viewers.rpt.Export_jsp._jspService(Export_jsp.java:2484)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause java.lang.Exception: Error in showing Error Page: java.lang.IllegalStateException
org.apache.jsp.viewers.rpt.Export_jsp.WriteError(Export_jsp.java:778)
org.apache.jsp.viewers.rpt.Export_jsp.WriteErrorCommit(Export_jsp.java:798)
org.apache.jsp.viewers.rpt.Export_jsp._jspService(Export_jsp.java:2472)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Any Ideas ?PORTALDEV.RPT_MATCHED_CANDIDATES.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=search&p_arg_values=oracle and forms
search is parameter i used on rpt_matched_candidates report using :search in sql query.
Hope this helps -
DTEXEC does not fail when SSIS package fails
I need to run my SSIS 2012 packages through the catalog with DTEXEC. This works very well, except that if my SSIS package fails, DTEXEC does not fail. I need DTEXEC to fail, so my scheduler knows that there is an error.
I use the following command:
dtexec /ISServer "\SSISDB\MyFolder\MyProject\MyPackage.dtsx" /Ser MyServer /Par $Package::Partition;201412 /Env 5
When I check the status of the run in the Catalog, it is failed.
When I used SSIS 2008, I had no problem getting DTEXEC to fail when the packages failed.I've had the same problem, and come up with the following prototype for a SQL Script which I run in our JAMS Enterprise Scheduler. It uses SSISDB stored procedures to start the SSIS package and polls every 5 seconds to report any messages, and final
status code of the package. JAMS parameters are delimited by << >> symbols, and will need to be changed for your scheduler/batch process. I guess the script could be converted to a stored procedure. I'm also hoping it will work with SQL High
Availability groups to ensure the SSIS package runs on the server that's hosting the active database.
DECLARE @execution_id BIGINT
DECLARE @status INT= 1
DECLARE @Event_Message_id BIGINT= 0
DECLARE @Last_Event_Message_id BIGINT= 0
DECLARE @message_time DATETIME2(7)
DECLARE @message NVARCHAR(MAX)
--Create a SSIS execution for the required SSIS package and return the execution_id
EXEC [SSISDB].[catalog].[create_execution] @package_name = N'<<pPackageName>>.dtsx',
@execution_id = @execution_id OUTPUT, @folder_name = N'<<pSSISFolderName>>',
@project_name = N'<<pSSISProjectName>>', @use32bitruntime = <<p32Bit>>, @reference_id = NULL
RAISERROR('Starting SSIS package <<pPackageName>> with execution_id %I64d on server %s',0,0,@execution_id,@@SERVERNAME) WITH NOWAIT
--Set the logging level 0-none, 1-basic (recommended), 2-performance, 3-verbose
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id,
@object_type = 50, @parameter_name = N'LOGGING_LEVEL',
@parameter_value = <<pLogging_Level>>
--Start the package executing
EXEC [SSISDB].[catalog].[start_execution] @execution_id
WHILE @status IN ( 1, 2, 5, 8 ) --created (1), running (2), canceled (3), failed (4), pending (5), ended unexpectedly (6), succeeded (7), stopping (8), and completed (9).
BEGIN
WAITFOR DELAY '00:00:05'
--Get the status to see later if we've finished
SELECT @status = status
FROM SSISDB.catalog.executions
WHERE execution_id = @execution_id
--Are there any event messages since we last reported any?
DECLARE curEventMessages CURSOR FAST_FORWARD
FOR
SELECT event_message_id ,
message_time ,
message
FROM SSISDB.catalog.event_messages
WHERE operation_id = @execution_id
AND event_message_id > @Last_Event_Message_id;
OPEN curEventMessages
FETCH NEXT FROM curEventMessages INTO @Event_Message_id, @message_time,
@message
WHILE @@FETCH_STATUS = 0
BEGIN
--We've found a message, so display it - watch out for % signs in the message, they'll cause an error if we don't replace them
SET @message = CONVERT(NVARCHAR(MAX), @message_time, 113)
+ ' ' + replace(@message,'%',' percent')
RAISERROR(@message,0,0) WITH NOWAIT
SET @Last_Event_Message_id = @Event_Message_id --Make a note that we've reported this message
FETCH NEXT FROM curEventMessages INTO @Event_Message_id,
@message_time, @message
END
CLOSE curEventMessages
DEALLOCATE curEventMessages
END
--@Status indicates that package execution has finished, so let's look at the outcome, and error if there's a problem
IF @status = 7
RAISERROR('Package Succeeded',0,0)
ELSE
IF @status = 9
RAISERROR('Package completed',0,0)
ELSE
IF @status = 3
RAISERROR('Package Cancelled',16,1)
ELSE
IF @status = 4
RAISERROR('Package failed (see error message above)',16,1)
ELSE
IF @status = 6
RAISERROR('Package ended unexpectedly',16,1)
ELSE
RAISERROR('Package ended with unknown status %i',16,1,@status) -
Crystal Reports Publication fails when using dynamic recipients
Hi experts,
We are facing a problem related with the BOE 3.1 Dynamic recipients Publication.
We have created a Publication with just one Crystal Report based on a MDX Query. We send the report in PDF format to email destinations
Dynamic recipients are defined in a WebI report pulling data from a BW query universe. We can display the email, user ID, Use Name and other fields we would like to use as dynamic parameters.
Server side trust seems to be configured (is there any way to test it is properly configured?).
The Publication is working fine with enterprise recipients (which have SAP BW account), and each recipient receive its PDF by email.
When we execute same report with dynamic recipients without selecting dynamic personalization parameters it is working fine. But when we select one dynamic parameter (which is coming from the WebI report we use for dynamic recipients) eg: Profit Centre, the Publication fails and we get a Database Connector error:
2011-02-14 08:53:25,275 ERROR [PublishingService:HandlerPool-13] BusinessObjects_PublicationAdminErrorLog_Instance_31036 - [Publication ID # 31036] - Scheduling document job "P&L" (ID: 31,051) failed: Error in File ~tmp191067bfa343ff0.rpt: Database Connector Error (FBE60502) [1 recipients processed.]
How can a dynamic parameter affect on the Database Connection?
Does anyone have an idea about what could be wrong?
Thanks!Ino, what do you mean for "technical name or the member unique name"? Are you talking about the SAP User name? So in the dynamic recipients we can find these parameters:
- Recipient Identifier (required):
- Full Name:
- Email:
In the Recipient Identifier I should refer to a SAP user?
Dynamic recipients option is working for same recipients. The problem appears when I assign one parameter to a field coming from the dynamic webi report.It fails with the previously detailed error. This parameter assignment seems to be causing the Database Connector error.
Message in CMC:
2011-02-14 17:00:25,590 ERROR [PublishingService:HandlerPool-24] BusinessObjects_PublicationAdminErrorLog_Instance_31594 - [Publication ID # 31594] - Scheduling document job "B1 - P&L" (ID: 31,603) failed: Document for recipients {BD1~500/EVER} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients {EVER, JOHNDOE} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error (FBE60502) [4 recipients processed.]
Error in the Adaptive jobserver trace does'nt give more details:
|1c2fd2be-3ba1-f414-f8fa-e4f7b004f1ee|2011 02 14 17:00:18:974|+0000|==| | |jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0| 2560|4856|| |6187|1|11|2|CMC.WebApp|vwd2520:1624:39.23486:1|CMS.runJobs|localhost:8392:11648.936338:1|jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0.run|localhost:2560:4856.5:1|CntazqXlSEO7hcDJVIv11545bbb|||||||||||(.\src\reportdllerrors.cpp:140) ras21-cr: procReport.dll: CRPE FAILED: GetLastPEErrorInfo(1) returns crpe error code [707] with extended error string [Database Connector Error: ''
Failed to retrieve data from the database.
Failed to export the report.
Error in File ~tmpa0067c160f93d0.rpt:
Database Connector Error]. Localized error string is [Error in File ~tmpa0067c160f93d0.rpt:
Database Connector Error]
I would like to discard thats a SNC misconfiguration error. Can I consider that SNC server side trust is properly configured if I can run Publication for many SAP users mapped in Enterprise?
Thanks!
Maybe you are looking for
-
Remove Header Node in File Content Conversion
Hi Guys, In our scenario receiver payload is <?xml version="1.0" encoding="UTF-8"?> <ns1:MarketInventoryResponse xmlns:ns1="PRINCIPALS/MarketInventory"> <Header> <CurrentDate>200809</CurrentDate> </Header> <MarketInve
-
Time capsule traps iTunes library
I copied my iTunes music library to my time capsule. Now I can't figure out how to copy it off the time capsule HD. The original library resided on a Firewire HD and is now corrupted. Time machine was not used.
-
Cannot connect to Itunes Store-nothing is working. Please Help
This is my diagnostics report Microsoft Windows XP Home Edition Service Pack 3 (Build 2600) Dell Computer Corporation Dimension 3000 iTunes 9.0.3.15 QuickTime 7.6.5 FairPlay 1.6.16 Apple Application Support 1.1.0 iPod Updater Library 9.0d11 CD Driver
-
Hi. Hope I can get some assistance on this one, bought the phone a few days ago and am loving it, so when it started acting up, it was really disappointing to say the least. Recently, when the phone is in normal standby mode i.e. no bluetooth or any
-
Hi all in F-58 i am not getting tax ded amount in payment