Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

1.5.3 build broken #230

Closed
analytically opened this issue Feb 12, 2015 · 14 comments
Closed

1.5.3 build broken #230

analytically opened this issue Feb 12, 2015 · 14 comments

Comments

@analytically
Copy link

The build is broken, this release should be pulled.

@Randgalt
Copy link
Contributor

In what way? What's the problem?

@analytically
Copy link
Author

Building a single jar using gradle or maven fails.

@Randgalt
Copy link
Contributor

Which one? WAR? Standalone? The main artifacts?

@analytically
Copy link
Author

Standalone. Using gradlew that comes packaged. gradlew jar

@Randgalt
Copy link
Contributor

I'm looking into it. I hate Gradle more and more each day. For now, use the Maven version. It works.

@analytically
Copy link
Author

Erm nope, maven one doesn't work either. When starting up:

Exception in thread "main" java.lang.NoClassDefFoundError: com/amazonaws/services/s3/model/AmazonS3Exception
    at com.netflix.exhibitor.standalone.ExhibitorCreator.<init>(ExhibitorCreator.java:137)
    at com.netflix.exhibitor.application.ExhibitorMain.main(ExhibitorMain.java:70)
Caused by: java.lang.ClassNotFoundException: com.amazonaws.services.s3.model.AmazonS3Exception
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

@Randgalt
Copy link
Contributor

Build it as "mvn clean package". I'll double check the doc. I just did it myself. It works.

@analytically
Copy link
Author

The build works, but the fat jar doesn't include the AWS jars cuz 26ce44b hence NoClassDefFoundError.

@Randgalt
Copy link
Contributor

Ah OK. They're supposed to do a new release soon.

@analytically
Copy link
Author

I'm also seeing

org.apache.http.client.ClientProtocolException
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:822)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
    at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:278)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:164)
    at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2906)
    at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:885)
    at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:775)
    at com.netflix.exhibitor.core.s3.S3ClientImpl.getObject(S3ClientImpl.java:110)
    at com.netflix.exhibitor.core.config.s3.S3ConfigProvider.getConfigObject(S3ConfigProvider.java:195)
    at com.netflix.exhibitor.core.config.s3.S3ConfigProvider.loadConfig(S3ConfigProvider.java:124)
    at com.netflix.exhibitor.core.config.ConfigManager.<init>(ConfigManager.java:85)
    at com.netflix.exhibitor.core.config.ConfigManager.<init>(ConfigManager.java:59)
    at com.netflix.exhibitor.core.Exhibitor.<init>(Exhibitor.java:130)
    at com.netflix.exhibitor.application.ExhibitorMain.<init>(ExhibitorMain.java:120)
    at com.netflix.exhibitor.application.ExhibitorMain.main(ExhibitorMain.java:84)
Caused by: org.apache.http.ProtocolException: Received redirect response HTTP/1.1 301 Moved Permanently but no location header
    at org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(DefaultRedirectStrategy.java:107)
    at org.apache.http.impl.client.DefaultRedirectStrategy.getRedirect(DefaultRedirectStrategy.java:193)
    at org.apache.http.impl.client.DefaultRequestDirector.handleResponse(DefaultRequestDirector.java:1022)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:482)

Could that be related? Any idea?

@rspieldenner
Copy link
Contributor

The old build.gradle file had comments saying these 3 dependencies should
be moved to provided scope. So I moved them to provided scope. If you want
to build a standalone jar that is the exact wrong thing to do since now it
expects those to be provided by the idk/application container.

On Thu, Feb 12, 2015 at 10:28 AM, Mathias Bogaert notifications@github.com
wrote:

I'm also seeing

