MM_XSLTransform.cfc error: cfcatch.Proc
I've been using the MM_XSLTransform.cfc for a couple years to
do XSL transformation on a site, and it's worked quite well. Only
just last night, I started receiving an error regarding
cfctach.Proc:
Element PROC is undefined in CFCATCH. <br>The error
occurred on line 135.
As well as:
Element PROC is undefined in CFCATCH. <br>The error
occurred on line 133.
The version of the CFC that I'm using is 0.6.2, which I
believe is the version that comes with Dreamweaver 8. Not sure if
there's a new version for Dreamweaver CS3 or Dreamweaver CS4, for
that matter.
In any case, the lines in question are as follows:
<cftry>
<cfset XMLParse(myFile)>
<cfcatch type="any">
<cfif type EQ "xml">
<cfset setError(getErrorFromCode('MM_INVALID_XML_ERROR',
errSrc) & cfcatch.Proc & ' ' & mySrc & '<br>'
& cfcatch.Message & '<br>' &
HTMLEditFormat(cfcatch.Detail) & '<br>' &
HTMLCodeFormat(myFile))>
<cfelse>
<cfset setError(getErrorFromCode('MM_INVALID_XSL_ERROR',
errSrc) & cfcatch.Proc & ' ' & mySrc & '<br>'
& cfcatch.Message & '<br>' &
HTMLEditFormat(cfcatch.Detail) & '<br>' &
HTMLCodeFormat(myFile))>
</cfif>
</cfcatch>
</cftry>
This error could also potentially pop up in this section:
<cftry>
<cfset output = XmlTransform(Arguments['xml'],
Arguments['xsl'])>
<cfcatch type="any">
<cfset
setError(getErrorFromCode('MM_TRANSFORMATION_ERROR') &
cfcatch.Proc & & '<br>' & cfcatch.Message)>
</cfcatch>
</cftry>
In looking at the documentation for cfcatch, Proc (as in
cfcatch.Proc) does not appear to be a valid attribute for cfcatch,
and there isn't anywhere else within the cfc where Proc gets tacked
on to the cfcatch.
For now, to prevent the error from occurring, I've commented
out all instances of cfcatch.Proc.
Not sure why this popped up now. It may mean there's an error
in one of my XML files, which I will need to investigate.
If anyone has any insight to share on the perils of
cfcatch.Proc, it would be appreciated.
Thanks,
Marc
I am passing RequestTimeOut="120" in the url. The 120 seconds
is the value that has been determined to be the maximum that we
want the app to run before timing out. The issue I have is that the
ColdFusion Blue Error page is not acceptable error handling and I
have not been able to capture the timeout. That is my request, how
to capture the timeout and follow acceptable error handling in this
timeout situation.
Similar Messages
-
Numeric overflow error in proc
hi guys
while executing below proc i am getting error numeric overflow at lineno 36.. please help me.
ORA-01426: numeric overflow
Thanks & Regards
************************************Proc Code******************************************************
create or replace PROCEDURE proc_tab1 IS
V_Rlt varchar2(4);
cursor c1 is
select a.ref,b.key_ref from a,b where a.ref(+) = b.ref;
cursor c2 is
select x.id||x.dt_key, x.d_value from x, y
where y.s_ref = 'ML21' and y.id = 'RT' and x.f_ref = y.s_ref;
type curr is table of c1%rowtype;
c_table curr;
type curr2 is table of c2%rowtype;
c2_table curr2;
begin
open c1;
loop
fetch c1 bulk collect into c_table;
exit when c1%NOTFOUND;
end loop;
open c2;
loop
fetch c2 bulk collect into c2_table;
exit when c2%NOTFOUND;
end loop;
for i in 1..c_table.count
loop
if c2_table.exists(c_table(i).ref||c_table(i).key_ref)---after concat value length is 16
then
v_rlt := c2_table(c_table(i).ref||c_table(i).key_ref).d_value;
else
v_rlt :='R';
end if;
insert into tab1 (ref,rlt) values(c_table(i).ref,v_rlt);
end loop;
end;lineno 36can you please highlight which is the exact line where you get the error?
Please post your code using ** tags. -
Nothing but CFC errors..
Ok.. so here's the layout;
My personal computer:
Flex Builder 3
MAC Leopard
Dreamweaver CS4
Server:
ColdFusion MX 6.1 (fully updated)
IIS
Trying to build a simple CFC to retrieve a record of data from a datasource from within Flex. When I visit the WSDL URL (http://blah.blah.com/mycfc/db_getbrat.cfc?wsdl), it shows the following:
<wsdl:definitions targetNamespace="http://mycfc">
<wsdl:portType name="db_getBrat">
</wsdl:portType>
−
<wsdl:binding name="db_getBrat.cfcSoapBinding" type="impl:db_getBrat">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
</wsdl:binding>
−
<wsdl:service name="db_getBratService">
−
<wsdl:port name="db_getBrat.cfc" binding="impl:db_getBrat.cfcSoapBinding">
<wsdlsoap:address location="http://blah.blah.com/mycfc/db_getBrat.cfc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
So it appears that the CFC is working and loaded. I have even tested the code within the CFC (the SQL query and output) using a basic .CFM file, and it works perfectly. So I know the DSN and query are working.
However, when I use the following code:
<mx:WebService id="srv" wsdl="http://blah.blah.com/mycfc/db_getBrat.cfc?wdsl" useProxy="false" showBusyCursor="true" />
<mx:DataGrid dataProvider="{srv.retrieveBrat.lastResult}" width="726" height="194" x="25" y="10">
<mx:columns>
<mx:DataGridColumn dataField="contactid" headerText="Contact ID"/>
<mx:DataGridColumn dataField="firstname" headerText="First Name"/>
<mx:DataGridColumn dataField="lastname" headerText="Last Name"/>
</mx:columns>
</mx:DataGrid>
<mx:Button label="Get Data" click="srv.retrieveBrat()" x="25" y="212"/>
I get the following error in a popup after the application loads:
RPC Fault faultString="Error #1085: The element type "br" must be terminated by the matching end-tag "</br>"." faultCode="Client.CouldNotDecode" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://blah.blah.com/mycfc/db_getBrat.cfc?wdsl)"]
at mx.rpc.wsdl::WSDLLoader/faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\ rpc\wsdl\WSDLLoader.as:98]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\framewor ks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
at mx.rpc.http::HTTPService/http://www.adobe.com/2006/flex/mx/internal::processResult()[C:\autobuild\3.2.0\frameworks\ projects\rpc\src\mx\rpc\http\HTTPService.as:925]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\ projects\rpc\src\mx\rpc\AbstractInvoker.as:188]
at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responde r.as:43]
at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:74]
at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\s rc\mx\messaging\channels\DirectHTTPChannel.as:403]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
And when I run a .CFM file to <cfinvoke..> the CFC, I get the following error:
Name: http://blah.blah.com/mycfc/db_getBrat.cfc?wdsl.
WSDL: http://blah.blah.com/mycfc/db_getBrat.cfc?wdsl. org.xml.sax.SAXException:
Fatal Error: URI=null Line=40: Expected "" to terminate element starting on line 16.
Only problem is.. there IS no line 16 in the CFC.. but that's the right one. Only one in there. And that very same URL in my browser pulls up
the WSDL info above.
Anyone have a clue as to why this is happening? I'm about to throw the computers out the window. (well.. not really.. too expensive)
Thanks to all, in advance, for any help..couple things, how come you didnt use and mx:operation tag between the mx:webservice open and close tags? im not sure if thats even the issue but to me it makes it easier because you specify the function inside the cfc you're trying to call by doing this.
also, most of the time when you get the wsdl error you wrote of, its because of some mal-formed xml. if your result has any html tags in its output, theres a good chance youll get a parsing error because xml is wicked picky. youd wanna do a coldfusion string replace function to look for < or > signs.
if you want, post your flex and cfc code, i just finished doing a few projects doing the exact same stuff so i got it fresh in my head! -
Error:
Error casting an object of type to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.
The error occurred in C:\Inetpub\wwwroot\RMS\Untitled-3.cfm: line 15
13 : <cfloop from="1" to ="#listlen(application.Sql_SC)#" index="i">
14 : union
15 : <cfquery name="GetZone#i#" datasource="#i#">
16 : SELECT ccflocationID, Location_Name
17 : FROM ccflocation
<cfcomponent hint="This cfc goes to Scorecard environment and grabs some stuff">
<cffunction name="Zone" access="public" returntype="Query">
<cfset myLoc = QueryNew("ccflocationID,Location_Name", "Integer,VarChar")>
<cfargument name="DSN" required="true" type="string">
<cfquery dbtype="query" name="GetZone">
select ccflocationID, Location_Name from myLoc
<cfloop from="1" to ="#listlen(arguments.DSN)#" index="i">
union
<cfquery name="GetZone#i#" datasource="#i#">
SELECT ccflocationID, Location_Name
FROM ccflocation
</cfquery>
</cfloop>
</cfquery>
<cfreturn GetZone>
</cffunction>
</cfcomponent>You can NOT mix QoQ and DB queries together...
this is QoQ
<cfquery dbtype="query" name="GetZone">
this is DB query
<cfquery name="GetZone#i#" datasource="#i#">
You will need to run your DB queries first (outside QoQ)
and then run the loop again to UNION all results...
<cfloop from="1" to ="#listlen(arguments.DSN)#" index="i">
<cfquery name="GetZone#i#" datasource="#i#">
SELECT ccflocationID, Location_Name
FROM ccflocation
</cfquery>
</cfloop>
<cfquery dbtype="query" name="GetZone">
select ccflocationID, Location_Name from myLoc
<cfloop from="1" to ="#listlen(arguments.DSN)#" index="i">
union
select ccflocationID, Location_Name from GetZone#i#
</cfloop>
</cfquery> -
Cfc error when using Flex and RemoteObject (cross post)
I have Flex 3.0.214193 and CF 8,0,0,176276 and Oracle
10.2.0.3.
I've been search for several days for an answer to this one.
There is very little out there about this type of error, but then
there is very little about any problems with Flex and ColdFusion.
In Flex, I have two comment fields. the .cfc has two update
functions that update the comments, because they are in two
different tables. The first update works like a champ. The second
one consistantly shows this error in the CF application log: The
NEWENGREMARK parameter to the updateEng function is required but
was not passed in. I've used the Alert.Show to verify that Flex
does have a value in that variable when it calls the .cfc. I've
even tried passing the first variable that worked in the first
update, and even a litteral value. Everything yields the same
cryptic error message. I must be looking at the wrong thing.
The only things I've found on the web about this, say the
variables should have a scope (is that a scope in Flex or in the
.cfc) and the column names should be in upper case (because it's
Oracle).
Here's the .cfc code (is that where the error is, or is it in
Flex?). The UpdateDescription function works, but the UpdateEng
doesn't.
Thanks for any help, or spelling errors you can point out.
ScottIan,
I also heard about the case thing. So I tried everything in
upper case and lower case - same thing. In my experimenting, I
tried adding the newENGRemark parameter to the descriptionUpdate
function call, I didn't do anything with it is the .cfc just
declared it as required. In that case the parameter exists and
everything is fine. But in the call to the UpdateEng, it doesn't
exist.
I changed the .cfc so that the newENGRemark was not required
or had a default. In both cases the .cfc just skipped to the next
parameter and said it didn't exist. But I was passing a litteral,
it wasn't even a variable.
I created a .cfm page that did a cfinvoke on the .cfc, and
passed it two litterals. That worked fine. So that makes it look
like some sort of syntax error in the Flex. So I deleted the call
to the UpdateENG, copied the UpdateDescription call (because it
works), changed just the minimum to make it work, but it didn't
work.
I think I am going to restructure the database so that I can
do what I need to with just one update function, that seems to
work.
It still doesn't make any sense.
Scott (Flex code is attached) -
Semantic Error with ProC for a granted package
Hi,
we are now switching to Oracle 11gR2, and I encounter an error when precompiling our ProC code. The error is PLS-S-00201, identifier 'XXXXXX' must be declared.
Let me explain what I do.
The identifier in question is a package. The owner of this package is a schema user USER1. In the same database instance, I have an other schema user, USER2.
USER1 granted EXECUTE to USER2. And a SYNONYM has been created for USER2. So now, connecting with USER2 with SqlDeveloper, I can see the synonym from the granted package.
When precompiling with ProC, I use the SQLCHECK=SEMANTICS USERID=USER2/PWD@INSTANCE.
Other flags are : DBMS=V8 CHAR_MAP=VARCHAR2 ireclen=80 oreclen=80 parse=NONE select_error=NO maxliteral=1024 maxopencursors=10 ltype=NONE release_cursor=YES
This is when I get the error. I must connect with USER2, because it is the main schema, and only a package is in another schema. But if I change the USERID for ProC to USER1, and precompile only the part of the code that need USER1, it works (same package here, but in the owner schema). It seems there is a problem with the GRANT.
Does anyone have any idea ?
Thank you.
Jessy Saint.Of course, it was the ovious. The grant was removed from someone else, testing something else. The problem with big dev teams using the same databases....
Thanks again. -
Systemd errors with proc-sys-fs-binfmt_misc.automount [solved]
Been enjoying systemd for a few weeks now but for some reason I have two failed errors:
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded failed failed Arbitrary Executable File Formats File System Automount Point
systemd-modules-load.service loaded failed failed Load Kernel Modules
and
$ status systemd-modules-load.service
systemd-modules-load.service.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)
$ status proc-sys-fs-binfmt_misc.automount
proc-sys-fs-binfmt_misc.automount.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)
Not quite sure why.
Last edited by graysky (2012-05-15 20:22:14)The kernel does support it. My problem was a typo in /etc/modules-load.d/cpupower.conf
/acpi_cpufreq/acpi-cpufreq/
Problem solved. -
ORA-12154 TNS resolve error with ProC
<p>Hi all,
<br>
<p>
I have a program written in ProC which works fine when it connects to a local database. However, it is unable to connect to a remote database. The code for making the connection is:
<p>
<i>
EXEC SQL BEGIN DECLARE SECTION;<br>
char name[20];<br>
char pwd[20];<br>
char dbname[20];<br>
char dbstring[20];<br>
EXEC SQL END DECLARE SECTION;<br>
strcpy(name, "admin");<br>
strcpy(pwd, "adminadmin");<br>
strcpy(dbname, "userdb");<br>
strcpy(dbstring, "userdb");<br>
EXEC SQL WHENEVER SQLERROR DO printf( "Connection Error = %s", sqlca.sqlerrm.sqlerrmc);<br>
EXEC SQL CONNECT :name IDENTIFIED BY :pwd AT :dbname USING :dbstring;<br>
</i>
<p>
The content of fthe file tnsnames.ora:<br>
<i>
userdb =<br>
(DESCRIPTION =<br>
(ADDRESS_LIST =<br>
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.30.21)(PORT = 1521))<br>
)<br>
(CONNECT_DATA =<br>
(SID = userdb)<br>
)<br>
)<br>
</i>
<p>
I can "tnsping userdb" and "telnet 192.168.30.21 1521" but the program keeps generating the ORA-12154 connection error.
The version of my oracle client is 9.2.0.1.0
The version of the db server is 8.1.7
Could any one give me some advice please. I had been searching for the solutions for days but failed. Please help. Thanks.<p>
i do a file search "find / -name tnsnames.ora", here is the result:
<p>
/home/oracle/dbscript/database/tnsnames.ora<br>
/u00/app/oracle/product/9.2.0.1.0/network/admin/samples/tnsnames.ora<br>
/u00/app/oracle/product/9.2.0.1.0/network/admin/tnsnames.ora<br>
<p>
the first one is not found in the path -
Am using Dreamweaver 8 and CF MX 7. All the CFCs I've created
were created manually, not using Dreamweaver. I then copy the CFC,
and modify it as needed for other applications in different
folders. But all apps are part of the same SITE.
However, when I click IN and OUT of a template that contains
a CFINVOKE to a CFC, I get a quick pop-up message that says:
"The required component could not be found at the specified
location." I just click OK, the message goes away. The programs and
templates work fine. I probably have a dozen report forms that
INVOKE a CFC (all in the same site) but I did not create any of the
CFCs in Dreamweaver, just coded them manually.
Is there some way to get rid of this message? Or is this
normal when you DON'T create the CFC with Dreamweaver? When I click
on APPLICATIONS/COMPONENTS, it tells me "THERE ARE NO CFCs DEFINED
IN THE CURRENT SITE." But they are there, and I'm using them.
I'd like to (but not totally necessary) inspect/modify the
CFCs in Dreamweaver. But it tells me the first thing I need to do
is "CREATE A SITE FOR THIS FILE", followed by the other 3
instructions related to DOCUMENT TYPE, TESTING SERVER, and RDS
LOGIN.
I've already created the site in Dreamweaver. So I guess the
question is: "HOW DO YOU -ADD- A CFC, SO YOU CAN WORK WITH IT IN
DREAMWEAVER, WHEN YOU'VE ALREADY CREATED THE SITE? Every time I
experiment, Dreamweaver seems to always want me to create a SITE.
But my application has been using the same "site" for 5 years, it's
already created. So not sure what is wrong.
Would appreciate any advice on either how to get rid of the
error message, or how to ADD a CFC created manually to Dreamweaver
when you've already created the site. Any advice would be greatly
appreciated. Thank you.
GaryThanks for the response. Glad you found a way to get your
CFCs to show up in Dreamweaver. However, I need to keep my site in
a virtual folder, so that I know the web server is working
correctly. Otherwise, I would be using "hard coded" URLs to
run/test my CFM files. It's important for my "development"
environment to mimic the production environment (production server
also has site in virtual folder) to be certain that programs that
run fine on "development", run fine on "production."
So I guess the million dollar question is: Is there some way
to get Dreamweaver to recognize CFCs located in sites where the
site root is in a virtual folder?
I may have better luck getting the answer on the Dreamweaver
forum. But maybe someone here might now. Many thanks again for
getting back. Good luck with your CF development.
Gary -
GetHumansThisPlanet.cfc error
I don't know if this is a bind problem or not - I'm not getting an error, I'm getting empty dropdowns on the form page. (The
cfc and cfm both reside in the same folder.) I've googled this planet and just can't find why the form selects aren't
dynamically loading from the cfc - What am I missing here? (This is based on Forte's cfc dynamic selects.)
Thanks for anyone's advice...
- e
********************* getHumansThisPlanet.cfc
<cfcomponent output="false">
<cfset THIS.dsn="#application.dsn#">
<!--- Get array of Places --->
<cffunction name="getPlanets" access="remote" returnType="array">
<!--- Define variables --->
<cfset var data="">
<cfset var result=ArrayNew(2)>
<cfset var i=0>
<!--- Get Places --->
<CFQUERY NAME="PlanetData" DATASOURCE="#THIS.dsn#">
SELECT DISTINCT PlanetNumber, PlanetName
FROM PlanetTable
WHERE AdminLevel = 'three' AND PlanetYear = '2010-2011' AND ParticipationLevel = 'jumpingUpandDown'
ORDER BY PlanetName ASC;
</cfquery>
<!--- Convert results to array --->
<cfloop index="i" from="1" to="#PlanetData.RecordCount#">
<cfset result[i][1]=PlanetData.PlanetNumber[i]>
<cfset result[i][2]=PlanetData.PlanetName[i]>
</cfloop>
<!--- And return it --->
<cfreturn result>
</cffunction>
<!--- Get Humans by Planet --->
<cffunction name="getHumans" access="remote" returnType="array">
<cfargument name="PlanetNumber" type="numeric" required="true">
<!--- Define variables --->
<cfset var data="">
<cfset var result=ArrayNew(2)>
<cfset var i=0>
<!--- Get data --->
<cfquery name="HumanData" datasource="#THIS.dsn#">
SELECT HumanID, PlanetNumber, Lname + ', ' + Fname AS FullName
FROM HumanTable
WHERE PlanetNumber = #ARGUMENTS.PlanetNumber#
ORDER BY Lname ASC;
</cfquery>
<!--- Convert results to array --->
<cfloop index="i" from="1" to="#HumanData.RecordCount#">
<cfset result[i][1]=HumanData.HumanID[i]>
<cfset result[i][2]=HumanData.Fullname[i]>
</cfloop>
<!--- And return it --->
<cfreturn result>
</cffunction>
</cfcomponent>
********************* CFM page
<cfform action="EmailThisHuman.cfm" method="POST">
<input type="hidden" name="SendTo" value="THIS Human THIS Planet">
<tr>
<td height="40" align="left" valign="middle" bgcolor="#FFFFFF"> </td>
<td height="40" align="left" valign="middle" bgcolor="#FFFFFF">
<span class="eleven_pt_bold_blue_ariel">Email THIS Human THIS Planet</span>
<img src="transparent.gif" width="15" height="1" alt="spacer" />
<cfselect name="getPlanets"
message="------ Select Planet ------"
bind="cfc:getHumansThisPlanet.getPlanets()"
size="1"
onChange="document.getElementById('getHumans').style.visibility='visible'"
bindonload="true" />
<img src="transparent.gif" width="15" height="1" alt="spacer" />
<cfselect name="getHumans"
bind="cfc:getHumansThisPlanet.getHumans({FullName})"
message="----- Select Human -----"
style="visibility:hidden"
id="getHumans"
onChange="document.getElementById('HumanSubmitButton').style.visibility='visible'" />
<img src="transparent.gif" width="15" height="1" alt="spacer" />
<input type="submit" name="HumanSubmitButton" id="HumanSubmitButton" value="Submit" style="visibility:hidden" />
</td>
<td height="40" align="left" valign="middle" bgcolor="#FFFFFF"> </td>
</tr>
</cfform>Thanks to all of you looking at this...
The queries do run. When I did the "test" from BKBK (see above - planetTest.cfm) this test page does pull the fields from the database.
I just tried BKBK's new code and I'm still getting the same result - a blank dropdown.
I do have de-bugging on and it's not throwing an error. The cfm page displays correctly - but the first dropdown is still empty.
For a fresh outlook... The following is the current code as per BKBK's latest suggestions... which is still not populating the select.
(The following is the original code -- "teacher" replaces "human" and "school" replaces "planet". I changed the field names in the original post in just trying to gain an understanding on how all this works instead of someone 'fixing my code' - I want to understand the whole process since this is my first try at building a cfc page. It was starting to get confusing to me to reword everything to run on the server.)
Thanks again, y'all...
- e
**************cfc
<cfcomponent output="false">
<cfset THIS.dsn="#application.dsn#">
<!--- Get array of Schools --->
<cffunction name="getSchools" access="remote" returnType="array">
<!--- Define variables --->
<cfset var data="">
<cfset var result=ArrayNew(2)>
<cfset var i=0>
<!--- Get Schools --->
<CFQUERY NAME="SchoolData" DATASOURCE="#THIS.dsn#">
SELECT DISTINCT
schoolNumber, SchoolName
FROM
teacher_logon
WHERE AdmnLevel = 'tchr' AND SchoolYear = '2010-2011' AND ParticipationLevel = 'active'
ORDER BY SchoolName ASC;
</cfquery>
<!--- Convert results to array --->
<cfset result[1][1]="">
<cfset result[1][2]="------ Select School ------">
<cfloop query="SchoolData">
<cfset result[currentrow+1][1]=schoolNumber>
<cfset result[currentrow+1][2]=SchoolName>
</cfloop>
<!--- And return it --->
<cfreturn result>
</cffunction>
<!--- Get Teachers by School --->
<cffunction name="getTeachers" access="remote" returnType="array">
<cfargument name="schoolNumber" type="numeric" required="true">
<!--- Define variables --->
<cfset var data="">
<cfset var result=ArrayNew(2)>
<cfset var i=0>
<!--- Get data --->
<cfquery name="TeacherData" datasource="#THIS.dsn#">
SELECT adminID, schoolNumber, Lname + ', ' + Fname AS FullName
FROM teacher_logon
WHERE schoolNumber = #ARGUMENTS.schoolNumber#
ORDER BY Lname ASC;
</cfquery>
<!--- Convert results to array --->
<cfset result[1][1]="">
<cfset result[1][2]="------ Select Teacher ------">
<cfloop query="TeacherData">
<cfset result[currentrow][1]=adminID>
<cfset result[currentrow][2]=Fullname>
</cfloop>
<!--- And return it --->
<cfreturn result>
</cffunction>
</cfcomponent>
*****************cfm
<cfform action="EmailTeacherThisSchool.cfm" method="POST">
<input type="hidden" name="SendTo" value="THIS Teacher THIS School">
<tr>
<td height="40" align="left" valign="middle" bgcolor="#FFFFFF"> </td>
<td height="40" align="left" valign="middle" bgcolor="#FFFFFF">
<span class="eleven_pt_bold_blue_ariel">Email THIS Teacher THIS School</span>
<img src="transparent.gif" width="15" height="1" alt="spacer" />
<cfselect name="School"
bind="cfc:getTeachersThisSchool.getSchools()"
size="1"
onChange="document.getElementById('Teacher').style.visibility='visible'"
bindonload="true" />
<img src="transparent.gif" width="15" height="1" alt="spacer" />
<cfselect name="Teacher"
bind="cfc:getTeachersThisSchool({School})"
style="visibility:hidden"
id="Teacher"
onChange="document.getElementById('TeacherSubmitButton').style.visibility='visible'" />
<img src="transparent.gif" width="15" height="1" alt="spacer" />
<input type="submit" name="TeacherSubmitButton" id="TeacherSubmitButton" value="Submit" style="visibility:hidden" />
</td>
<td height="40" align="left" valign="middle" bgcolor="#FFFFFF"> </td>
</tr>
</cfform> -
I have a very simple page that contains a one cell one column
table with no graphics (I am just developing the code for a project
at this point. I have a cfinvoke statement passing a
cfinvokeargument. Below is my code:
<table width="500" border="0" align="center">
<tr>
<td>
<cfinvoke component="cfcs.cmsContentForms"
method="displayContent" returnvariable="displayContent">
<cfinvokeargument name="contentID" value="1"/>
</cfinvoke>
</td>
</tr>
</table>
It was running fine and then just today it began to kick up
this error:
Unable to complete CFML to Java translation.
Error information unsupported statement: class
coldfusion.compiler.ASTfunctionDefinition
The error occurred in D:\www\CMS\contentDisplay.cfm: line 5
3 : <td>
4 : <cfinvoke component="cfcs.cmsContentForms"
method="displayContent" returnvariable="displayContent">
5 : <cfinvokeargument name="contentID" value="1"/>
6 : </cfinvoke>
7 : </td>
Any one have any ideas at all what the heck this means. I
can't find anything online about it and as far as I can tell my
code is good.
Thanks,
JasonThanks,
Tried both of those and got the same error:
Error information unsupported statement: class
coldfusion.compiler.ASTfunctionDefinition
The error occurred in D:\www\CMS\contentDisplay.cfm: line 4
2 : <tr>
3 : <td>
4 : <cfset componentObj =
createObject("component","cfcs.cmsContentForms")>
5 : <cfset displayContent =
componentObj.displayContent(1)>
6 : </td>
I had it working at one point so I may just have to start
again at square one and re-develop it until I break it again to
know what I did (or until it works and then wonder what the heck I
did the first time).
Has any one else ever run into this error? It is very
unhelpful as far as identifying the source of the problem! -
Can anyone point out a solution this error? Thank you in
advance...the BossEID is not blank...
The parameter CCFBOSSEID to function update is required but
was not passed in.
The error occurred in
C:\Inetpub\wwwroot\Scorecard33\admin\ccf\bridge\act_csv.import.cfm:
line 82
Called from
C:\Inetpub\wwwroot\Scorecard33\parsed\bridge.csv.cfm: line 30
Called from
C:\Inetpub\wwwroot\Scorecard33\fusebox5\Application.cfc: line 228
Called from
C:\Inetpub\wwwroot\Scorecard33\fusebox5\Application.cfc: line 218
Called from
C:\Inetpub\wwwroot\Scorecard33\fusebox5\fusebox5.cfm: line 57
Called from C:\Inetpub\wwwroot\Scorecard33\index.cfm: line 3
80 : <cfset MyCSV.update(EID, ccfLevel, CCFRole,
CCFTeamID,CCFlocationID, status,
81 : CSGID, SalesRep_id, Peoplesoftid, AvayaID,
82 : first_name, mi, last_name, hiredate, CCFBossEID)>
83 : <cfelse>
84 : <li>Adding...</li>quote:
Originally posted by:
emmim44
They said leave it null or blank... depends on db ...
Also, even I set a default value for status, how come
'Work_status' is not being updated with the default value = 'FTE'
<cfargument name="status" type="string" required="false"
default="FTE">
<cfif arguments.status NEQ "">
Work_status = <cfqueryparam cfsqltype="CF_SQL_CHAR"
value="#arguments.status#">,
<cfelse>
Work_status = '#arguments.status#',
</cfif>
Kronin555's earlier reply explains it. -
Asynchronous scenario, JDBC and proper error handlig - proces design?
Hi All
I've succesfully created async scenario, generally consisted of:
SOAP -> IP (ccBPM) -> JDBC
Everything works fine except one aspect - whenever there is error in JDBC adapter, nothing happens. Just server logs notify about exception, but whole process in SXMB_MONI looks fine.
What is correct approach for such scenario? Best thing (I suppose) would be possibility to resend message in case of receiver error. Later on this scenario will contain many receivers (different adapters maybe - some of them JDBC), so best option would be resending only failed branches of process. But those are only my wishful thoughts
What would you suggest in such case?
Best regards
TIA
Maciej Gottfriedyou can opt to automatically reprocess the message;
1. /people/sap.india5/blog/2006/01/03/xi-asynchronous-message-processing-understanding-xi-queues-part-i
2. in the adapter level modify the retries - /people/shabarish.vijayakumar/blog/2010/03/31/did-you-know--delivery-attempts-customizable-per-communication-channel -
hello experts
I am sending a message WS2RFC and recieve an error message that return from the RFC.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Date '03042008' has a wrong format at field DATUM: Unparseable date: "03042008"</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
any ideas what it is and how to solve it?Hi,
Looks like you have passed data in wrong format to RFC input parameter.
Your format: DDMMYYYY (03042008)
Expected: YYYYMMDD
I would use a graphical mapping function "DataTrans" to convert date format from DDMMYYYY to YYYYMMDD.
Regards,
Jakub -
Proc flow completetes without error although proc ends in an warning-end
in my process flow i modelled 3 endings: ok, waring, error
(external process to unix-script where i simulated with
exit 0 == succsessful
exit 1 == warning
exit 2 == error
with process activity: Use Return as Status)
my process flow ends everytime sucessfully in the runtime audit browser,
but when i start the flow with the wb_rt_api_exec.run_task api
i get the right error code in dbms_output:
Stage 4: Executing Task
l_audit_result=2 (WARNING)
when I'm exiting the shell script with exit 2
so what i must do to raise the error code as global error code of the process flow?I believe that OWB might use
ok=1
warning=2
error=3.
Not expected for someone who writes C or shell scripts, but this might be the cause. Try raising 1/2/3 in stead of 0/1/2.
Good luck, Erik Ykema
I cannot find wb_rt_api_exec.run_task in the documentation. Why do you use it?
(see wb_rt_api_exec.run_task
Maybe you are looking for
-
Java threads and WinLogon processes taking CPU!
We are seeing a strange problem. We have a multi-threaded java application that is deployed on a Microsoft Windows 2000 server (SP4) with Citrix Metaframe XP (Feature release 2). When this application starts, we start to see multiple WINLOGON.EXE pro
-
I can't believe it! Such a beautiful piece of machinery, this dual quad core 3 gz Mac Pro 8800GT. And my gosh, what elegant interfaces and storage organization. And the speed? Well, let me tell YOU, it is fast. Makes my old Dell workstation 470 raid
-
Skype for Business Android client (feature request)
Hi, I assume that the Mobile version of Skype for Business client is due out soon to replace Lync 2013 client, one thing i really wish would be added is the ability to send files to mobile clients. Surely this isnt a big technical problem as the Win
-
Using a Webservice as a Report Datasource
Hi, I'm hoping to use Crystal Reports VS 2005 to create reports that will pull there data in xml format from a webservice. I would like to deploy the reports to Business Objects Enterprise XI R2 SP2 and run them via BOE SDK calls. From what I've read
-
Error while instantiating...help!!!!
IAM VERY NEW TO JAVA ....PLZ TELL ME HOW TO ACESS THE STRING DEFINED IN AN ANOTHER CLASS...THNX IN ADVANCE ..THE FOLLOWING ERROR CAME WHEN I TRIED... C:\j2sdk1.4.2_08\bin>javac test3.java test3.java:9: 'class' or 'interface' expected test1 sample =ne