Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all 6243 articles
Browse latest View live

ColdFusion 11 installer stalling on OS X 10.10.1

$
0
0

I'm trying to install ColdFusion 11 on a fresh install of OS X 10.10.1 with Apache. The installer gets to 100% with the message

 

Installing... Install Merge Module(Build Time): CFSolr_osx....

CF11Installer.png

It then just sits there doing nothing. Looking at Force Quit I see the following

force-quit.png

With the ColdFusion Installer showing the error at the top and the 2 java windows the installer opened called LAX.

 

I can see the installation log in the ColdFusion 11 directory and the last entry is this

 

Install Merge Module:     Z:\installers\CFSolr\installers\mergemodule\/CFSolr_osx.iam.zip

                          Status: SUCCESSFUL

                          Additional Notes: NOTE - Installing: SubInstaller1.zip

 

Not that I chose not to install the Solr components in the installer.

 

Any suggestions would be great as it's driving me mad.

 

Thanks


Unexpected characters found in locale in log files

$
0
0
DateTimeSeverityThreadIDApplication Name
Jul 10, 2013  8:17 AM  Warning  jrpp-0  CFADMIN 
Unexpected characters found in locale.

 

I recently noticed that I am getting this error repeated in my application logs... about 20 times per minute....

 

any ideas what is causing this?

Broken SOAP, AxisFaults starting with CF10 Update 008

$
0
0

Anyone else experiencing this problem? It appears the cfinvoke arguments are not getting passed in the webservice call, so the remote end gets no arguments and the call fails. The code did not change a single character, and was working on CF10 Update 006, just before I updated to 8.

 

I'm calling a webservice hosted on CF7, and I am using wsversion=1 in my call. The wsdl looks fine to me. Again, was working fine on update 006.

 

Here's the exception being logged, I am clearly passing a struct called "form" into the cfinvoke as an argument, I've checked a half dozen times to make sure it's not something stupid I'm doing and that the cause of the error is not the obvious. I also use nearly the same code path to make a REST style call with cfhttp, and the form argument is being passed correctly (converted to wddx).

 

Cannot perform web service invocation sendWithdrawalEmail.The fault returned when invoking the web service operation is:<br> <pre>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.MissingArgumentException : The parameter FORM to function sendWithdrawalEmail is required but was not passed in.] faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.MissingArgumentException : The parameter FORM to function sendWithdrawalEmail is required but was not passed in.] at coldfusion.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton .java:608) at coldfusion.xml.rpc.CFComponentSkeleton.__invoke(CFComponentSkeleton.java:554) at ec.wwc.forms.wwCenters.sendWithdrawalEmail(/oracle/FUSD/www/ec/wwc/forms/wwCenters.cfc) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho... The specific sequence of files included or processed is: /media/sf_cfwebhome/forms/core/remote/index.cfc, line: 26

 

This is a J2EE deployment on Weblogic, Oracle Enterprise Linux 5 (essentially RHEL5), with Oracle HTTP Server (aka Apache) in front of it, running in a VirtualBox VM, if it matters... oh and still on Java 6, I did not update the JRE to 7 even though I read I can do that, I did not read anywhere that it was required to do so. This is a developer edition environment, unfortunately I won't be able to update production until I find a fix for this issue.

 

I think I've done enough explaining. Did I miss something critical in the upgrade?

"java.lang.ClassNotFoundException" when creating a CFC instance inside a webservice

$
0
0

This question is also up on stack overflow: http://stackoverflow.com/questions/10089962/coldfusion-web-service-failing-to-see-componen t

 

I've got a CFC that I'm going to access with ?wsdl as a SOAP webservice.

If I call the CFC directly in a browser, my results render fine:

 

    http://server/webservice/calc.cfc?method=doStuff&foo=bar

 

If I try to access it as a web service:

 

    ws = CreateObject("webservice", 'http://server/webservice/calc.cfc?wsdl');

    result = ws.doStuff('bar');

 

I get an error:

 

Cannot perform web service invocation doStuff.

The fault returned when invoking the web service operation is:
AxisFault
faultCode
:{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode
:
faultString
: coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.xml.rpc.CFCInvocationException:[java.lang.ClassNotFoundException:
com
.calculations.calc][java.lang.NullPointerException:null]]
faultActor
:
faultNode
:
faultDetail
:
   
{http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException:          [coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :    
com
.calculations.calc][java.lang.NullPointerException:null]]
    at     coldfusion
.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton.java:733)
    at coldfusion
.xml.rpc.CFComponentSkeleton.__convertOut(CFComponentSkeleton.java:359)
    at webservice
