[JBoss JIRA] (WFLY-3791) Error on ModelControllerClient to list sections
by ofbiz brazil (JIRA)
[ https://issues.jboss.org/browse/WFLY-3791?page=com.atlassian.jira.plugin.... ]
ofbiz brazil commented on WFLY-3791:
------------------------------------
Holy Christ, so I can not migrate my java application to Wildfly 8.1, because I really need to read security values during startup process. Seems there's none workaround.
> Error on ModelControllerClient to list sections
> -----------------------------------------------
>
> Key: WFLY-3791
> URL: https://issues.jboss.org/browse/WFLY-3791
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Domain Management
> Affects Versions: 8.1.0.Final
> Environment: Java 7
> Reporter: ofbiz brazil
> Assignee: Darran Lofthouse
>
> Hello,
> When there's a client trying to list a node for a security section, Wildfly says it does not exist but on Jboss 7.1.1 it works fine.
> Java Code:
> {code:java}
> final ModelNode request = new ModelNode();
> request.get(ClientConstants.OP).set("read-resource");
> request.get("recursive").set(true);
> request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
> final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
> final ModelNode response = client.execute(new OperationBuilder(request).build());
> final String section = response.get(ClientConstants.RESULT).get("security-domain")
> .get("pw_MSSQL_CAS_DS")
> {code}
> Result:
> ---------
> {code}
> {
> "outcome" => "failed",
> "failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
> "rolled-back" => true
> }
> {code}
> Cheers,
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-3791) Error on ModelControllerClient to list sections
by James Perkins (JIRA)
[ https://issues.jboss.org/browse/WFLY-3791?page=com.atlassian.jira.plugin.... ]
James Perkins commented on WFLY-3791:
-------------------------------------
This isn't limited to the security subsystem. No subsystem resource are available during {{@Startup}} state of an EJB. This may or may not be by design. I'd hesitate to refer to as a regression as the behavior may have been changed for a specific reason.
> Error on ModelControllerClient to list sections
> -----------------------------------------------
>
> Key: WFLY-3791
> URL: https://issues.jboss.org/browse/WFLY-3791
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Domain Management
> Affects Versions: 8.1.0.Final
> Environment: Java 7
> Reporter: ofbiz brazil
> Assignee: Darran Lofthouse
>
> Hello,
> When there's a client trying to list a node for a security section, Wildfly says it does not exist but on Jboss 7.1.1 it works fine.
> Java Code:
> {code:java}
> final ModelNode request = new ModelNode();
> request.get(ClientConstants.OP).set("read-resource");
> request.get("recursive").set(true);
> request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
> final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
> final ModelNode response = client.execute(new OperationBuilder(request).build());
> final String section = response.get(ClientConstants.RESULT).get("security-domain")
> .get("pw_MSSQL_CAS_DS")
> {code}
> Result:
> ---------
> {code}
> {
> "outcome" => "failed",
> "failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
> "rolled-back" => true
> }
> {code}
> Cheers,
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-3791) Error on ModelControllerClient to list sections
by ofbiz brazil (JIRA)
[ https://issues.jboss.org/browse/WFLY-3791?page=com.atlassian.jira.plugin.... ]
ofbiz brazil commented on WFLY-3791:
------------------------------------
This issue seems to be related to a case when we have an @Startup EJB and Wildfly can not answer security status at that time.
Why in JBoss 7.1.1 does it have a different behaviour, and I can really get its value?
Example:
------------
@Startup
@Singleton
@Remote
public class SmbConfigBean {
private static final long serialVersionUID = 1L;
@PostConstruct
private void init() throws Exception {
final ModelControllerClient client = ModelControllerClient.Factory.create("http-remoting", InetAddress.getLocalHost(), 9029);
final ModelNode op = Operations.createReadResourceOperation(new ModelNode().addEmptyList().add("subsystem","security"));
op.get("recursive").set(true);
final ModelNode result = client.execute(op);
if (Operations.isSuccessfulOutcome(result)) {
System.out.println(Operations.readResult(result));
} else {
System.out.println(Operations.getFailureDescription(result));
}
}
}
> Error on ModelControllerClient to list sections
> -----------------------------------------------
>
> Key: WFLY-3791
> URL: https://issues.jboss.org/browse/WFLY-3791
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Domain Management
> Affects Versions: 8.1.0.Final
> Environment: Java 7
> Reporter: ofbiz brazil
> Assignee: Darran Lofthouse
>
> Hello,
> When there's a client trying to list a node for a security section, Wildfly says it does not exist but on Jboss 7.1.1 it works fine.
> Java Code:
> {code:java}
> final ModelNode request = new ModelNode();
> request.get(ClientConstants.OP).set("read-resource");
> request.get("recursive").set(true);
> request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
> final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
> final ModelNode response = client.execute(new OperationBuilder(request).build());
> final String section = response.get(ClientConstants.RESULT).get("security-domain")
> .get("pw_MSSQL_CAS_DS")
> {code}
> Result:
> ---------
> {code}
> {
> "outcome" => "failed",
> "failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
> "rolled-back" => true
> }
> {code}
> Cheers,
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-3791) Error on ModelControllerClient to list sections
by James Perkins (JIRA)
[ https://issues.jboss.org/browse/WFLY-3791?page=com.atlassian.jira.plugin.... ]
James Perkins updated WFLY-3791:
--------------------------------
Description:
Hello,
When there's a client trying to list a node for a security section, Wildfly says it does not exist but on Jboss 7.1.1 it works fine.
Java Code:
{code:java}
final ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set("read-resource");
request.get("recursive").set(true);
request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
final ModelNode response = client.execute(new OperationBuilder(request).build());
final String section = response.get(ClientConstants.RESULT).get("security-domain")
.get("pw_MSSQL_CAS_DS")
{code}
Result:
---------
{code}
{
"outcome" => "failed",
"failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
"rolled-back" => true
}
{code}
Cheers,
was:
Hello,
When there's a client trying to list a node for a security section, Wildfly says it does not exist but on Jboss 7.1.1 it works fine.
Java Code:
--------------
final ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set("read-resource");
request.get("recursive").set(true);
request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
final ModelNode response = client.execute(new OperationBuilder(request).build());
final String section = response.get(ClientConstants.RESULT).get("security-domain")
.get("pw_MSSQL_CAS_DS")
Result:
---------
{
"outcome" => "failed",
"failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
"rolled-back" => true
}
Cheers,
> Error on ModelControllerClient to list sections
> -----------------------------------------------
>
> Key: WFLY-3791
> URL: https://issues.jboss.org/browse/WFLY-3791
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Domain Management
> Affects Versions: 8.1.0.Final
> Environment: Java 7
> Reporter: ofbiz brazil
> Assignee: Darran Lofthouse
>
> Hello,
> When there's a client trying to list a node for a security section, Wildfly says it does not exist but on Jboss 7.1.1 it works fine.
> Java Code:
> {code:java}
> final ModelNode request = new ModelNode();
> request.get(ClientConstants.OP).set("read-resource");
> request.get("recursive").set(true);
> request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
> final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
> final ModelNode response = client.execute(new OperationBuilder(request).build());
> final String section = response.get(ClientConstants.RESULT).get("security-domain")
> .get("pw_MSSQL_CAS_DS")
> {code}
> Result:
> ---------
> {code}
> {
> "outcome" => "failed",
> "failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
> "rolled-back" => true
> }
> {code}
> Cheers,
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFCORE-78) Do not validate modules directories in launcher API
by James Perkins (JIRA)
James Perkins created WFCORE-78:
-----------------------------------
Summary: Do not validate modules directories in launcher API
Key: WFCORE-78
URL: https://issues.jboss.org/browse/WFCORE-78
Project: WildFly Core
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Affects Versions: 1.0.0.Alpha5
Reporter: James Perkins
Assignee: James Perkins
Priority: Minor
Fix For: 1.0.0.Alpha6
Currently when adding module paths to either the {{DomainCommandBuilder}} or {{StandaloneCommandBuilder}} the paths are required to exist and be directories. JBoss Modules just ignores invalid paths so the command builders should as well.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (DROOLS-587) Workbench Guided Rule Editor: Fail to load existing rule
by Kris Verlaenen (JIRA)
[ https://issues.jboss.org/browse/DROOLS-587?page=com.atlassian.jira.plugin... ]
Kris Verlaenen updated DROOLS-587:
----------------------------------
Assignee: Mark Proctor (was: Mauricio Salatino)
> Workbench Guided Rule Editor: Fail to load existing rule
> --------------------------------------------------------
>
> Key: DROOLS-587
> URL: https://issues.jboss.org/browse/DROOLS-587
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Environment: RHEL 6, JDK 7, Wildfly-8, Google Chrome Version 36.0.1985.125 m, IE9, IE10
> Reporter: Akshay Wankhede
> Assignee: Mark Proctor
> Priority: Blocker
> Attachments: bound-two-variables.png, error-when-you-click-rule-to-open-editor.png
>
>
> Guided rules editor fails to open existing .GDRL file. Please see the steps to reproduce below. Please note that there are no logs printed on the server at the time of the issue.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (DROOLS-587) Workbench Guided Rule Editor: Fail to load existing rule
by Kris Verlaenen (JIRA)
[ https://issues.jboss.org/browse/DROOLS-587?page=com.atlassian.jira.plugin... ]
Kris Verlaenen moved JBPM-4440 to DROOLS-587:
---------------------------------------------
Project: Drools (was: jBPM)
Key: DROOLS-587 (was: JBPM-4440)
Workflow: GIT Pull Request workflow (was: classic default workflow)
Affects Version/s: (was: jBPM 6.1.0.Final)
Component/s: (was: Console)
Security: Public (was: Public)
> Workbench Guided Rule Editor: Fail to load existing rule
> --------------------------------------------------------
>
> Key: DROOLS-587
> URL: https://issues.jboss.org/browse/DROOLS-587
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Environment: RHEL 6, JDK 7, Wildfly-8, Google Chrome Version 36.0.1985.125 m, IE9, IE10
> Reporter: Akshay Wankhede
> Assignee: Mauricio Salatino
> Priority: Blocker
> Attachments: bound-two-variables.png, error-when-you-click-rule-to-open-editor.png
>
>
> Guided rules editor fails to open existing .GDRL file. Please see the steps to reproduce below. Please note that there are no logs printed on the server at the time of the issue.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-3795) NPE when adding Mail service
by Frank Langelage (JIRA)
Frank Langelage created WFLY-3795:
-------------------------------------
Summary: NPE when adding Mail service
Key: WFLY-3795
URL: https://issues.jboss.org/browse/WFLY-3795
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Mail
Affects Versions: 8.1.0.Final, 9.0.0.Beta1
Reporter: Frank Langelage
Assignee: Tomaz Cerar
When adding mail config via jboss-cli with an invalid hostname this leads to an NPE:
29.08. 22:33:10,293 INFO [org.jboss.as.mail.extension#transition] WFLYMAIL0001: Bound mail session [java:/Mail]
29.08. 22:33:10,367 ERROR [org.jboss.msc.service.fail#startFailed] MSC000001: Failed to start service jboss.mail-session.java:/Mail: org.jboss.msc.service.StartException in service jboss.mail-session.java:/Mail: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
Caused by: java.lang.NullPointerException
at org.jboss.as.mail.extension.SessionProviderFactory$ManagedSession.setServerProps(SessionProviderFactory.java:129)
at org.jboss.as.mail.extension.SessionProviderFactory$ManagedSession.configure(SessionProviderFactory.java:87)
at org.jboss.as.mail.extension.SessionProviderFactory$ManagedSession.<init>(SessionProviderFactory.java:72)
at org.jboss.as.mail.extension.SessionProviderFactory$ManagedSession.<init>(SessionProviderFactory.java:64)
at org.jboss.as.mail.extension.SessionProviderFactory.create(SessionProviderFactory.java:45)
at org.jboss.as.mail.extension.MailSessionService.start(MailSessionService.java:60)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
... 3 more
29.08. 22:33:10,389 ERROR [org.jboss.as.controller.management-operation#executeStep] WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "mail"),
("mail-session" => "java:/Mail")
]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.mail-session.java:/Mail" => "org.jboss.msc.service.StartException in service jboss.mail-session.java:/Mail: Failed to start service
Caused by: java.lang.NullPointerException"}}
29.08. 22:33:10,416 INFO [org.jboss.as.controller#logContainerStateChangesAndReset] WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.mail-session.java:/Mail
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months