I have a simple Coldbox REST application that just calls the following function and returns either 0 or 1:
function getTurnstileData(location, type, rfid){
spTurnstile = new storedProc(procedure='pr_dtr_timedata_check', datasource='dsTurnstile');
spTurnstile.addParam(type='in',cfsqltype='CF_SQL_VARCHAR', value=location);
spTurnstile.addParam(type='in',cfsqltype='CF_SQL_VARCHAR', value=type);
spTurnstile.addParam(type='in',cfsqltype='CF_SQL_VARCHAR', value=rfid);
spTurnstile.addParam(type='out',cfsqltype='CF_SQL_VARCHAR', value='');
spTurnstile.addProcResult(name='result');
result = spTurnstile.execute().getProcResultSets().result;
return result;
}
Using the coldbox server server start --rewritesEnable cfengine=adobe#2021, the application runs properly (http://127.0.0.1:56217/index.cfm/api/checkEntry?location=test&type=IN&rfid=248426891)
However, when I use the exact same code (with all the same mappings and data source) and run it in an existing Adobe Coldfusion 2021, it shows an error.
11:34:28.028 - Database Exception - in C:/ColdFusion_2021_WWEJ_win64/ColdFusion2021/ColdFusion/cfusion/CustomTags/com/adobe/coldfusion/base.cfc : line 381
Error Executing Database Query.
11:34:28.028 - Database Exception - in C:/ColdFusion_2021_WWEJ_win64/ColdFusion2021/ColdFusion/cfusion/CustomTags/com/adobe/coldfusion/base.cfc : line 381
Error Executing Database Query.
Result using existing Adobe Coldfusion Server (A)
Result using existing Adobe Coldfusion Server (B)
Is there a proper way to deploy a coldbox application to an existing Adobe Coldfusion Server instance? I cannot seem to find any information in the documentation.
Related
I have created a Talend job and deployed it as a Axis Web Service.
I am calling this Web Service from my Web Application.
My application and web service are deployed over Tomcat server.
For Valid Inputs:
Runs Perfectly.
For Invalid Inputs:
It throws Error/exceptions in Tomcat Server.
I want this Errors into my application. I didn't get any error related information in the Response sent by web service.
Error message on Tomcat Server
XML response of Web service
If I understand your question you are not so much asking how to fix this error, but how to get feedback about your error. There are several ways but here is a simple method.
Add a tLogCatcher to your job, and point its output to a tSendMail component. You can run the output thru a tMap do things like adding HTML formatting. You can also create a joblet with these two components and use the joblet in every job so you do not have to recreate it every time.
The diagram below shows a real simple case where I add tLogCatcher and tSendMail directly to the job. When there is an error it will send me an email with the details. You can use any of the columns in row11, I am only using job and message in my example.
This error : For input string "fabrik"
is generated by the tFileInputExcel component when encountering a non valid field (expected : integer ; given : string). You can't directly catch this error with the tFileInputExcel component (it's just printed out on the console).
However, you can use a tSchemaComplianceCheck component after your tFileInputExcelComponent : it will throw an error if a data is not valid for your schema. This component has a reject link to catch the error.
tFileInputExcel->tSchemaComplianceCheck->tMap->tMSOutput
If you use tLogCatcher component to catch the error then, at the end of the flow, you can add a tBufferOutput component. Keep the fields with the information you want for.
component configuration
The result will be like this (note that they are shown in the same order):
result
I want to be able to test an Azure WebJobs SDK project locally, before I actually publish it to Azure.
If I make a brand new Azure Web Jobs Project, I get some code that looks like this:
Program.cs:
// To learn more about Microsoft Azure WebJobs SDK, please see http://go.microsoft.com/fwlink/?LinkID=320976
class Program
{
// Please set the following connection strings in app.config for this WebJob to run:
// AzureWebJobsDashboard and AzureWebJobsStorage
static void Main()
{
var host = new JobHost();
// The following code ensures that the WebJob will be running continuously
host.RunAndBlock();
}
}
Functions.cs:
public class Functions
{
// This function will get triggered/executed when a new message is written
// on an Azure Queue called queue.
public static void ProcessQueueMessage([QueueTrigger("queue")] string message, TextWriter log)
{
log.WriteLine(message);
}
}
I would like to get around to testing whether or not the QueueTrigger function is working properly, but I can't even get that far, because on host.RunAndBlock(); I get the following exception:
An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll
Additional information: Microsoft Azure WebJobs SDK Dashboard
connection string is missing or empty. The Microsoft Azure Storage
account connection string can be set in the following ways:
Set the connection string named 'AzureWebJobsDashboard' in the connectionStrings section of the .config file in the following format
, or
Set the environment variable named 'AzureWebJobsDashboard', or
Set corresponding property of JobHostConfiguration.
I ran the storage emulator, and set the Azure AzureWebJobsDashboard connection string like so:
<add name="AzureWebJobsDashboard" connectionString="UseDevelopmentStorage=true" />
but, when I did that, I'm getting a different error
An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll
Additional information: Failed to validate Microsoft Azure WebJobs SDK
Dashboard account. The Microsoft Azure Storage Emulator is not
supported, please use a Microsoft Azure Storage account hosted in
Microsoft Azure.
Is there any way to test my use of the WebJobs SDK locally?
WebJobs 2.0 now works using development storage (I'm using v2.0.0-beta2).
Note that latency in general and Blob triggers in particular are currently far better than you can get in production. Design with care.
If you want to test the WebJobs SDK locally, you need to set up a storage account in Azure. You can't test it against the Azure Emulator. That's what that error is telling you.
Failed to validate Microsoft Azure WebJobs SDK Dashboard account. The Microsoft Azure Storage Emulator is not supported, please use a Microsoft Azure Storage account hosted in Microsoft Azure.
So to answer your question, you can create a storage account in Azure using the portal, and then set up your connection string in the app.config of your Console Application. Then just drop a message to the queue and run the Console Application locally and it will pick it up (assuming you're trying to interact with the queue obviously).
Make sure that you replace the [QueueTrigger("queue")] "queue" with the name of the queue you want to poll.
Hope this helps
I get the following error:Service Invocation Exeption i am working with Version 8.7 IBM InfoSphere DataStage and QualityStage Designer and using a server job and there, i have 1 sequential file, web service, sequential file.
Any idea what could be the reason of this error ?
Make sure you have chosen proper DataStage job type and your stage that operates on web service is configured properly.
You should also check the DataStage logs to get more information about root cause of the error.
I have a Web Application in .NET 4.0 Integrated mode calling a web service (ASMX) in .NET 2.0 Integrated mode on the same server via localhost.
9 out of 10 times all works fine, but occasionally the Web Application get's a "Request timed out" and "Thread was being aborted" error during the call. It gives the error on the last line of this code example:
Dim Service As New localhost.Service
Dim Input As New localhost.InputProduct
Dim Ret As New localhost.OutputProduct
Try
Ret = Service.RequestProduct(Input)
Catch
Finally
Service.Dispose()
If Ret.succesfull = True Then
If Response.IsClientConnected = True Then
Response.Redirect("success.aspx", False)
End If
End If
End Try
In the log file of the web service I get a sc-win32-status: 995 and a sc-status: 200, typically the time-taken is always a little bit more than 60 seconds (time-take: 62743). Normally this would take 14 seconds to complete without errors.
The call is made in the code behind of the ASPX page after a button is clicked.
On the page there is an Updatepanel and the button is used as a PostBackTrigger.
Question: Why do I get these "request timed out" error after the web service call?
Server:
Windows Server 2008 R2 SP1
IIS 7.5
Microsoft UrlScan 3.1
Windows Firewall
I finally found the answer to this problem. It turned out to be this piece of code in the web.config:
<pages smartNavigation="true">
After turning this off I didn't receive any time-out errors anymore.
The reason for the time-out is probably the IFRAME that the smartNavigation setting generates in IE browsers (not in Firefox/Chrome)
I have used this setting in .NET 2.0 to eliminating the flash caused by navigation, after upgrading to .NET 4.0 Visual Studio didn't give any clue that this setting was deprecated.
I found the answer, because I had an other problem to deal with. After using the latest ajaxToolkit for .NET 4.0 I had this javascript alert error in IE7/8 while using the AutoCompleteExtender:
Stack overflow at line: 0
This turned out to be related to the smartNavigation setting. So removing this setting fixed two problems at once. Hopefully I help someone with this, because for me it was one of the most annoying error's I've found in the short history of internet.
Consider changing httpRuntime executionTimeout = "xxx" tag located in the machine.config for your web server. The default may be two short for your situation. Value expressed in seconds consider doubling it.
Hope someone can help me. My problem is that I can’t seem to call any web services from Oracle (Oracle Database 10g Enterprise Edition Release 10.1.0.5.0.)
The web service I was originally working on can be invoked from a browser interface, but when invoked from Oracle I get the following error message:
Fel pσ rad 1:
ORA-29532: Java-anrop avslutades av ouppfσngat Java-undantag:
java.rmi.RemoteException: java.rmi.RemoteException: ; nested exception is:
dynamic invocation error: javax.xml.soap.SOAPException: Error parsing envelope
ORA-06512: vid “SYS.UTL_DBWS”, rad 404
ORA-06512: vid “SYS.UTL_DBWS”, rad 401
ORA-06512: vid “PRODPACK.HELLOWORLD”, rad 163
The first couple of lines are in Swedish, and are telling me politely that my code has caused an uncaught java exception.
I have tried to google this but have not been able to find anything that can help me.
I tried to call an example web service that I found in this article:
http://www.oracle-base.com/articles/10g/utl_dbws10g.php
But I get the same error.
Does anyone know what may be causing this?
I had a similar problem with utl_dbws and it turned out that we had a 'partial' install of java on our 10g instance. Our dba had to finish the installation and then everything worked.
However, even after that I switched to using UTL_HTTP (and another link)and found it easier (esp. since there seems to be more documentation around it and I had to go through a proxy)