.calc.doStuff(/var/www/vhosts/server/httpdocs/webservice/calc.cfc)
at sun
.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
at sun
.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)
at sun
.r...''

 

The problem is because the doStuff function is declaring an instance of a CFC inside it:

 

remote structfunction doStuff(foo){
 
var objReturn ={};
    objReturn
.msg ='A message';

   
// do a calculation
   
var objCalc =new com.calculations.calc(foo);
    objReturn
.calc = objCalc;

 
return objReturn;
}

 

So my CFC that I'm using as a webservice has got another CFC being declared inside a function. Browsing directly to my webservice CFC works fine, but trying to call it using the CreateObject/webservice route fails, as it can't create an instance of the **com.calculations.calc** component.

 

It doesn't error, wierdly, if I comment out the objReturn.calc = objCalc line. So it seems I can create the instance, but the error isn't thrown till I assign it to my return struct.

 

Also I've found, If I refresh the page a few times, sometimes the error changes to:

AxisFault
faultCode
:{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode
:
faultString
: coldfusion.xml.rpc.CFCInvocationException:
   
[coldfusion.xml.rpc.CFCInvocationException:[java.lang.ClassNotFoundException:    
    com
.calculations.calc][coldfusion.xml.rpc.CFCInvocationException:
    returnType must     be
definedfor remote CFC functions.]]
     faultActor
:
     faultNode
:
     faultDetail
:
   
{http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException:
   
[coldfusion.xml.rpc.CFCInvocationException:[java.lang.ClassNotFoundException:
    com
.calculations.calc][coldfusion.xml.rpc.CFCInvocationException:
    returnType must be
definedfor remote CFC functions.]]
    at coldfusion
.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton.java:733)
at coldfusion
.xml.rpc.CFComponentSkeleton.__convertOut(CFComponentSkeleton.java:359)
at webservices
.TaxCalc.feed.getTaxCalc(/var/www/vhosts/server/httpdocs/webservice/calc.cfc)
at sun
.reflect.Nat...''

 

Message was edited by: PeteComcar - impvoed code formatting and added returntype update

Webservice issue on CF11 with IIS8.0, Unable to access web service with wsdl- Getting this error faultString: Error attempting to create Java skeleton for CFC web service

$
0
0

I am using CF11 on window server 2012 (IIS 8.0). I have configured my application successfully. I am able access web service perfectly without WSDL but when I am trying to access web service with wsdl it is throwing the below error MSG. I am able to access the same web service on CF8 + IIS 6.0 perfectly.

AXIS error

 

 

Sorry, something seems to have gone wrong... here are the details:

Fault - Error attempting to create Java skeleton for CFC web service.; nested exception is:

  coldfusion.xml.rpc.CFCInvocationException: [java.lang.NoClassDefFoundError : [Lasrservices/UserStatus;][java.lang.ClassNotFoundException : asrservices.UserStatus][coldfusion.runtime.CfJspPage$NoSuchTemplateException : Could not find the ColdFusion component or interface userAuthorization.]

 

 

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException

faultSubcode:

faultString: Error attempting to create Java skeleton for CFC web service.; nested exception is:

  coldfusion.xml.rpc.CFCInvocationException: [java.lang.NoClassDefFoundError : [Lasrservices/UserStatus;][java.lang.ClassNotFoundException : asrservices.UserStatus][coldfusion.runtime.CfJspPage$NoSuchTemplateException : Could not find the ColdFusion component or interface userAuthorization.]

faultActor:

faultNode:

faultDetail:

  {http://xml.apache.org/axis/}hostname:NLWSL1277

 

 

Please help me..... Thanks in advance.

Specific site crashes

$
0
0

I have a client running ColdFusion 9 on Server 2008 R2 (64-bit).  The server hosts several sites using ColdFusion.  Starting Friday, one of the sites in particular seems to crash.  It will not serve up any ColdFusion pages, but HTML is fine (I have a "test.html" page in the site's root that just serves up basic text) .  All the other ColdFusion sites on the server are fine when this one crashes.

 

There are no errors or entries on the Windows logs nor the ColdFusion logs about the cause.  Only a restart of the "ColdFusion 9 Application Server" service brings the site back, but it will often crash a very short time later (sometimes within minutes)

 

The sites IIS log does not indicate it is getting hammered from outside (i.e., does not seem to be any form of DOS attack), and several manual virus and malwarebytes scans come up clean.

 

We are at a loss, currently, and hoping someone here might have some ideas of what is going on and/or how to fix it?

 

I look forward to hearing from you.

 

-SilkBC

Coldfusion SOAP Exception Error Handling

$
0
0

Dear All Technology Expert's,

I have a query related to Coldfusion SOAP services, that is most commonly asked in all the forum's but NONE of them has got answer.

If there is NO solution so I think Adobe has to come up with some patches so developer can able to do some customization.

I like to share with you all, in all other language ( PHP, JAVA, .NET etc) this option is available and you can customize the error.

 

 

Ok let me again explain the very basic error:

 

 

SOAP Request:

 

 

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

   <soapenv:Header/>

   <soapenv:Body>

    

   </soapenv:Body>

</soapenv:Envelope>

 

 

SOAP Response:

  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <soapenv:Body>

      <soapenv:Fault>

         <faultcode>soapenv:Server.userException</faultcode>

         <faultstring>java.lang.Exception: Body not found.</faultstring>

         <detail>

            <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.lang.Exception: Body not found.

  at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)...</ns1:s tackTrace>

            <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">Coldfusion Error</ns2:hostname>

         </detail>

      </soapenv:Fault>

   </soapenv:Body>

</soapenv:Envelope>

 

 

HOW we can customize the error, in all other languages you can simple customize the error like

 

 

Other languages SOAP response:

  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <soapenv:Body>

      <soapenv:Fault>

         <faultcode>BODY_NOT_FOUND</faultcode>

         <faultstring>Body is missing in your request</faultstring>

        

      </soapenv:Fault>

   </soapenv:Body>

</soapenv:Envelope>

 

 

But the same is NOT possible in Coldfusion, right?

 

 

AS you know it is vulnerability to display exception messages in the response.

We are developing this web service to access  from other language website (PHP, .NET).

 

 

We are also planning to upgrade server the Coldfusion 11, but do you think there is any solution with latest Coldfusion version.

 

 

Please response only if you know about these issue's or solution. 

 

 

Thanks

Niyaz

Webservice API call

$
0
0

I have been trying to make Webservice call to "https://webservice.exacttarget.com/etframework.wsdl" using coldfusion server 9.0 without much success. My code recognizes WSDL and it methods but When I call method it throws following error:

 

Web service operation Describe with parameters {{DESCRIBEREQUESTS={[Lcom.et.client.ObjectDefinitionRequest;@78b0e1}}} cannot be found.

 

Please suggest.....

 



MyCode CFM file code:

 

 

Package Class: "com.et.client"

<cfsilent>
    <cffunction name="head1" access="private" returntype="Any" output="false"
                hint="Return the header needed to make an Omniture web service request as a SOAPHeaderElement object">
        <cfargument name="strUsername" type="String" required="true" />
        <cfargument name="strSecret" type="String" required="true" />
        <cfscript>
            // Unique random number
            var strNonce = createUUID();
          
            var strCreated  = DateFormat(Now(),'YYYY-mm-dd H:mm:ss');
          
            var strPassword = arguments.strSecret;
           
            // Start to build header
            var objHeader = CreateObject("java", "org.apache.axis.message.SOAPHeaderElement");
            var nodeUserToken = "";
            var nodePassword = "";
            // Construct XML structure with code
            objHeader.init("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "wsse:Security");
            objHeader.setMustUnderstand(1);
            objHeader.setActor("");
            nodeUserToken = objHeader.addChildElement("wsse:UsernameToken");
            nodeUserToken.setAttribute("wsu:Id", "User");
            nodeUserToken.addChildElement("wsse:Username").setValue(arguments.strUsername);
            nodePassword = nodeUserToken.addChildElement("wsse:Password");
            nodePassword.setAttribute("Type", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0##Passwo rdText");
            nodePassword.setValue(strPassword);
            nodeUserToken.addChildElement("wsse:Nonce").setValue(strNonce);
            nodeUserToken.addChildElement("wsu:Created").setValue(strCreated);
        </cfscript>
        <cfreturn objHeader />
    </cffunction>

    <cfscript>
        objHeader = head1("test", "emails@3");
        objService = CreateObject("webservice", "https://webservice.exacttarget.com/etframework.wsdl");
        objService.setHeader(objHeader);

                                definitionRequest =  createObject("java", "com.et.client.ObjectDefinitionRequest").init();
                                definitionRequest.setObjectType("Account");
                               
                                DefinitionRequestMsg  = StructNew();                               
                                defre = arraynew(1);
                                defre[1] =definitionRequest;
                               
                                DefinitionRequestMsg.DescribeRequests = JavaCast("com.et.client.ObjectDefinitionRequest[]",defre);
   </cfscript>

</cfsilent>
</br>
SubKey ::: <cfdump var="#sub.SubscriberKey#">
<br/>
<p>
Type ::: <cfdump var="#definitionRequest.getObjectType()#">
<br/>
<p>
DefinitionRequestMsg ::: <cfdump var="#DefinitionRequestMsg.DescribeRequests[1].ObjectType#">
<br/>

<p>
Methods ::: <cfdump var="#objService#">
<br/>
<cfscript>
objService.Describe(DefinitionRequestMsg);
resp = getSOAPResponse(objService);

 



OutPut:

 

SubKey :::   Jon_Doe 

Type :::   Account

DefinitionRequestMsg :::   Account

Methods ::: 

object of com.exacttarget.wsdl.partnerAPI.SoapBindingStub
Class Namecom.exacttarget.wsdl.partnerAPI.SoapBindingStub
Methods
MethodReturn Type
configure(com.exacttarget.wsdl.partnerAPI.ConfigureRequestMsg)com.exacttarget.wsdl.partnerAPI.ConfigureResponseMsg
create(com.exacttarget.wsdl.partnerAPI.CreateRequest)com.exacttarget.wsdl.partnerAPI.CreateResponse
delete(com.exacttarget.wsdl.partnerAPI.DeleteRequest)com.exacttarget.wsdl.partnerAPI.DeleteResponse
describe(com.exacttarget.wsdl.partnerAPI.DefinitionRequestMsg)com.exacttarget.wsdl.partnerAPI.DefinitionResponseMsg
execute(com.exacttarget.wsdl.partnerAPI.ExecuteRequest[])com.exacttarget.wsdl.partnerAPI.ExecuteResponseMsg
extract(com.exacttarget.wsdl.partnerAPI.ExtractRequest[])com.exacttarget.wsdl.partnerAPI.ExtractResponseMsg
getSystemStatus(com.exacttarget.wsdl.partnerAPI.SystemStatusRequestMsg)com.exacttarget.wsdl.partnerAPI.SystemStatusResponseMsg
perform(com.exacttarget.wsdl.partnerAPI.PerformRequestMsg)com.exacttarget.wsdl.partnerAPI.PerformResponseMsg
query(com.exacttarget.wsdl.partnerAPI.QueryRequestMsg)com.exacttarget.wsdl.partnerAPI.QueryResponseMsg
retrieve(com.exacttarget.wsdl.partnerAPI.RetrieveRequestMsg)com.exacttarget.wsdl.partnerAPI.RetrieveResponseMsg
schedule(com.exacttarget.wsdl.partnerAPI.ScheduleRequestMsg)com.exacttarget.wsdl.partnerAPI.ScheduleResponseMsg
update(com.exacttarget.wsdl.partnerAPI.UpdateRequest)com.exacttarget.wsdl.partnerAPI.UpdateResponse
versionInfo(com.exacttarget.wsdl.partnerAPI.VersionInfoRequestMsg)com.exacttarget.wsdl.partnerAPI.VersionInfoResponseMsg
Fields
FieldValue
java.lang.String ENDPOINT_ADDRESS_PROPERTYjavax.xml.rpc.service.endpoint.address
java.lang.String PASSWORD_PROPERTYjavax.xml.rpc.security.auth.password
java.lang.String SESSION_MAINTAIN_PROPERTYjavax.xml.rpc.session.maintain
java.lang.String USERNAME_PROPERTYjavax.xml.rpc.security.auth.username
Parent Class



The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.


The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request

Web service operation Describe with parameters {{DESCRIBEREQUESTS={[Lcom.et.client.ObjectDefinitionRequest;@78b0e1}}} cannot be found.

The error occurred in /Users/bgogineni/ColdFusion/wwwroot/ET/index2.cfm: line 84
82 : <br/> 83 : <cfscript>84 :  objService.Describe(DefinitionRequestMsg); 85 :  resp = getSOAPResponse(objService); 86 :

Resources: 
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9
Remote Address 127.0.0.1
Referrer 
Date/Time 13-May-10 10:27 PM
Stack Trace
at cfindex22ecfm949006999.runPage(/Users/bgogineni/ColdFusion/wwwroot/ET/index2.cfm:84)                  

coldfusion.xml.rpc.ServiceProxy$ServiceMethodNotFoundException: Web service operation Describe with parameters {{DESCRIBEREQUESTS={[Lcom.et.client.ObjectDefinitionRequest;@78b0e1}}} cannot be found. at coldfusion.xml.rpc.ServiceProxy.invokeImpl(ServiceProxy.java:256) at coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:154) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfindex22ecfm949006999.runPage(/Users/bgogineni/ColdFusion/wwwroot/ET/index2.cfm:84) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:363) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

 

 


Debugging Information
ColdFusion Server Enterprise9,0,0,251028
Template/ET/index2.cfm
Time Stamp13-May-10 10:27 PM
LocaleEnglish (US)
User AgentMozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9
Remote IP127.0.0.1
Host Namelocalhost

 

 


Execution Time

 

Total TimeAvg TimeCountTemplate
15 ms15 ms1top level/Users/bgogineni/ColdFusion/wwwroot/ET/index2.cfm
14 msSTARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
29 msTOTAL EXECUTION TIME
red = over 250 ms average execution time 

 


Exceptions

 

22:27:34.034 - Application Exception - in /Users/bgogineni/ColdFusion/wwwroot/ET/index2.cfm : line 84
    Web service operation Describe with parameters {{DESCRIBEREQUESTS={[Lcom.et.client.ObjectDefinitionRequest;@78b0e1}}} cannot be found.    


 


Thanks

-GBK

 

 




Apache POST flex2gateway never closes or times out, reaches max child processes

$
0
0

We have been trying to pass an external PCI scan, and noticed some server lockups after starting a scan.  We are scanning a couple hundred IP addresses, which all resolve to the same servers.  The scans are actively looking for vulnerabilities on the box, and one of which is flash remoting.  When we look at the apache /server-status page, it shows a ton of long running flex2gateway processes.  For instance:

 

22-44466

0/3817/3817

W4.0716384000.057.7657.76x.x.x.101WebNode2.ambassador.intPOST /flex2gateway/http HTTP/1.1

 

As you can see, this POST request has been running for 163840 seconds, or nearly two days.  Since it seems these POST requests never complete, even though the client has long since disconnected, they simply stack up until the server's max number of child processes has been reached, effectively killing our webserver.

 

When I try to restart the clustered coldfusion instances one at a time, these POST requests do not die off.

If I stop both clustered CF instances, the requests complete (or get killed).

If I reload or restart apache, the requests are gone as well.

 

strace gives me nothing useful:

[root@WebNode1 ~]# strace -p 34025

Process 34025 attached - interrupt to quit

read(185,

 

pstack gives a little more, but nothing that looks obvious to me:

[root@WebNode1 ~]# pstack -p 34025     

Usage: pstack <process-id>

[root@WebNode1 ~]# pstack 34025  

#0  0x00007fdd40444740 in __read_nocancel () from /lib64/libpthread.so.0

#1  0x00007fdd33efe2e6 in jk_tcp_socket_recvfull () from /opt/coldfusion10/config/wsconfig/1/mod_jk.so

#2  0x00007fdd33f1b68d in ajp_connection_tcp_get_message () from /opt/coldfusion10/config/wsconfig/1/mod_jk.so

#3  0x00007fdd33f1ceea in ajp_get_reply () from /opt/coldfusion10/config/wsconfig/1/mod_jk.so

#4  0x00007fdd33f20308 in ajp_service () from /opt/coldfusion10/config/wsconfig/1/mod_jk.so

#5  0x00007fdd33ef8f5d in jk_handler () from /opt/coldfusion10/config/wsconfig/1/mod_jk.so

#6  0x00007fdd41b92cd0 in ap_run_handler ()

#7  0x00007fdd41b9658e in ap_invoke_handler ()

#8  0x00007fdd41ba1c50 in ap_process_request ()

#9  0x00007fdd41b9eac8 in ?? ()

#10 0x00007fdd41b9a7d8 in ap_run_process_connection ()

#11 0x00007fdd41ba6ad7 in ?? ()

#12 0x00007fdd41ba6dea in ?? ()

#13 0x00007fdd41ba7a6c in ap_mpm_run ()

#14 0x00007fdd41b7e9b0 in main ()

 

I dont know what that tells us exactly, but I'm leaning toward the hangup between apache and tomcat. 

 

Any suggestions on where how to troubleshoot this issue?

Getting 502 errors in isapi_redirect.log (ColdFusion 11)

$
0
0

Hello,

 

We have browsed many threads on the subject of tuning CF11 (& CF10) IIS connectors (in particular ColdFusion 10 instance/Tomcat dying at predictable intervals (white screen of death) )
and we have applied the suggested changes to tune the connector.

 

workers.properties:

     worker.cfusion.max_reuse_connections=250

     worker.cfusion.connection_pool_timeout = 60

     worker.cfusion.connection_pool_size=250

 

server.xml

     <Connector port="8014" protocol="AJP/1.3" redirectPort="8447" tomcatAuthentication="false" maxThreads="250" connectionTimeout="60000" />

 

The above has fixed the issues/failures we had under load (503 errors, white screens).

But now we are getting 502 errors in the isapi_redirect.log as follows:

 

[Mon Dec 01 18:35:53.717 2014] [20632:12484] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1308): (cfusion) can't receive the response header message from tomcat, tomcat (127.0.0.1:8014) has forced a connection close for socket 1088

[Mon Dec 01 18:35:53.717 2014] [20632:12484] [error] ajp_get_reply::jk_ajp_common.c (2260): (cfusion) Tomcat is down or network problems. Part of the response has already been sent to the client

[Mon Dec 01 18:35:53.717 2014] [20632:12484] [error] ajp_service::jk_ajp_common.c (2735): (cfusion) sending request to tomcat failed (unrecoverable),  (attempt=1)

[Mon Dec 01 18:35:53.717 2014] [20632:12484] [error] HttpExtensionProc::jk_isapi_plugin.c (2612): service() failed with http error 502

 

These are popping up once every minute or so. But the site is running ok.

The log file is growing (obviously) and I would appreciate help on how to diagnose these errors (and whether these are worrying or not...)

 

Thanks.

Can multiple Virtual Directories be created in CF11?

$
0
0

I am testing the standalone version of CF11 using the internal web server. 

 

Please help me understand some things.  Since we are not using an external webserver like IIS, and we have 4 different websites to configure, in order to not change all the webpage code to point to a different level in order to be found, do I have to do this with Virtual Directories [i.e. I have copied all CF9 code (4 different websites) and just added _CF11 to the end of the main website folder names, i.e. website1_CF11 and an aliases have been created for these websites, i.e. aliases=”/alias1=E:\website1_CF11, etc…”]?  Can multiple VD be created?  How are they defined?  One is defined in the server.xml file as

<Context
            path="/"
            docBase="C:\ColdFusion10\cfusion\wwwroot"
            WorkDir="C:\ColdFusion10\cfusion\runtime\conf\Catalina\localhost\tmp"
            aliases="/VD=C:\newwebroot\VD">
</Context>

 

How would I create more than one?  Is this what I need to do to accomplish my goal?

 

 

Right now aliases are not going to work, because that would be pointless and time consuming changing all the code just so it can find all the web pages so we can test functionality and fix the breaks.  For example, I currently need to change the code to the following:

 

<cf_location url=”#URLSessionFormat(‘/webpage/’)#” addtoken=”false”>

 

To

 

<cf_location url=”#URLSessionFormat(‘/alias1/webpage/’)#” addtoken=”false”>

 

 

We are eventually going to run the wsconfig executable to connect to IIS so we can fully migrate from CF9 to CF11.  What am I missing?  I can’t imagine that Adobe would not have the same functionality with their internal web server as one would have with an external web server. 

 

Thanks in advance!

Jennifer

ColdFusion 11 Destroyed My Charts

$
0
0

Surely we can't be the only ones who are disappointed with the newest charting engine in CF11?  Yes, ZingCharts can be cool and the plethora of style options gives us total freedom to build the perfect chart.  However, that is also the root of the problem!  Since CF8, CFCHART has been adequate for our needs.  It produced good looking chart images and was just flexible enough for us to produce what we needed while staying simple enough for us to put together quickly and move on in development.  This has been true up through CF10....

 

We just installed CF11 on our test server and it has DESTROYED every chart we produce using the same code we've had in place for years.

 

Custom chart colors: gone.  Readability: hit or miss.  3D angles and depths: changed.  Proper fitting of images in pages: gone.  Legends specifically told to hide: now showing, and showing incorrectly.  Labels: FUBAR.

 

What the hell?!  Who was in charge of the backward compatibility of this charting engine?  The least that should have been done was to give us a default style similar to the old one.

 

Again, we liked the simplicity the old engine gave us.  And, while it would be cool to spend some time with the ZingChart Editor creating super awesome charts, we don't have the time to mess with the minutiae of all the little details for these charts.  But it looks like I have no choice.  So, instead of proceeding with our upgrade to CF11 we have to stop and reconfigure hundreds of CFCHART tags!

 

Here are some examples of our mangled charts that have had NO CODE CHANGES from CF10 to CF11:

 

CF10CF11
CF10_3dBar.PNGcf11_3dbar.PNG
cf10_3dpie.PNGcf11_3dpie.PNG
cf10_2dline.PNGcf11_2dline.PNG

 

 

OK, rant over.  Have to waste time fixing this bullsh*t...

coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available

$
0
0

Hello,

 

We are running ColdFusion 10. We stumbled across this error when we tried to reach our site or the CF Admin.....

 

"HTTP Status 500 - coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available."

 

This is the first time we have gotten this error. We tried googling to find a solution and did not come across one. Has anybody experienced this error before? How do you get around it? I appreciate your help and time. Thanks.

 

Best regards,

 

Chung Lee

failed to lazily initialize a collection …, could not initialize proxy - no Session

$
0
0

I have an application that i am extending to provide a REST API.  Everything works fine in the main site, but I am getting the following in the exception log when I try to hit the REST API:

 

    "Error","ajp-bio-8014-exec-3","12/02/14","12:54:06","table","failed to lazily initialize a collection of role: field, could not initialize proxy - no Session The specific sequence of files included or processed is: service.cfc'' "

    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: field, could not initialize proxy - no Session

        at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationExc eption(AbstractPersistentCollection.java:566)

        at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeed ed(AbstractPersistentCollection.java:186)

        at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersisten tCollection.java:137)

        at org.hibernate.collection.internal.PersistentBag.size(PersistentBag.java:242)

        at coldfusion.runtime.xml.ListIndexAccessor.getSize(ListIndexAccessor.java:44)

        at coldfusion.runtime.xml.ArrayHandler.serialize(ArrayHandler.java:69)

        at coldfusion.runtime.xml.CFComponentHandler.serialize(CFComponentHandler.java:106)

        at coldfusion.runtime.XMLizerUtils.serializeXML(XMLizerUtils.java:83)

        at coldfusion.rest.provider.CFObjectProvider.writeTo(CFObjectProvider.java:378)

        at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)

        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationIm pl.java:1479)

        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImp l.java:1391)

        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImp l.java:1381)

        at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)

        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)

        at coldfusion.rest.servlet.CFRestServletContainer.service(CFRestServletContainer.java:141)

        at coldfusion.rest.servlet.CFRestServletContainer.service(CFRestServletContainer.java:86)

        at coldfusion.rest.servlet.CFRestServlet.serviceUsingAlreadyInitializedContainers(CFRestServ let.java:556)

        at coldfusion.rest.servlet.CFRestServlet.invoke(CFRestServlet.java:434)

        at coldfusion.rest.servlet.RestFilter.invoke(RestFilter.java:58)

        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)

        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)

        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

        at coldfusion.rest.servlet.CFRestServlet.invoke(CFRestServlet.java:409)

        at coldfusion.rest.servlet.CFRestServlet.service(CFRestServlet.java:400)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )

        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)

        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198)

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)

        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

 

