tracker issue : CF-4126640

select a category, or use search below
(searches all categories and all time range)
Title:

Creating an missing Java object can not be handled with try/catch

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Harry Klein / Harry Klein (Harry Klein)

Created: 03/09/2016

Components: Language, Java Integration

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Linux All

Vote Count: 0

If I call this method e.g. with the argument class="org.apache.lucene.facet.FacetField"

<cffunction name="isInClassPath">
	<cfargument name="class">
	<cftry>
		<cfset createObject("java", "#arguments.class#")>
		<cfreturn "ok">
		<cfcatch>
			<cfreturn cfcatch.detail>
		</cfcatch>
	</cftry>
</cffunction>

the request crashes, the screen is white and this exception is logged:\\\\\\\]''p[]'[ouiiiiiiiiiiiiiii

java.lang.VerifyError: Cannot inherit from final class
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:221)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at coldfusion.runtime.java.JavaProxyFactory.getProxy(JavaProxyFactory.java:121)
	at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:65)
	at coldfusion.runtime.CFPage.createObjectProxy(CFPage.java:6346)
	at coldfusion.runtime.CFPage.CreateObject(CFPage.java:6309)
	at coldfusion.runtime.CFPage.CreateObject(CFPage.java:6243)
	at coldfusion.runtime.CFPage.CreateObject(CFPage.java:6218)
	at coldfusion.runtime.CFPage.CreateObject(CFPage.java:6165)
	at cfsettings_save2ecfm1987154011$funcISINCLASSPATH.runFunction(/home/wwwroot/install/settings_save.cfm:34)

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126640

External Customer Info:
External Company: CONTENS
External Customer Name: Harry Klein
External Customer Email: KLEIN@CONTENS.DE
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Status newValue: Withdrawn oldValue: ToTrack oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 10:30:44.0 action: updated fieldName: Date Closed newValue: 2015-09-02 03:30:44.0 oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 10:30:44.0 action: updated fieldName: Reason newValue: NotABug oldValue: PRHaveInfo oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 10:30:44.0 action: updated fieldName: Closed By newValue: hkallae oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 10:30:44.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 10:30:44.0 action: updated fieldName: Owner newValue: Blank oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 10:30:44.0 action: updated fieldName: State newValue: Open oldValue: Open oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-09-02 10:19:33.0 action: updated fieldName: Reason newValue: PRHaveInfo oldValue: PRNeedInfo oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-09-02 10:19:33.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTrack oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-09-02 10:19:33.0 action: updated fieldName: Priority newValue: 2 oldValue: 0 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 05:11:21.0 action: updated fieldName: Severity newValue: 2 oldValue: 3 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 05:11:21.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 05:11:21.0 action: updated fieldName: Status newValue: ToTrack oldValue: Unverified oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 05:11:21.0
Comment by CFwatson U.
3650 | March 09, 2016 04:22:48 AM GMT
Added By:hkallae Note Added: Cool, will close this as Not A Bug Date Added :2015-09-02 10:30:45.0 Added By: PreRelease User User Name:Harry Klein Note Added: Seems like a temporary error, I could not reproduce it today - strange Date Added :2015-09-02 10:19:32.0 Added By:hkallae Note Added: Tried the same in Alpha build, I don't see this error coming. Can anyone confirm, that they are also seeing this exception? Date Added :2015-09-02 05:11:23.0 Added By: PreRelease User User Name:Harry Klein Note Added: Entered Bug. Date Added :2015-08-27 13:02:17.0
Comment by CFwatson U.
3651 | March 09, 2016 04:22:49 AM GMT