访问组的扩展部分出错

image

请问一下,这个错误是什么原因?我创建的扩展的实体如下:
image

后面有各个属性的 getter 和 setter 吗?

注意下这个错误信息:
image
extGroupSupervisor的setter/getter方法,注意大小写,这块好像卡的严。 比方说属性abcDef的方法必须是setAbcDef 这样。

image
写了,检查了一下没有问题呀:

看上去没问题,你运行一下试试。

错误如下:
image
image

有这个错:
image
你看看这个帖子,是否有帮助:

我试了上面的方法,还是不行,这个错误主要是由于我扩展了访问组和用户两个模块产生的,而这两个模块在我自己的project里一点问题都没有,但将扩展的实体及界面文件放到别的project里,并将相关class写到persistence文件就报这个错误,目前换成默认的数据库,还是报错:

9月 30, 2019 2:47:46 下午 org.apache.catalina.loader.WebappClassLoaderBase checkStateForResourceLoading
信息: Illegal access: this web application instance has been stopped already. Could not load [com.haulmont.cuba.core.sys.persistence.HsqlDbTypeConverter]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.haulmont.cuba.core.sys.persistence.HsqlDbTypeConverter]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
	at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1363)
	at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1351)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1211)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1173)
	at com.haulmont.bali.util.ReflectionHelper.loadClass(ReflectionHelper.java:61)
	at com.haulmont.cuba.core.sys.persistence.DbmsSpecificFactory.create(DbmsSpecificFactory.java:76)
	at com.haulmont.cuba.core.sys.persistence.DbmsSpecificFactory.create(DbmsSpecificFactory.java:66)
	at com.haulmont.cuba.core.sys.persistence.DbmsSpecificFactory.getDbTypeConverter(DbmsSpecificFactory.java:54)
	at com.haulmont.cuba.core.sys.PersistenceImpl.getDbTypeConverter(PersistenceImpl.java:96)
	at com.haulmont.cuba.core.app.ServerInfo.updateCurrentServer(ServerInfo.java:170)
	at com.haulmont.cuba.core.app.ServerInfo$1.run(ServerInfo.java:130)
	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
	at java.base/java.util.TimerThread.run(Timer.java:506)

9月 30, 2019 2:47:46 下午 org.apache.catalina.loader.WebappClassLoaderBase checkStateForResourceLoading
信息: Illegal access: this web application instance has been stopped already. Could not load [com.haulmont.cuba.core.sys.persistence.HsqlDbTypeConverter]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.haulmont.cuba.core.sys.persistence.HsqlDbTypeConverter]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
	at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1363)
	at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1351)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1211)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1173)
	at com.haulmont.bali.util.ReflectionHelper.loadClass(ReflectionHelper.java:61)
	at com.haulmont.cuba.core.sys.persistence.DbmsSpecificFactory.create(DbmsSpecificFactory.java:80)
	at com.haulmont.cuba.core.sys.persistence.DbmsSpecificFactory.create(DbmsSpecificFactory.java:66)
	at com.haulmont.cuba.core.sys.persistence.DbmsSpecificFactory.getDbTypeConverter(DbmsSpecificFactory.java:54)
	at com.haulmont.cuba.core.sys.PersistenceImpl.getDbTypeConverter(PersistenceImpl.java:96)
	at com.haulmont.cuba.core.app.ServerInfo.updateCurrentServer(ServerInfo.java:170)
	at com.haulmont.cuba.core.app.ServerInfo$1.run(ServerInfo.java:130)
	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
	at java.base/java.util.TimerThread.run(Timer.java:506)

你需要分析一下错误原因,也许虽然出错,但是错误类型不一样了。
另外,直接将实体文件拷贝到别的项目,需要修改package、@Entity 注解名、@Table 注解的表名、persistence.xml,如果有视图,还要修改views.xml。界面拷贝需要修改xml 中数据组件用到的实体名、视图名,jpql 语句,界面控制器的@UiController注解和包名。