Disabling lazy loading will fix this, but results in unacceptable performance (load times go from 200ms to 22s).  I'm not sure how else to handle this.

 

I am new to REST in ColdFusion, and it seems to me that the CFC's are being handled in an unusual way.  They do not appear to be initialized (init method does not seem to run) and now it seems that ORM is not handled the same either.  Am I missing something?

 

Here is the excerpt of my code producing this error:

 

    component rest="true" restpath="item"

    {

        import model.beans.*;

       

        remote item function getitem( numeric id restargsource="Path" ) restpath="{id}" httpmethod="GET"

        {

            var item = entityLoad("item",{ id = id },true);

           

            return item;

        }

       

    }

 

And the bean:

 

    component persistent="true" table="item" output="false" extends="timestampedBean" batchsize="10" cacheuse="read-only"

    {

        /* properties */

       

        property name="id" column="id" type="numeric" ormtype="int" fieldtype="id" generator="identity";

        property name="title" column="title" type="string" ormtype="string";

        property name="description" column="description" type="string" ormtype="string";

        property name="status" column="status" type="numeric" ormtype="byte" default="0" ;

        property name="user" fieldtype="many-to-one" cfc="user" fkcolumn="userid" inversejoincolum="userid" lazy="true" cacheuse="read-only";

        property name="field" type="array" fieldtype="many-to-many" cfc="field" fkcolumn="id" linktable="items_fields" inversejoincolumn="fieldid" lazy="extra" batchsize="10" cacheuse="read-only";

    }

 

I also noticed in the stdout log that Hibernate is logging the query, but then it logs the "No session" error:

 

    Hibernate:

        select

            item0_.id as id0_0_,

            item0_.dtcreated as dtcreated0_0_,

            item0_.dtmodified as dtmodified0_0_,

            item0_.title as title0_0_,

            item0_.description as descript6_0_0_,

            item0_.status as status0_0_,

            item0_.userid as userid0_0_

        from

            item item0_

        where

            item0_.id=?

    Dec 2, 2014 15:23:00 PM Error [ajp-bio-8014-exec-3] - failed to lazily initialize a collection of role: field, could not initialize proxy - no Session The specific sequence of files included or processed is: service.cfc''

 

I should probably also add that this "item" table is part of a many-to-many relationship, so "collection of role: field" is referencing the foreign table.

Websockets flash fallback not working when secure is true

$
0
0

I am running Coldfusion 11 on  a 2008 win server box (IIS7). I have configured websockets in coldfusion using the built in server with all the defaults with the addition of my keystore for the SSL setup.

 

I am using the the secure="true" on the cfwebsocket tag.

 

<cfwebsocket name="mySocket" onMessage="defaultmsgHandler" onOpen="openHandler" onError="errorHandler" secure="true"/>

 

The rest of the websocket code is from the adobe dev connection - http://www.adobe.com/devnet/coldfusion/articles/html5-websockets-coldfusion-pt1.html

