You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by aledsage <gi...@git.apache.org> on 2017/06/28 15:25:57 UTC

[GitHub] brooklyn-server pull request #747: BROOKLYN-520: better error if type missin...

GitHub user aledsage opened a pull request:

    https://github.com/apache/brooklyn-server/pull/747

    BROOKLYN-520: better error if type missing

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aledsage/brooklyn-server BROOKLYN-520

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/747.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #747
    
----
commit ddb6b8b4403ae65beebac5b40fd3985d02862333
Author: Aled Sage <al...@gmail.com>
Date:   2017-06-28T15:04:35Z

    BROOKLYN-520: better error if type missing

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #747: BROOKLYN-520: better error if type missing

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/747
  
    test failure was caused by a bug in jenkins, it seems!
    ```
    ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
    hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
    	at hudson.remoting.Request.abort(Request.java:307)
    	at hudson.remoting.Channel.terminate(Channel.java:896)
    	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:92)
    	at ......remote call to ubuntu-2(Native Method)
    	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
    	at hudson.remoting.Request.call(Request.java:172)
    	at hudson.remoting.Channel.call(Channel.java:829)
    	at hudson.FilePath.act(FilePath.java:985)
    	at hudson.FilePath.act(FilePath.java:974)
    	at hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:473)
    	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:880)
    	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    	at hudson.model.Run.execute(Run.java:1728)
    	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:542)
    	at hudson.model.ResourceController.execute(ResourceController.java:98)
    	at hudson.model.Executor.run(Executor.java:405)
    Caused by: java.io.IOException: Unexpected termination of the channel
    	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
    Caused by: java.io.EOFException
    	at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
    	at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
    	at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
    	at java.io.ObjectInputStream.<init>(ObjectInputStream.java:301)
    	at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
    	at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
    	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #747: BROOKLYN-520: better error if type missing

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/747
  
    Thanks @Graeme-Miller - merging now.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server pull request #747: BROOKLYN-520: better error if type missin...

Posted by Graeme-Miller <gi...@git.apache.org>.
Github user Graeme-Miller commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/747#discussion_r124574322
  
    --- Diff: camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/creation/BrooklynComponentTemplateResolver.java ---
    @@ -130,6 +132,12 @@ public static BrooklynComponentTemplateResolver newInstance(BrooklynClassLoading
     
             private static BrooklynComponentTemplateResolver newInstance(BrooklynClassLoadingContext context, ConfigBag attrs, AbstractResource optionalTemplate) {
                 String type = getDeclaredType(null, optionalTemplate, attrs);
    +            if (type == null) {
    --- End diff --
    
    Can type be the empty string? Might want to consider doing StringUtils.isEmpty


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server pull request #747: BROOKLYN-520: better error if type missin...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/brooklyn-server/pull/747


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server pull request #747: BROOKLYN-520: better error if type missin...

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/747#discussion_r124592211
  
    --- Diff: camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/creation/BrooklynComponentTemplateResolver.java ---
    @@ -130,6 +132,12 @@ public static BrooklynComponentTemplateResolver newInstance(BrooklynClassLoading
     
             private static BrooklynComponentTemplateResolver newInstance(BrooklynClassLoadingContext context, ConfigBag attrs, AbstractResource optionalTemplate) {
                 String type = getDeclaredType(null, optionalTemplate, attrs);
    +            if (type == null) {
    --- End diff --
    
    Thanks @Graeme-Miller - I've changed that and squashed it to a single commit.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---