Our beta system wasn't having the same issues, so I decided to look at what might be different in the two environments. I found that I was still on 8.0.0 (doh!). So I went to http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403277&sliceId=1 and upgraded.
Object Instantiation Exception
An exception occurred when instantiating a Java object.
The class must not be an interface or an abstract class. Error: ''.
The error occurred in C:\websites\coldspring\beans\AbstractBeanFactory.cfc: line 253
That worked right? Wrong! Though it was good for me to get up to speed with the proper version, it did nothing in getting me back to productivity. I browsed some more on some blogs with pieces of the error message and came across a blog that seemed to think this error happend when some nulls were being thrown around when it expected actual values. I looked at this line in the loadFrameworkProperties method in Coldspring/beans/AbstractBeanFactory.cfc:
... which caused me to look in the initial code or the AbstractBeanFactory.cfc file here:
<cfset local.fileStream = CreateObject('java', 'java.io.FileInputStream').init(arguments.propertiesFile) />
<!--- ColdSpring Framework Properties --->So I looked for the .properties file in the /coldspring directory and found nodda. I plugged an empty file into the coldspring directory by the name of frameworkProperties.properties and I was back in business.
<cfset variables.instanceData.frameworkPropertiesFile
= "/coldspring/frameworkProperties.properties" />
<cfset variables.instanceData.frameworkProperties
= loadFrameworkProperties(ExpandPath(variables.instanceData.frameworkPropertiesFile)) />
Hope this helps.
Blessings...
3 comments:
I had this happen too.
Google brought me for the fix. Thanks!
Do you know what frameworkProperties.properties is used for and why it is required now?
I cant find any info on it on the Coldspring site.
Not a clue. I only did enough sleuthing to get to the source of the problem. I just needed to get that resolved so I could continue with another portion of development. Glad the fix helped. Blessings to you.
Terry, awesome! Thanks. You set me straight.
Post a Comment