My addition is simply the secure attribute.

 

All works fine, over both SSL and Non SSL (ws / wss) exactly how I expected. The problem came when I was testing it in older browsers < IE 10 etc. The flash fallback is loading up as I can see the element in the html but there is no connection to the websocket server and no data is moved around.

 

As soon as I remove the secure = true attribute everything is fine. Flash fallback works exactly how I was expecting.

 

I have all the relevant ports open on the firewall. Flash fallback uses 1243 and it seems to connect when I trace it via wireshark but the connection from flash back to websockets doesnt initiate.

 

Is it intended to work this way? Am I missing a trick somewhere? Do I need to change something in the crossdomain.xml policies?


Where do I go to get CF 11 for download?

$
0
0

I've just renewed my ColdFusion ENT Renewal Upgrade Plan, but CANNOT determine how to "find" CF11 for download.  Have tried calling, but "Product is not Supported" was presented; tried CHAT, which provided a LINK.  Followed the link given the CHAT and was back to where I started from 45 minutes earlier.  (aka dog-chasing-its-tail).

Memory leak/overload when looping by index over a large query and updating each DB record

$
0
0

I am importing a CSV file into a temporary table and then running a select query that joins my actual database table with the temporary table, looking for any changes in the data. If changes exist, the select query is looped from 1 to #recordCount# and an update is applied to each record via cfquery. It runs very quickly (much more quickly than looping the query itself), but my memory spikes and overloads after about 1500 updates are completed. I need to be able to do upwards of 20000 at a time, without killing my system. I have tried manually setting the runtime garbage collection to trigger after X number of loops, but that doesn't seem to help. I am running CF8. See below for loop example:

 

