Wrox Programmer Forums
|
BOOK: Professional Java Development with the Spring Framework
This is the forum to discuss the Wrox book Professional Java Development with the Spring Framework by Rod Johnson, Juergen Hoeller, Alef Arendsen, Thomas Risberg, Colin Sampaleanu; ISBN: 9780764574832
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Java Development with the Spring Framework section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2008, 06:53 PM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 4 building error

Hi,

Please have a look at this error

Code:
Results :

Tests in error:
  testRotateImageLeft(com.wrox.beginspring.pix.dao.PictureFileRepositoryTest)

Tests run: 16, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /home/scott/Documents/wrox-pix-web/target/surefire-reports for the individual test results.
and the explanation

Code:
-------------------------------------------------------------------------------
Test set: com.wrox.beginspring.pix.dao.PictureFileRepositoryTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.479 sec <<< FAILURE!
testRotateImageLeft(com.wrox.beginspring.pix.dao.PictureFileRepositoryTest)  Time elapsed: 0.012 sec  <<< ERROR!
java.lang.RuntimeException: Failed to rotate image.
    at com.wrox.beginspring.pix.dao.PictureFileRepository.rotatePicture(PictureFileRepository.java:76)
    at com.wrox.beginspring.pix.dao.PictureFileRepository.rotatePictureLeft(PictureFileRepository.java:56)
    at com.wrox.beginspring.pix.dao.PictureFileRepositoryTest.testRotateImageLeft(PictureFileRepositoryTest.java:61)
Caused by: javax.imageio.IIOException: Can't read input file!
    at javax.imageio.ImageIO.read(ImageIO.java:1279)
    at com.wrox.beginspring.pix.dao.PictureFileRepository.rotatePicture(PictureFileRepository.java:70)
    ... 28 more
Any solutions?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 10 - building objects kscase BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 5 April 23rd, 2007 04:55 AM
chapter 13 building an index page drb2k2 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 5 March 5th, 2006 07:22 PM
Chapter 8 Building a SQL String kimch BOOK: Beginning Access VBA 0 June 7th, 2005 03:45 PM
Chapter 8: Results Table not building Steve Rosenthal BOOK: Beginning Access VBA 1 September 7th, 2004 06:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.