CutterBi,
Excuse me, the problem was lack of attention. The path was wrong.
It worked perfectly now, and I noticed that not all the original files on Aaron Conran run directly in browser.
When you run the link http://localhost/cfdirect/servicebus/Api.cfm the return of the browser:
Code:
Ext.ns('Ext.ss');Ext.ss.APIDesc = {"url":"servicebus\/Router.cfm","namespace":"Ext.ss","type":"remoting","actions":{"echo":[{"len":1,"name":"send"}],"gridExample":[{"len":1,"name":"addGame"},{"len":2,"name":"updateGame"},{"len":1,"name":"deleteGame"},{"len":4,"name":"getGames"}]}};
When you run the link http://localhost/cfdirect/servicebus/Direct.cfc, I'm redirected to the CFCExplorer Coldfusion Application Server.
And when running http://localhost/cfdirect/servicebus/Router.cfm link, I get the following message:
| Error Occurred While Processing Request |
|
|
|
| The error occurred in C:\wamp\www\cfdirect\servicebus\Direct.cfc: line 10 |
| 8 : var emptyByteArray = createObject("java", "java.io.ByteArrayOutputStream").init().toByteArray();9 : var byteClass = createObject("java","java.lang.Byte").TYPE;10 : var byteArray = createObject("java","java.lang.reflect.Array").newInstance(byteClass, size);11 : GetPageContext().getRequest().getInputStream().readLine(byteArray, 0, size);12 : createObject('java', 'java.lang.System').out.println("{GetJSONRequest} ByteArray.ToString=" &ToString( byteArray ) ); |
|
| Resources: |
| Browser |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11 |
| Remote Address |
127.0.0.1 |
| Referrer |
http://localhost/cfdirect/servicebus/ |
| Date/Time |
02-Jul-12 08:30 PM |
|
| Stack Trace |
at cfDirect2ecfc1912446458$funcGETPOSTBODY.runFunction(C:\wamp\www\cfdirect\servicebus\Direct.cfc:10) at cfRouter2ecfm1678883259.runPage(C:\wamp\www\cfdirect\servicebus\Router.cfm:33)
java.lang.NegativeArraySizeException at java.lang.reflect.Array.newArray(Native Method) |
|
My development environment is as follows:
- 2.40GHz Core I3
- 4GB DDR3
- 1 TB SATA HD
- Windows 7 64 Bit
- Coldfusion 9 64 Bits
- Apache 2.2.21
Does it have any problem in this environment or Router.cfm can not really be directly accessed?