Exception

前天在部署项目的时候,在J9中运行发生了

 

Exception in thread "main" java.lang.VerifyError: java.lang.SecurityException: java.beans.BeanInfo - protected system package 'java.beans'
	at java.lang.Class.verify(Unknown Source)
	at java.lang.Class.initialize(Unknown Source)
	at org.apache.log4j.PropertyConfigurator.parseAppender(Unknown Source) 
	at org.apache.log4j.PropertyConfigurator.parseCategory(Unknown Source) 
	at org.apache.log4j.PropertyConfigurator.configureRootCategory(Unknown Source)
	at org.apache.log4j.PropertyConfigurator.doConfigure(Unknown Source) 
	at org.apache.log4j.PropertyConfigurator.doConfigure(Unknown Source) 	
	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(Unknown Source)
	at org.apache.log4j.LogManager.<clinit>(Unknown Source) 	
	at java.lang.Class.initializeImpl(Native Method) 	
	at java.lang.Class.initialize(Unknown Source) 
	at org.apache.log4j.Logger.getRootLogger(Unknown Source) 
 

当时百思不得其解,后来将所有的扩展包全部放在J9的ext目录中,运行,终于Ok了。

------记于 2012-03-14

 

昨天发现SWT的display.asyncExec(Runnable);的 Runnable 一直没有运行,我猜测display.asyncExec()一次只能运行一个线程,因为我有个时钟线程一直在运行,所以导致了其后的线程被阻塞了;解决方法:在Java线程中调用SWT线程,Java线程一直在不停的运行,SWT线程只在需要的时候运行。

------记于 2012-03-14

 

 

 

你可能感兴趣的:(exception)