Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java error

Status
Not open for further replies.

olmos

Technical User
Oct 25, 2000
135
US
I'm new to Java. Can anyone tell me what this
means ? I am running a coldfusion tag CFX_sleep which
uses Java and I keep on getting this error.


Error: Unhandled System exception ! java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader). Java exception occurred in attempt to construct object.

Thanks ,
Olmos
 
This is the code that I am using in coldfusion that caused the error.

<cfset thread = CreateObject("java", "java.lang.Thread")>
About to sleep for 5 seconds...<cfflush>
<cfset thread.sleep(5000)>


olmos.

 
Should it be
Code:
<cfset thread = CreateObject("java", "java.lang.Thread")>
<cfset thread = thread.currentThread()>
About to sleep for 5 seconds...<cfflush>
<cfset thread.sleep(5000)>


Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Perhaps you should try the coldfusion forum : forum232

--------------------------------------------------
Free Database Connection Pooling Software
 
Oh wait ... you did !!! Please do not crosspost across forums !!!

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top