CFOBJECT/class accessing issues
Hello,
- Recently I have upgraded from CFMX 7.0 to CF 9.0 and having problems or issues accessing a class file output where I am getting a "blank"
value. It is same code which is working with CF 7.0. I have registered the class file in CF 9.0 and re-started. - In the java class, I am connecting to Cognos to get the data/report. And the report is returned as a string value.
- The code MyReportView.getDetails(sItemNumber); is returning a blank value, but it is still working with CF 7.0
- Have tried running the class/method using the command prompt and getting the correct output on the 64 bit machine with CF 9.0
- Any suggestions related to CF 9.0 or Cognos or anything related to CBOBJECT changes in CF 9.0 would be really helpful.
Here is my code
<cftry>
<cfobject action=create type=java class="RList" name=MyReportView>
<cfscript>
myRpt = MyReportView.getDetails(sItemNumber);
</cfscript>
<cfoutput>#myRpt#</cfoutput>
<cfcatch type = "any">
<cfset pErrorDetail = CFCATCH.Detail>
<cfset pErrorMessage = CFCATCH.Message>
<cfoutput>#pErrorDetail# , #pErrorMessage#</cfoutput>
</cfcatch>
</cftry>
Other details
Java Virtual Machine Path : C:/ColdFusion9/runtime/jre
CF 9.0/64 bit
Cognos 8.3 sp5
Window 2008/64 bit
Thanks in advance.
