[JBoss JIRA] (WFLY-10381) AttributeConverter injection fails with EclipseLink if deploy-on-startup = true
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-10381?page=com.atlassian.jira.plugin... ]
Scott Marlow commented on WFLY-10381:
-------------------------------------
Would be nice to fix both issues together
> AttributeConverter injection fails with EclipseLink if deploy-on-startup = true
> -------------------------------------------------------------------------------
>
> Key: WFLY-10381
> URL: https://issues.jboss.org/browse/WFLY-10381
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 12.0.0.Final
> Reporter: Rich DiCroce
> Assignee: Scott Marlow
>
> As of 2.7, EclipseLink implements JPA 2.2 and therefore supports injection into AttributeConverters. Injection fails silently if the eclipselink.deploy-on-startup PU property is set to true, because the BeanManager is not available yet when EclipseLink tries to instantiate the AttributeConverter.
> Workaround: don't set the deploy-on-startup property.
> It would be nice if this could be made to work, but I'm guessing it will be a chicken/egg problem of dependencies between CDI and JPA. So if it can't be made to work, it would be good to at least detect that the PU property has been set, and warn about it in the log.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-10381) AttributeConverter injection fails with EclipseLink if deploy-on-startup = true
by Rich DiCroce (JIRA)
Rich DiCroce created WFLY-10381:
-----------------------------------
Summary: AttributeConverter injection fails with EclipseLink if deploy-on-startup = true
Key: WFLY-10381
URL: https://issues.jboss.org/browse/WFLY-10381
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 12.0.0.Final
Reporter: Rich DiCroce
Assignee: Scott Marlow
As of 2.7, EclipseLink implements JPA 2.2 and therefore supports injection into AttributeConverters. Injection fails silently if the eclipselink.deploy-on-startup PU property is set to true, because the BeanManager is not available yet when EclipseLink tries to instantiate the AttributeConverter.
Workaround: don't set the deploy-on-startup property.
It would be nice if this could be made to work, but I'm guessing it will be a chicken/egg problem of dependencies between CDI and JPA. So if it can't be made to work, it would be good to at least detect that the PU property has been set, and warn about it in the log.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (DROOLS-2548) java.lang.IllegalStateException: Unknown PartType: dialect
by chandra vudumula (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2548?page=com.atlassian.jira.plugi... ]
chandra vudumula commented on DROOLS-2548:
------------------------------------------
getting the issue for salience as well, i am using workbench 7.6.0
org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer.toKObject Unable to index 'default://master@Repo/rules/src/main/resources/rules/*****.template'.
java.lang.IllegalStateException: Unknown PartType: salience
> java.lang.IllegalStateException: Unknown PartType: dialect
> ----------------------------------------------------------
>
> Key: DROOLS-2548
> URL: https://issues.jboss.org/browse/DROOLS-2548
> Project: Drools
> Issue Type: Bug
> Reporter: chandra vudumula
> Assignee: Toni Rikkola
>
> org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer.toKObject Unable to index 'default://master@Repo/rules/src/main/resources/rules/*****.template'.
> java.lang.IllegalStateException: Unknown PartType: dialect
> at org.kie.workbench.common.services.refactoring.service.PartType.getPartTypeFromAttribueDescrName(PartType.java:164)
> at org.drools.workbench.screens.guided.template.server.indexing.GuidedRuleTemplateIndexVisitor.visitRuleAttribute(GuidedRuleTemplateIndexVisitor.java:104)
> at org.drools.workbench.screens.guided.template.server.indexing.GuidedRuleTemplateIndexVisitor.visit(GuidedRuleTemplateIndexVisitor.java:75)
> at org.drools.workbench.screens.guided.template.server.indexing.GuidedRuleTemplateIndexVisitor.visitRuleModel(GuidedRuleTemplateIndexVisitor.java:194)
> at org.drools.workbench.screens.guided.template.server.indexing.GuidedRuleTemplateIndexVisitor.visit(GuidedRuleTemplateIndexVisitor.java:73)
> at org.drools.workbench.screens.guided.template.server.indexing.GuidedRuleTemplateIndexVisitor.visit(GuidedRuleTemplateIndexVisitor.java:67)
> at org.drools.workbench.screens.guided.template.server.indexing.GuidedRuleTemplateFileIndexer.fillIndexBuilder(GuidedRuleTemplateFileIndexer.java:55)
> at org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer.toKObject(AbstractFileIndexer.java:78)
> at org.drools.workbench.screens.guided.template.server.indexing.GuidedRuleTemplateFileIndexer$Proxy$_$$_WeldClientProxy.toKObject(Unknown Source)
> at org.uberfire.ext.metadata.io.BatchIndex$3.visitFile(BatchIndex.java:178)
> at org.uberfire.ext.metadata.io.BatchIndex$3.visitFile(BatchIndex.java:144)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:71)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
> at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:48)
> at org.uberfire.java.nio.file.Files.walkFileTree(Files.java:1031)
> at org.uberfire.java.nio.file.Files.walkFileTree(Files.java:1052)
> at org.uberfire.ext.metadata.io.BatchIndex.run(BatchIndex.java:142)
> at org.uberfire.ext.metadata.io.BatchIndex.run(BatchIndex.java:127)
> at org.uberfire.ext.metadata.io.BatchIndex$1.run(BatchIndex.java:98)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months