<cfloop from="1" to="#updatedRecordsQuery.recordCount#" index="a">

<cftry>

                <cfquery datasource="#db#" name="doUpdate">

                    UPDATE

                        CI

                    SET

                        firstname = <cfqueryparam cfsqltype="cf_sql_varchar" value="#updatedRecordsQuery.firstname[a]#" />,

                        lastname = <cfqueryparam cfsqltype="cf_sql_varchar" value="#updatedRecordsQuery.lastname[a]#" />,

                        etc, for about 15 various fields

                    FROM

                        client_info CI

                    WHERE

                        CI.client_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#updatedRecordsQuery.client_id[a]#" />

                </cfquery>

          

                <cfcatch type="database">

                    <cfset local.updateErrorList = listappend(local.updateErrorList,updatedRecordsQuery.client_id[a]) />

                    <cfset local.error = true />

                </cfcatch>

           </cftry>

 

</cfloop>

Coldfusion 10 ODBC Services

$
0
0

I have a server with an installation of ColdFusion 10 however the ODBC Services did not get installed with the initial installation. Is there a simple, manual method for installing ODBC Services without uninstalling CF and then reinstalling with that option selected? I have tried running the installation over the current one but with the Configure Installer window, it has Server Configuration greyed out as it has found a current installation. It then gives an option of either EAR file or WAR file in the JEE configuration. Not sure which to choose so that's why I ask the question of a manual install.

 

Thanks in advance. This is running on a Windows Server 2008 R2 64-bit box.

 

Dave

Blank page

$
0
0

Hi everyone, every day i have to restart my server because i'm getting a blank page. Someone of you know what is causing this issue?

Coldfusion 10 ODBC Services

$
0
0

I have a server with an installation of ColdFusion 10 however the ODBC Services did not get installed with the initial installation. Is there a simple, manual method for installing ODBC Services without uninstalling CF and then reinstalling with that option selected? I have tried running the installation over the current one but with the Configure Installer window, it has Server Configuration greyed out as it has found a current installation. It then gives an option of either EAR file or WAR file in the JEE configuration. Not sure which to choose so that's why I ask the question of a manual install.

 

Thanks in advance. This is running on a Windows Server 2008 R2 64-bit box.

 

Dave

Viewing all 6243 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>