• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Not a Bug
  • qa
  • Reporter: willtran
  • February 14, 2013
  • 0
  • Watchers: 5
  • February 25, 2013
  • February 15, 2013

Description

When configuring ehcache or quartz to obtain terracotta config using a server url (eg org.quartz.jobStore.tcConfigUrl=host1:9510) I get this stack trace on startup: Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: com.tc.config.schema.setup.ConfigurationSetupException: ******************************************************************************* We were unable to read configuration data from the base configuration from server at ‘host1:9510’: Bogus chunk size *******************************************************************************

at org.terracotta.quartz.AbstractTerracottaJobStore.getUUID(AbstractTerracottaJobStore.java:79)
... 36 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.tc.config.schema.setup.ConfigurationSetupException:  \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* We were unable to read configuration data from the base configuration from server at 'host1:9510': Bogus chunk size \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

at com.terracotta.express.ClientImpl.<init>(ClientImpl.java:378)
at com.terracotta.express.ClientFactoryImpl.newClient(ClientFactoryImpl.java:286)
at com.terracotta.express.ClientFactoryImpl.createClient(ClientFactoryImpl.java:279)
at com.terracotta.express.ClientFactoryImpl.createClient(ClientFactoryImpl.java:266)
at com.terracotta.express.ClientFactoryImpl.getOrCreateClient(ClientFactoryImpl.java:203)
at org.terracotta.express.ClientFactory.getOrCreateClient(ClientFactory.java:30)
at org.terracotta.quartz.AbstractTerracottaJobStore.init(AbstractTerracottaJobStore.java:62)
at org.terracotta.quartz.AbstractTerracottaJobStore.getUUID(AbstractTerracottaJobStore.java:77)
... 36 more Caused by: java.lang.RuntimeException: com.tc.config.schema.setup.ConfigurationSetupException:  \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* We were unable to read configuration data from the base configuration from server at 'host1:9510': Bogus chunk size \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

at com.terracotta.express.StandaloneL1Boot.resolveConfig(StandaloneL1Boot.java:140)
at com.terracotta.express.StandaloneL1Boot.createConfigFile(StandaloneL1Boot.java:101)
at com.terracotta.express.StandaloneL1Boot.call(StandaloneL1Boot.java:221)
at com.terracotta.express.ClientImpl.<init>(ClientImpl.java:369)
... 43 more Caused by: com.tc.config.schema.setup.ConfigurationSetupException:  \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* We were unable to read configuration data from the base configuration from server at 'host1:9510': Bogus chunk size \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.getConfigFromSourceStream(StandardXMLFileConfigurationCreator.java:527)
at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigurationData(StandardXMLFileConfigurationCreator.java:427)
at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigDataFromSources(StandardXMLFileConfigurationCreator.java:242)
at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigAndSetIntoRepositories(StandardXMLFileConfigurationCreator.java:129)
at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.createConfigurationIntoRepositories(StandardXMLFileConfigurationCreator.java:111)
at com.terracotta.express.StandaloneL1Boot.resolveEmbedded(StandaloneL1Boot.java:193)
at com.terracotta.express.StandaloneL1Boot.resolveConfig(StandaloneL1Boot.java:138)
... 46 more Caused by: java.io.IOException: Bogus chunk size
at sun.net.www.http.ChunkedInputStream.processRaw(ChunkedInputStream.java:319)
at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:572)
at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:609)
at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:696)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3052)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3046)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.getConfigFromSourceStream(StandardXMLFileConfigurationCreator.java:490)
... 52 more

I’m using “Terracotta 3.7.4, as of 20130209-151856 (Revision 24404-22216 by [email protected] from 3.7.4)” on the client side, and “Terracotta 3.7.4, as of 20130209-172320 (Revision unknown-22216 by [email protected] from 3.7.4)” for the server.

The JARs in this webapp are: aopalliance-1.0.jar ehcache-core-2.6.5.jar log4j-1.2.16.jar spring-beans-3.1.1.RELEASE.jar spring-webmvc-3.1.1.RELEASE.jar apache-log4j-extras-1.2.18.jar ehcache-terracotta-2.6.5.jar quartz-2.1.6.jar spring-context-3.1.1.RELEASE.jar terracotta-toolkit-1.6-runtime-5.4.0.jar c3p0-0.9.1.1.jar ehcache-web-2.0.4.jar quartz-terracotta-2.3.4.jar spring-context-support-3.1.1.RELEASE.jar thumbnailator-0.4.0.jar commons-codec-1.6.jar httpclient-4.2.jar slf4j-api-1.6.1.jar spring-core-3.1.1.RELEASE.jar util-0.0.8.jar commons-io-1.3.2.jar httpcore-4.2.jar slf4j-log4j12-1.6.1.jar spring-expression-3.1.1.RELEASE.jar commons-lang-2.3.jar image-resizer-1.0.7.jar spring-aop-3.1.1.RELEASE.jar spring-tx-3.1.1.RELEASE.jar commons-logging-1.1.1.jar liquibase-core-2.0.5.jar spring-asm-3.1.1.RELEASE.jar spring-web-3.1.1.RELEASE.jar

all loaded from maven. The webapp is running on apache-tomcat-7.0.33, ubuntu 12.04 LTS, Sun JDK 1.7 u13 Linux x64.

The workaround is to load the tc-config.xml file from the filesystem, which isn’t ideal as it forces us to deploy multiple copies of the file in our environment.

Comments

Fiona OShea 2013-02-14

Please review asap to see if this an issue with the latest release of 3.7.4 thanks

Will Tran 2013-02-15

I think I’ve found the problem. We’re using the latest version of the NewRelic java agent (2.14.0) which seems to mess around with outgoing requests from the application (eg. to fetch configuration from the TC server). There are no issues with the older version of NewRelic that we were using (2.12.0). I’ll follow up with NewRelic.

Fiona OShea 2013-02-15

Thanks for the update Will.

Paal-Kristian Hamre 2013-02-18

Any update from NewRelic? We are experience the same issue in our production environment.

Paal-Kristian Hamre 2013-02-25

For the record, NewRelic told me that this issue was fixed in the NewRelic java agent version 2.14.1.

Tim Eck 2013-02-25

Can this item be closed then? From what I read here this sounds like NewRelic’s bug, correct?