-
Notifications
You must be signed in to change notification settings - Fork 11
NullPointer while trying to execute a batch command #12
Comments
Can you check if the 0.2.9 version fixes your problem? |
We are almost there. The problem now is with the
(Thank you for being so quick) |
Can you add |
Sorry! You are right. There is some (maybe) useful information down there:
|
Looks like it's a problem of your commands: |
I did two things:
Both worked fine... The |
https://developer.jboss.org/thread/250739 No clue if this is (still) true. Testing it with
|
Maybe you could try a newer wildfly-cli dependency. In your build.gradle.kts there is this line On the other hand, the code on this other repository seems to be prepared for batch commands. This is the latest stable release, I think. It seems they changed the group name from org.wildfly to org.wildfly.core and restarted the numbering. It's confusing. To use this code you would have to modify the dependency to |
Maybe you can test it yourself? |
Couldn't make it work :( I have added the following to the beginning of the settings.gradle, but the error is exactly the same in the same lines, indicating no substitution occurred.
I'll later try to compile the modified plugin on my machine. Is it hard? What do I need? |
Not sure if you can replace build classpath libs. I meant: replace the whole wildfly-deploy-gradle-plugin with a locally compiled one. |
It worked!
Now the script prints
It seems the method you added to the README is better though |
This newer wildfly-cli supports batch commands. Note the group name is org.wildfly.core instead of org.wildfly
Nice! |
I don't really understand what you are talking about. :) Is there anything I can do to help? |
Currently there are two banches, one for jboss7 ( |
I understand. We are using |
We are running the commands using other methods now. I would like to see this issue solved for everyone, but the priority is lower for us now |
I created another compatiblity branch for this (and released all branches) and a follow up issue for a better release process. |
The
config.cli
file here has a batch command in it. It's something similar to this:...and the
build.gradle
has this:When this task is executed, it gives this error:
It seems the response is empty and then returns null somewhere. It kind of make sense, because this command
batch
only instructs the server to receive more commands.The text was updated successfully, but these errors were encountered: