dwr报No converter found for与Ignoring request to inline on reference for:异常的解决

  在几年前,碰到过这样一个问题,在使用dwr时会报

严重: No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'


警告: Conversion error for java.util.ArrayList.
java.lang.IllegalStateException: Ignoring request to inline on reference for: Object:s2:{game=ReferenceOV(s1), id=Simple:"ff80808124bf3afc0124bf40c59a0002", name=Simple:"gfgyuyug"}
	at org.directwebremoting.dwrp.AbstractOutboundVariable.getReferenceVariable(AbstractOutboundVariable.java:148)
	at org.directwebremoting.dwrp.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:181)
	at org.directwebremoting.convert.CollectionConverter.convertOutbound(CollectionConverter.java:206)
	at org.directwebremoting.dwrp.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:192)



这样的异常,其实这与hibernate的加载机制有关,要知道dwr是将java对象转成javascript对象,所以此时,我们要将相应的转换对象的转换器换成hibernate3转换器,而不是bean转换器




你可能感兴趣的:(JavaScript,java,Hibernate,bean,DWR)