org.springframework.batch.sample.domain.trade.Trade

Spring JIRA | phillip rhodes | 7 years ago
  1. 0

    Working on the spring batch examples, and got the following error. To summarize, the classloader that the commons-lang SerializationUtils is using is not able to find this class (of course the class exists). I got around this error by creating my own copy of "SerializationUtils.java" in a new package and using this. Since my SerializationUtils is in my webapp, there are no classloader issues. OJB had a similar issue that they resolved in a similar fashion, http://issues.apache.org/jira/browse/OJB-140 {noformat} 2009-12-29 09:05:04,489 [main] ERROR step.AbstractStep - Encountered an error executing the step org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException : org.springframework.batch.sample.domain.trade.Trade at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:165) at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:192) at org.springframework.batch.sample.common.StagingItemReader$2.mapRow(StagingItemReader.java:118) at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:92) at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:1) at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:648) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:586) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:673) at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:716) at org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(SimpleJdbcTemplate.java:169) at org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(SimpleJdbcTemplate.java:174) {noformat}

    Spring JIRA | 7 years ago | phillip rhodes
    org.springframework.batch.sample.domain.trade.Trade
  2. 0

    Working on the spring batch examples, and got the following error. To summarize, the classloader that the commons-lang SerializationUtils is using is not able to find this class (of course the class exists). I got around this error by creating my own copy of "SerializationUtils.java" in a new package and using this. Since my SerializationUtils is in my webapp, there are no classloader issues. OJB had a similar issue that they resolved in a similar fashion, http://issues.apache.org/jira/browse/OJB-140 {noformat} 2009-12-29 09:05:04,489 [main] ERROR step.AbstractStep - Encountered an error executing the step org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException : org.springframework.batch.sample.domain.trade.Trade at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:165) at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:192) at org.springframework.batch.sample.common.StagingItemReader$2.mapRow(StagingItemReader.java:118) at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:92) at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:1) at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:648) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:586) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:673) at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:716) at org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(SimpleJdbcTemplate.java:169) at org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(SimpleJdbcTemplate.java:174) {noformat}

    Spring JIRA | 7 years ago | phillip rhodes
    org.springframework.batch.sample.domain.trade.Trade

    Root Cause Analysis

    1. org.springframework.batch.sample.domain.trade.Trade

      No message provided

      at org.apache.commons.lang.SerializationUtils.deserialize()
    2. Commons Lang
      SerializationUtils.deserialize
      1. org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:165)
      2. org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:192)
      2 frames
    3. org.springframework.batch
      StagingItemReader$2.mapRow
      1. org.springframework.batch.sample.common.StagingItemReader$2.mapRow(StagingItemReader.java:118)
      1 frame
    4. Spring Framework
      SimpleJdbcTemplate.queryForObject
      1. org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:92)
      2. org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:1)
      3. org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:648)
      4. org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:586)
      5. org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636)
      6. org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665)
      7. org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:673)
      8. org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:716)
      9. org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(SimpleJdbcTemplate.java:169)
      10. org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(SimpleJdbcTemplate.java:174)
      10 frames