org.apache.http.client.ClientProtocolException
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:822)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:278)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:164)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2906)
at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:885)
at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:775)
at com.netflix.exhibitor.core.s3.S3ClientImpl.getObject(S3ClientImpl.java:110)
at com.netflix.exhibitor.core.config.s3.S3ConfigProvider.getConfigObject(S3ConfigProvider.java:195)
at com.netflix.exhibitor.core.config.s3.S3ConfigProvider.loadConfig(S3ConfigProvider.java:124)
at com.netflix.exhibitor.core.config.ConfigManager.(ConfigManager.java:85)
at com.netflix.exhibitor.core.config.ConfigManager.(ConfigManager.java:59)
at com.netflix.exhibitor.core.Exhibitor.(Exhibitor.java:130)
at com.netflix.exhibitor.application.ExhibitorMain.(ExhibitorMain.java:120)
at com.netflix.exhibitor.application.ExhibitorMain.main(ExhibitorMain.java:84)
Caused by: org.apache.http.ProtocolException: Received redirect response HTTP/1.1 301 Moved Permanently but no location header
at org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(DefaultRedirectStrategy.java:107)
at org.apache.http.impl.client.DefaultRedirectStrategy.getRedirect(DefaultRedirectStrategy.java:193)
at org.apache.http.impl.client.DefaultRequestDirector.handleResponse(DefaultRequestDirector.java:1022)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:482)

Could that be related? Any idea?


Reply to this email directly or view it on GitHub
#230 (comment).

@analytically
Copy link
Author

Also 1.5.3 is broken cause #231.

@Randgalt
Copy link
Contributor

1.5.4 has been released.

@scalp42
Copy link

scalp42 commented Feb 25, 2015

Confirmed 1.5.3 is broken:

2015-02-25_23:00:26.28078 Exception in thread "main" java.lang.NoClassDefFoundError: com/amazonaws/services/s3/model/S3ObjectInputStream
2015-02-25_23:00:26.28170   at com.netflix.exhibitor.standalone.ExhibitorCreator.getS3Provider(ExhibitorCreator.java:528)
2015-02-25_23:00:26.28190   at com.netflix.exhibitor.standalone.ExhibitorCreator.makeConfigProvider(ExhibitorCreator.java:288)
2015-02-25_23:00:26.28208   at com.netflix.exhibitor.standalone.ExhibitorCreator.<init>(ExhibitorCreator.java:158)
2015-02-25_23:00:26.28226   at com.netflix.exhibitor.application.ExhibitorMain.main(ExhibitorMain.java:70)
2015-02-25_23:00:26.28270 Caused by: java.lang.ClassNotFoundException: com.amazonaws.services.s3.model.S3ObjectInputStream
2015-02-25_23:00:26.28292   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
2015-02-25_23:00:26.28312   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
2015-02-25_23:00:26.28332   at java.security.AccessController.doPrivileged(Native Method)
2015-02-25_23:00:26.28351   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
2015-02-25_23:00:26.28369   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2015-02-25_23:00:26.28390   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
2015-02-25_23:00:26.28410   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2015-02-25_23:00:26.28427   ... 4 more
2015-02-25_23:00:27.58696 Exception in thread "main" java.lang.NoClassDefFoundError: com/amazonaws/services/s3/model/S3ObjectInputStream
2015-02-25_23:00:27.58786   at com.netflix.exhibitor.standalone.ExhibitorCreator.getS3Provider(ExhibitorCreator.java:528)
2015-02-25_23:00:27.58806   at com.netflix.exhibitor.standalone.ExhibitorCreator.makeConfigProvider(ExhibitorCreator.java:288)
2015-02-25_23:00:27.58825   at com.netflix.exhibitor.standalone.ExhibitorCreator.<init>(ExhibitorCreator.java:158)
2015-02-25_23:00:27.58843   at com.netflix.exhibitor.application.ExhibitorMain.main(ExhibitorMain.java:70)
2015-02-25_23:00:27.58888 Caused by: java.lang.ClassNotFoundException: com.amazonaws.services.s3.model.S3ObjectInputStream
2015-02-25_23:00:27.58909   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
2015-02-25_23:00:27.58930   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
2015-02-25_23:00:27.58949   at java.security.AccessController.doPrivileged(Native Method)
2015-02-25_23:00:27.58969   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
2015-02-25_23:00:27.58988   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2015-02-25_23:00:27.59009   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
2015-02-25_23:00:27.59027   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2015-02-25_23:00:27.59047   ... 4 more

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants