2005 IR Help Posted September 1, 2006 Share Posted September 1, 2006 By: chris - christinaku frustrating error!! 2005-01-27 23:53 i got the following code. It is very simple and straight forward but i just dunno why i keep getting this error message public void display() { try { java.sql.Connection con=null; Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost/eply","user", "123"); if(!con.isClosed()) System.out.println("Successfully connected to MySQL server using TCP/IP..."); Map parameters = new HashMap(); parameters.put("title","hahahahahaha"); FileInputStream file = new FileInputStream("D:\reports_jasper\jasper\test.jasper"); JasperReport jasperReport = (JasperReport) JRLoader.loadObject(file); System.out.println("Successfully created jasper report"); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, con); System.out.println("Successfully fill the jasper print"); JasperViewer.viewReport(jasperPrint, false); } catch(JRException e){ e.printStackTrace(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } } Error message: Unhandled event loop exception Reason: org/apache/commons/logging/LogFactory Why is that happening? i just dun get it... initially it work fine. i dunno what i change to result in this error... By: Giulio Toffoli - gt78 RE: frustrating error!! 2005-01-28 01:33 Add a catch (Exception e) { e.printStackTrace(); } and the end. Giulio Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now