[JBoss JIRA] (WFCORE-3958) cryptic error in slave log when old version slave connects to new version of domain
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3958?page=com.atlassian.jira.plugi... ]
Brian Stansberry updated WFCORE-3958:
-------------------------------------
Priority: Major (was: Minor)
I'm bumping this to Major since besides the unhelpful logging and the propagation of an NPE, I don't like that the HC reported "[Host Controller] 10:25:20,608 INFO [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0148: Connected to master host controller at remote://127.0.0.1:9999" and then went on to try and launch a server. The HC is in an invalid state but doesn't seem to realize that.
> cryptic error in slave log when old version slave connects to new version of domain
> -----------------------------------------------------------------------------------
>
> Key: WFCORE-3958
> URL: https://issues.jboss.org/browse/WFCORE-3958
> Project: WildFly Core
> Issue Type: Bug
> Components: Management
> Reporter: Martin Simka
> Assignee: Jeff Mesnil
>
> Obviously this should fail, because profile contains configuration that slave cannot understand. But I would expect some better error message.
> {noformat}
> =========================================================================
> JBoss Bootstrap Environment
> JBOSS_HOME: /tmp/wildfly-12.0.0.Final
> JAVA: java
> JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
> =========================================================================
> 10:25:16,319 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
> 10:25:16,522 INFO [org.jboss.threads] (main) JBoss Threads version 2.3.1.Final
> 10:25:16,540 INFO [org.jboss.as.process.Host Controller.status] (main) WFLYPC0018: Starting process 'Host Controller'
> [Host Controller] 10:25:16,965 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
> [Host Controller] 10:25:17,250 INFO [org.jboss.msc] (main) JBoss MSC version 1.3.2.Final
> [Host Controller] 10:25:17,264 INFO [org.jboss.threads] (main) JBoss Threads version 2.3.1.Final
> [Host Controller] 10:25:17,353 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) starting
> [Host Controller] 10:25:18,225 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/host=msimka-t450.brq.redhat.com/core-service=management/management-interface=native-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> [Host Controller] 10:25:18,229 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> [Host Controller] 10:25:18,325 INFO [org.wildfly.security] (Controller Boot Thread) ELY00001: WildFly Elytron version 1.2.2.Final
> [Host Controller] 10:25:18,374 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.6.2.Final
> [Host Controller] 10:25:18,381 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.6.2.Final
> [Host Controller] 10:25:18,490 INFO [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting version 5.0.5.Final
> [Host Controller] 10:25:18,516 INFO [org.jboss.as.patching] (MSC service thread 1-2) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none
> [Host Controller] 10:25:18,536 WARN [org.jboss.as.domain.management.security] (MSC service thread 1-1) WFLYDM0111: Keystore /tmp/wildfly-12.0.0.Final/domain/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
> [Host Controller] 10:25:18,627 INFO [org.jboss.as.remoting] (MSC service thread 1-3) WFLYRMT0001: Listening on 127.0.0.1:19999
> [Host Controller] 10:25:20,513 ERROR [org.jboss.as.controller.management-operation] (Host Controller Service Threads - 2) WFLYCTL0013: Operation ("describe-model") failed - address: ([("profile" => "full-ha")]): java.lang.NullPointerException
> [Host Controller] at org.jboss.as.domain.controller.operations.GenericModelDescribeOperationHandler.execute(GenericModelDescribeOperationHandler.java:144)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
> [Host Controller] at org.jboss.as.controller.ReadOnlyContext.executeOperation(ReadOnlyContext.java:87)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.executeReadOnlyOperation(ModelControllerImpl.java:311)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.executeReadOnlyOperation(ModelControllerImpl.java:294)
> [Host Controller] at org.jboss.as.controller.AbstractControllerService.executeReadOnlyOperation(AbstractControllerService.java:530)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.access$1700(DomainModelControllerService.java:203)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$6.lambda$apply$0(DomainModelControllerService.java:1469)
> [Host Controller] at org.jboss.as.controller.access.InVmAccess.runInVm(InVmAccess.java:63)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$6.apply(DomainModelControllerService.java:1469)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$6.apply(DomainModelControllerService.java:1466)
> [Host Controller] at org.jboss.as.host.controller.SecurityActions$Execution$1.execute(SecurityActions.java:77)
> [Host Controller] at org.jboss.as.host.controller.SecurityActions.privilegedExecution(SecurityActions.java:47)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor.executeReadOnly(DomainModelControllerService.java:1472)
> [Host Controller] at org.jboss.as.domain.controller.operations.SyncModelOperationHandler.execute(SyncModelOperationHandler.java:150)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
> [Host Controller] at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
> [Host Controller] at org.jboss.as.controller.AbstractControllerService.internalExecute(AbstractControllerService.java:492)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.access$1100(DomainModelControllerService.java:203)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$1.lambda$apply$0(DomainModelControllerService.java:1407)
> [Host Controller] at org.jboss.as.controller.access.InVmAccess.runInVm(InVmAccess.java:63)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$1.apply(DomainModelControllerService.java:1407)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$1.apply(DomainModelControllerService.java:1404)
> [Host Controller] at org.jboss.as.host.controller.SecurityActions$Execution$1.execute(SecurityActions.java:77)
> [Host Controller] at org.jboss.as.host.controller.SecurityActions.privilegedExecution(SecurityActions.java:47)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor.execute(DomainModelControllerService.java:1410)
> [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnectionService.applyRemoteDomainModel(RemoteDomainConnectionService.java:603)
> [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnectionService.access$1200(RemoteDomainConnectionService.java:138)
> [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnectionService$3.applyDomainModel(RemoteDomainConnectionService.java:546)
> [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnection.applyDomainModel(RemoteDomainConnection.java:325)
> [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnection$RegisterSubsystemsRequest$1.execute(RemoteDomainConnection.java:468)
> [Host Controller] at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
> [Host Controller] at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
> [Host Controller] at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> [Host Controller] at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> [Host Controller] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> [Host Controller] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> [Host Controller] at java.lang.Thread.run(Thread.java:748)
> [Host Controller] at org.jboss.threads.JBossThread.run(JBossThread.java:485)
> [Host Controller]
> [Host Controller] 10:25:20,608 INFO [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0148: Connected to master host controller at remote://127.0.0.1:9999
> [Host Controller] 10:25:20,624 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0008: Failed to start server (server-one): java.lang.IllegalArgumentException
> [Host Controller] at org.jboss.dmr.ModelValue.asPropertyList(ModelValue.java:103)
> [Host Controller] at org.jboss.dmr.ModelNode.asPropertyList(ModelNode.java:529)
> [Host Controller] at org.jboss.as.controller.transform.TransformerRegistry.resolveVersions(TransformerRegistry.java:270)
> [Host Controller] at org.jboss.as.controller.transform.TransformerRegistry.resolveVersions(TransformerRegistry.java:264)
> [Host Controller] at org.jboss.as.host.controller.ServerInventoryImpl.createManagedServer(ServerInventoryImpl.java:759)
> [Host Controller] at org.jboss.as.host.controller.ServerInventoryImpl.startServer(ServerInventoryImpl.java:209)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$DelegatingServerInventory.startServer(DomainModelControllerService.java:1233)
> [Host Controller] at org.jboss.as.host.controller.operations.StartServersHandler.cleanStartServers(StartServersHandler.java:116)
> [Host Controller] at org.jboss.as.host.controller.operations.StartServersHandler.access$300(StartServersHandler.java:53)
> [Host Controller] at org.jboss.as.host.controller.operations.StartServersHandler$1.execute(StartServersHandler.java:103)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
> [Host Controller] at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.lambda$execute$0(ModelControllerImpl.java:227)
> [Host Controller] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
> [Host Controller] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:227)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.startServers(DomainModelControllerService.java:1027)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:843)
> [Host Controller] at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372)
> [Host Controller] at java.lang.Thread.run(Thread.java:748)
> [Host Controller]
> [Host Controller] 10:25:20,624 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0008: Failed to start server (server-two): java.lang.IllegalArgumentException
> [Host Controller] at org.jboss.dmr.ModelValue.asPropertyList(ModelValue.java:103)
> [Host Controller] at org.jboss.dmr.ModelNode.asPropertyList(ModelNode.java:529)
> [Host Controller] at org.jboss.as.controller.transform.TransformerRegistry.resolveVersions(TransformerRegistry.java:270)
> [Host Controller] at org.jboss.as.controller.transform.TransformerRegistry.resolveVersions(TransformerRegistry.java:264)
> [Host Controller] at org.jboss.as.host.controller.ServerInventoryImpl.createManagedServer(ServerInventoryImpl.java:759)
> [Host Controller] at org.jboss.as.host.controller.ServerInventoryImpl.startServer(ServerInventoryImpl.java:209)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$DelegatingServerInventory.startServer(DomainModelControllerService.java:1233)
> [Host Controller] at org.jboss.as.host.controller.operations.StartServersHandler.cleanStartServers(StartServersHandler.java:116)
> [Host Controller] at org.jboss.as.host.controller.operations.StartServersHandler.access$300(StartServersHandler.java:53)
> [Host Controller] at org.jboss.as.host.controller.operations.StartServersHandler$1.execute(StartServersHandler.java:103)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
> [Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
> [Host Controller] at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.lambda$execute$0(ModelControllerImpl.java:227)
> [Host Controller] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
> [Host Controller] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
> [Host Controller] at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:227)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.startServers(DomainModelControllerService.java:1027)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:843)
> [Host Controller] at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372)
> [Host Controller] at java.lang.Thread.run(Thread.java:748)
> [Host Controller]
> [Host Controller] 10:25:20,655 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) (Host Controller) started in 4044ms - Started 69 of 72 services (21 services are lazy, passive or on-demand)
> {noformat}
> This is logged in DC log:
> {noformat}
> [Host Controller] 10:27:39,125 WARN [org.jboss.as.controller.transformer.msimka-t450.brq.redhat.com] (Host Controller Service Threads - 30) WFLYCTL0032: There were problems during the transformation process for target host: 'msimka-t450.brq.redhat.com'
> [Host Controller] Problems found:
> [Host Controller] [ WFLYCTL0303: Resource [
> [Host Controller] ("profile" => "full"),
> [Host Controller] ("subsystem" => "infinispan"),
> [Host Controller] ("cache-container" => "server"),
> [Host Controller] ("local-cache" => "default"),
> [Host Controller] ("store" => "none")
> [Host Controller] ] is rejected on the target host, and will need to be ignored on the host
> [Host Controller] , WFLYCTL0303: Resource [
> [Host Controller] ("profile" => "full"),
> [Host Controller] ("subsystem" => "infinispan"),
> [Host Controller] ("cache-container" => "hibernate"),
> [Host Controller] ("local-cache" => "entity"),
> [Host Controller] ("store" => "none")
> [Host Controller] ] is rejected on the target host, and will need to be ignored on the host
> [Host Controller] , WFLYCTL0303: Resource [
> [Host Controller] ("profile" => "full"),
> [Host Controller] ("subsystem" => "infinispan"),
> [Host Controller] ("cache-container" => "hibernate"),
> [Host Controller] ("local-cache" => "local-query"),
> [Host Controller] ("store" => "none")
> [Host Controller] ] is rejected on the target host, and will need to be ignored on the host
> [Host Controller] , WFLYCTL0303: Resource [
> [Host Controller] ("profile" => "full"),
> [Host Controller] ("subsystem" => "infinispan"),
> [Host Controller] ("cache-container" => "hibernate"),
> [Host Controller] ("local-cache" => "timestamps"),
> [Host Controller] ("store" => "none")
> [Host Controller] ] is rejected on the target host, and will need to be ignored on the host
> [Host Controller] , WFLYCTL0303: Resource [
> [Host Controller] ("profile" => "full-ha"),
> [Host Controller] ("subsystem" => "infinispan"),
> [Host Controller] ("cache-container" => "server"),
> [Host Controller] ("replicated-cache" => "default"),
> [Host Controller] ("store" => "none")
> [Host Controller] ] is rejected on the target host, and will need to be ignored on the host
> [Host Controller] , WFLYCTL0303: Resource [
> [Host Controller] ("profile" => "full-ha"),
> [Host Controller] ("subsystem" => "infinispan"),
> [Host Controller] ("cache-container" => "hibernate"),
> [Host Controller] ("local-cache" => "local-query"),
> [Host Controller] ("store" => "none")
> [Host Controller] ] is rejected on the target host, and will need to be ignored on the host
> [Host Controller] , WFLYCTL0303: Resource [
> [Host Controller] ("profile" => "full-ha"),
> [Host Controller] ("subsystem" => "infinispan"),
> [Host Controller] ("cache-container" => "hibernate"),
> [Host Controller] ("invalidation-cache" => "entity"),
> [Host Controller] ("store" => "none")
> [Host Controller] ] is rejected on the target host, and will need to be ignored on the host
> [Host Controller] , WFLYCTL0303: Resource [
> [Host Controller] ("profile" => "full-ha"),
> [Host Controller] ("subsystem" => "infinispan"),
> [Host Controller] ("cache-container" => "hibernate"),
> [Host Controller] ("replicated-cache" => "timestamps"),
> [Host Controller] ("store" => "none")
> [Host Controller] ] is rejected on the target host, and will need to be ignored on the host
> [Host Controller] ]
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (JBAS-9399) URL.getContent() returns VirtualFile instead of ImageProducer in JBoss AS 6.0.0.FINAL
by Nathan Blomquist (JIRA)
[ https://issues.jboss.org/browse/JBAS-9399?page=com.atlassian.jira.plugin.... ]
Nathan Blomquist commented on JBAS-9399:
----------------------------------------
The workaround that was added isn't really a workaround for this. The issue is that on a standard JVM (non-JBoss), the SimpleBeanInfo.class works fine. On JBoss the class fails.
The SimpleBeanInfo.class is a Java library class.
https://docs.oracle.com/javase/7/docs/api/java/beans/SimpleBeanInfo.html
In our case it was used in a third party component for which we didn't have code access. We actually weren't trying to get the image and didn't care about the image. The third party component tried to load it during construction.
> URL.getContent() returns VirtualFile instead of ImageProducer in JBoss AS 6.0.0.FINAL
> -------------------------------------------------------------------------------------
>
> Key: JBAS-9399
> URL: https://issues.jboss.org/browse/JBAS-9399
> Project: Application Server 3 4 5 and 6
> Issue Type: Bug
> Components: VFS
> Affects Versions: 6.0.0.Final
> Environment: Windows XP
> Reporter: Nathan Blomquist
> Attachments: server.log
>
>
> URL.getContent() behaves differently within JBoss than it does in a normal JVM. In our case, when a jar is used in a normal JVM, URL.getContent() returns an ImageProducer. When the same jar is used from within JBoss, a VirtualFile is returned which then causes a ClassCastException.
> Note: This worked fine in JBoss 4.2.3.GA.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-2715) Null Pointer Exception on Accumulate
by Pedro Almeida (JIRA)
Pedro Almeida created DROOLS-2715:
-------------------------------------
Summary: Null Pointer Exception on Accumulate
Key: DROOLS-2715
URL: https://issues.jboss.org/browse/DROOLS-2715
Project: Drools
Issue Type: Bug
Affects Versions: 7.8.0.Final, 7.7.0.Final, 7.6.0.Final
Reporter: Pedro Almeida
Assignee: Edson Tirelli
Attachments: DroolsBug.zip
I was able to get a Null Pointer out of a simple accumulate.
Download the attached zip and run the test.
java.lang.RuntimeException: java.lang.NullPointerException
at org.drools.core.rule.SingleAccumulate.init(SingleAccumulate.java:88)
at org.drools.core.phreak.PhreakAccumulateNode.doLeftInserts(PhreakAccumulateNode.java:148)
at org.drools.core.phreak.PhreakAccumulateNode.doNode(PhreakAccumulateNode.java:89)
at org.drools.core.phreak.RuleNetworkEvaluator.switchOnDoBetaNode(RuleNetworkEvaluator.java:567)
at org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:538)
at org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:373)
at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:333)
at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:169)
at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:127)
at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:212)
at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:87)
at org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:34)
at org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)
at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1067)
at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014)
at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1308)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1299)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1283)
at tests.TestsClass.test(TestsClass.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.NullPointerException
at org.drools.core.reteoo.BaseLeftTuple.getObject(BaseLeftTuple.java:628)
at org.drools.core.reteoo.BaseTuple.getObject(BaseTuple.java:48)
at defaultpkg.Rule_Rule_X0Accumulate0Invoker.init(Rule_Rule_X0Accumulate0Invoker.java:21)
at org.drools.core.rule.SingleAccumulate.init(SingleAccumulate.java:82)
... 41 more
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-2715) Null Pointer Exception on Accumulate
by Pedro Almeida (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2715?page=com.atlassian.jira.plugi... ]
Pedro Almeida updated DROOLS-2715:
----------------------------------
Attachment: DroolsBug.zip
> Null Pointer Exception on Accumulate
> ------------------------------------
>
> Key: DROOLS-2715
> URL: https://issues.jboss.org/browse/DROOLS-2715
> Project: Drools
> Issue Type: Bug
> Affects Versions: 7.6.0.Final, 7.7.0.Final, 7.8.0.Final
> Reporter: Pedro Almeida
> Assignee: Edson Tirelli
> Attachments: DroolsBug.zip
>
>
> I was able to get a Null Pointer out of a simple accumulate.
> Download the attached zip and run the test.
> java.lang.RuntimeException: java.lang.NullPointerException
> at org.drools.core.rule.SingleAccumulate.init(SingleAccumulate.java:88)
> at org.drools.core.phreak.PhreakAccumulateNode.doLeftInserts(PhreakAccumulateNode.java:148)
> at org.drools.core.phreak.PhreakAccumulateNode.doNode(PhreakAccumulateNode.java:89)
> at org.drools.core.phreak.RuleNetworkEvaluator.switchOnDoBetaNode(RuleNetworkEvaluator.java:567)
> at org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:538)
> at org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:373)
> at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:333)
> at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:169)
> at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:127)
> at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:212)
> at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:87)
> at org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:34)
> at org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)
> at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1067)
> at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014)
> at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1308)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1299)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1283)
> at tests.TestsClass.test(TestsClass.java:52)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
> at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
> at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
> Caused by: java.lang.NullPointerException
> at org.drools.core.reteoo.BaseLeftTuple.getObject(BaseLeftTuple.java:628)
> at org.drools.core.reteoo.BaseTuple.getObject(BaseTuple.java:48)
> at defaultpkg.Rule_Rule_X0Accumulate0Invoker.init(Rule_Rule_X0Accumulate0Invoker.java:21)
> at org.drools.core.rule.SingleAccumulate.init(SingleAccumulate.java:82)
> ... 41 more
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (JBAS-9399) URL.getContent() returns VirtualFile instead of ImageProducer in JBoss AS 6.0.0.FINAL
by Brad Maxwell (JIRA)
[ https://issues.jboss.org/browse/JBAS-9399?page=com.atlassian.jira.plugin.... ]
Brad Maxwell updated JBAS-9399:
-------------------------------
Workaround Description:
Read the content directly such as with ImageIO.read(url.openStream().getSource()
{code}
import java.awt.Image;
import javax.imageio.ImageIO;
import java.io.InputStream;
import java.beans.SimpleBeanInfo;
URL url = Thread.currentThread().getContextClassLoader().getResource(resourceName);
InputStream is = null;
try {
is = url.openStream();
return ImageIO.read(is).getSource();
} catch(Exception e) {
e.printStackTrace();
return null;
} finally {
try { is.close(); } catch(Exception e) { }
}
{code}
Workaround: Workaround Exists
> URL.getContent() returns VirtualFile instead of ImageProducer in JBoss AS 6.0.0.FINAL
> -------------------------------------------------------------------------------------
>
> Key: JBAS-9399
> URL: https://issues.jboss.org/browse/JBAS-9399
> Project: Application Server 3 4 5 and 6
> Issue Type: Bug
> Components: VFS
> Affects Versions: 6.0.0.Final
> Environment: Windows XP
> Reporter: Nathan Blomquist
> Attachments: server.log
>
>
> URL.getContent() behaves differently within JBoss than it does in a normal JVM. In our case, when a jar is used in a normal JVM, URL.getContent() returns an ImageProducer. When the same jar is used from within JBoss, a VirtualFile is returned which then causes a ClassCastException.
> Note: This worked fine in JBoss 4.2.3.GA.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (WFLY-10520) Add Hibernate ORM 5.3 compatibility transformer
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-10520?page=com.atlassian.jira.plugin... ]
Scott Marlow edited comment on WFLY-10520 at 7/10/18 2:09 PM:
--------------------------------------------------------------
[~gbadner] I agree, the WF documentation should mention how the transformer can be enabled. As far as which application bytecode transformations are applied, I'll will start adding those to the WildFly documentation.
was (Author: smarlow):
[~gbadner] I agree, the WF documentation should mention how the transformer can be enabled.
> Add Hibernate ORM 5.3 compatibility transformer
> -----------------------------------------------
>
> Key: WFLY-10520
> URL: https://issues.jboss.org/browse/WFLY-10520
> Project: WildFly
> Issue Type: Task
> Components: JPA / Hibernate
> Reporter: Gail Badner
> Assignee: Scott Marlow
> Fix For: 14.0.0.CR1
>
>
> A compatibility transformer needs to be added to address Hibernate ORM 5.3 API methods that are no longer compatible with 5.1.
> From https://docs.google.com/document/d/1cAVBdeQXQfpTwH0f_GKSahh_gRd7bKI6kII-w...
> # Change calls to org.hibernate.BasicQueryContract.getFlushMode(), to instead call BasicQueryContract.getHibernateFlushMode().
> # Change calls to org.hibernate.Session.getFlushMode, to instead call Session.getHibernateFlushMode()
> # Change references to Enum org.hibernate.FlushMode.NEVER (0), to FlushMode.MANUAL (0).
> # Change calls to org.hibernate.Query.getMaxResults() returning Integer, to instead call org.hibernate.Query.getHibernateMaxResults() (returning Integer).
> # Change calls to org.hibernate.Query.setMaxResults(int), to instead call org.hibernate.Query.setHibernateMaxResults(int).
> # Change calls to org.hibernate.Query.getFirstResult(int) returning Integer, to instead call org.hibernate.Query.getHibernateFirstResult() (returning Integer).
> # Change calls to org.hibernate.Query.setFirstResult(int), to instead call org.hibernate.Query.setHibernateFirstResult(int).
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-2714) Future: Dialog to name test and define bindings (UX)
by Liz Clayton (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2714?page=com.atlassian.jira.plugi... ]
Liz Clayton commented on DROOLS-2714:
-------------------------------------
[~tirelli] [~danielezonca] I created this story to capture work outside of MVP. Please feel free to edit the description, thanks!
> Future: Dialog to name test and define bindings (UX)
> ----------------------------------------------------
>
> Key: DROOLS-2714
> URL: https://issues.jboss.org/browse/DROOLS-2714
> Project: Drools
> Issue Type: Task
> Components: Scenario Simulation and Testing
> Reporter: Liz Clayton
> Assignee: Liz Clayton
> Labels: UX, UXTeam
> Attachments: Add-simple1.png, Add-simple1b.png
>
>
> As a business user I want to +Add+ a scenario test asset, so that I perform simulation tests against certain (decision) asset types, including: Rules, DMN, and Processes.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (WFLY-10520) Add Hibernate ORM 5.3 compatibility transformer
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-10520?page=com.atlassian.jira.plugin... ]
Scott Marlow updated WFLY-10520:
--------------------------------
Description:
A compatibility transformer needs to be added to address Hibernate ORM 5.3 API methods that are no longer compatible with 5.1.
>From https://docs.google.com/document/d/1cAVBdeQXQfpTwH0f_GKSahh_gRd7bKI6kII-w...
# Change calls to org.hibernate.BasicQueryContract.getFlushMode(), to instead call BasicQueryContract.getHibernateFlushMode().
# Change calls to org.hibernate.Session.getFlushMode, to instead call Session.getHibernateFlushMode()
# Change references to Enum org.hibernate.FlushMode.NEVER (0), to FlushMode.MANUAL (0).
# Change calls to org.hibernate.Query.getMaxResults() returning Integer, to instead call org.hibernate.Query.getHibernateMaxResults() (returning Integer).
# Change calls to org.hibernate.Query.setMaxResults(int), to instead call org.hibernate.Query.setHibernateMaxResults(int).
# Change calls to org.hibernate.Query.getFirstResult(int) returning Integer, to instead call org.hibernate.Query.getHibernateFirstResult() (returning Integer).
# Change calls to org.hibernate.Query.setFirstResult(int), to instead call org.hibernate.Query.setHibernateFirstResult(int).
was:
A compatibility transformer needs to be added to address Hibernate ORM 5.3 API methods that are no longer compatible with 5.1.
>From https://docs.google.com/document/d/1cAVBdeQXQfpTwH0f_GKSahh_gRd7bKI6kII-w...
# Change call to org.hibernate.BasicQueryContract.getFlushMode() to instead call BasicQueryContract.getHibernateFlushMode().
# Change call to org.hibernate.Session.getFlushMode, to instead call Session.getHibernateFlushMode()
# App References to Enum org.hibernate.FlushMode.NEVER (0) should be transformed to reference FlushMode.MANUAL (0) instead.
# For call to org.hibernate.Query.getMaxResults() returning Integer, instead call org.hibernate.Query.getHibernateMaxResults() (returning Integer).
# For call to org.hibernate.Query.setMaxResults(int), instead call org.hibernate.Query.setHibernateMaxResults(int).
# For call to org.hibernate.Query.getFirstResult(int) returning Integer, instead call org.hibernate.Query.getHibernateFirstResult() (returning Integer).
# For call to org.hibernate.Query.setFirstResult(int), instead call org.hibernate.Query.setHibernateFirstResult(int).
> Add Hibernate ORM 5.3 compatibility transformer
> -----------------------------------------------
>
> Key: WFLY-10520
> URL: https://issues.jboss.org/browse/WFLY-10520
> Project: WildFly
> Issue Type: Task
> Components: JPA / Hibernate
> Reporter: Gail Badner
> Assignee: Scott Marlow
> Fix For: 14.0.0.CR1
>
>
> A compatibility transformer needs to be added to address Hibernate ORM 5.3 API methods that are no longer compatible with 5.1.
> From https://docs.google.com/document/d/1cAVBdeQXQfpTwH0f_GKSahh_gRd7bKI6kII-w...
> # Change calls to org.hibernate.BasicQueryContract.getFlushMode(), to instead call BasicQueryContract.getHibernateFlushMode().
> # Change calls to org.hibernate.Session.getFlushMode, to instead call Session.getHibernateFlushMode()
> # Change references to Enum org.hibernate.FlushMode.NEVER (0), to FlushMode.MANUAL (0).
> # Change calls to org.hibernate.Query.getMaxResults() returning Integer, to instead call org.hibernate.Query.getHibernateMaxResults() (returning Integer).
> # Change calls to org.hibernate.Query.setMaxResults(int), to instead call org.hibernate.Query.setHibernateMaxResults(int).
> # Change calls to org.hibernate.Query.getFirstResult(int) returning Integer, to instead call org.hibernate.Query.getHibernateFirstResult() (returning Integer).
> # Change calls to org.hibernate.Query.setFirstResult(int), to instead call org.hibernate.Query.setHibernateFirstResult(int).
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-2714) Future: Dialog to name test and define bindings (UX)
by Liz Clayton (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2714?page=com.atlassian.jira.plugi... ]
Liz Clayton updated DROOLS-2714:
--------------------------------
Description: As a business user I want to +Add+ a scenario test asset, so that I perform simulation tests against certain (decision) asset types, including: Rules, DMN, and Processes. (was: As a business user I want the ability to name a scenario test and define the rule bindings so that I can create a test asset. )
> Future: Dialog to name test and define bindings (UX)
> ----------------------------------------------------
>
> Key: DROOLS-2714
> URL: https://issues.jboss.org/browse/DROOLS-2714
> Project: Drools
> Issue Type: Task
> Components: Scenario Simulation and Testing
> Reporter: Liz Clayton
> Assignee: Liz Clayton
> Labels: UX, UXTeam
> Attachments: Add-simple1.png, Add-simple1b.png
>
>
> As a business user I want to +Add+ a scenario test asset, so that I perform simulation tests against certain (decision) asset types, including: Rules, DMN, and Processes.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years