Jump to content
We've recently updated our Privacy Statement, available here ×

asa_nka

Members
  • Posts

    6
  • Joined

  • Last visited

asa_nka's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. i have done report genration project, get out put as my requirement, but always generate the warning, more waroing every reuntime, what is the reason here?? thanx net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributes WARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead. Code:Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'topBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'leftBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'bottomBorderColor' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorder' attribute is deprecated. Use the <pen> tag instead.Jul 19, 2010 3:31:19 PM net.sf.jasperreports.engine.xml.JRBoxFactory setBoxAttributesWARNING: The 'rightBorderColor' attribute is deprecated. Use the <pen> tag instead.
  2. i hav also same problem, what should i do? use the jrPdfExporter.setParameter(JRExporterParameter.CHARACTER_ENCODING ,"UTF-8"); bt not work......... plzz
  3. i want 2 fill the jrxml using sql satement resultset & procdure call resultset, but how i can use only one Resultset objecet for JRResultSetDataSource jrResultSetDataSource= ........................ wht should i do?? Code:import net.sf.jasperreports.engine.*;import net.sf.jasperreports.engine.data.JRMapArrayDataSource;import net.sf.jasperreports.engine.data.JRMapCollectionDataSource;import java.sql.*;import java.util.*;import oracle.jdbc.driver.OracleTypes;public class testall { int id = 13647; java.sql.Date sDate = java.sql.Date.valueOf("2009-08-09"); java.sql.Date fDate = java.sql.Date.valueOf("2009-08-10"); int Decimals = 3; Connection connection = null; JRResultSetDataSource resultSetDataSource; public static void main(String args[]) throws SQLException { testall test = new testall(); test.connect(); ResultSet rs1 = test.excute(); ResultSet rs2 = test.port(); ArrayList<ResultSet> contaner = new ArrayList<ResultSet>(); test.genpdf(rs1,rs2); } public void connect() { try { Class.forName("oracle.jdbc.driver.OracleDriver"); connection = DriverManager.getConnection("jdbc:oracle:thin:@192.168.0.47:1521:MFS01", "MUBASHER_OMS", "password"); } catch (ClassNotFoundException classNotFoundException) { classNotFoundException.printStackTrace(); } catch (SQLException sqlException) { sqlException.printStackTrace(); } } public ResultSet excute() throws SQLException { ResultSet resultS = null; try { Statement statement = connection.createStatement(); try { String query = "select CustName,M01_C1_CUSTOMER_ID,T03_ACCOUNT_ID,u05_accountno,U05_PORTFOLIO_NAME " + "from M01_CUSTOMER_V7 " + "where M01_C1_CUSTOMER_ID='160526168'"; resultS = statement.executeQuery(query); } catch (SQLException e) { e.printStackTrace(); } } catch (Exception e) { System.out.println(e); } return resultS; } public ResultSet port() { ResultSet resultSet = null; try { String dataQuery = "{CALL t06_holdings_log_pkg.cust_statement(?,?,?,?,?) } "; CallableStatement cs = connection.prepareCall(dataQuery); cs.registerOutParameter(1, OracleTypes.CURSOR); cs.setInt(2, id); cs.setDate(3, sDate); cs.setDate(4, fDate); cs.setInt(5, Decimals); cs.execute(); resultSet = (ResultSet) cs.getObject(1); Statement statement = connection.createStatement(); try { resultSet.close(); } catch (SQLException e) { e.printStackTrace(); } } catch (SQLException sqlException) { sqlException.printStackTrace(); } return resultSet; } public void genpdf(ResultSet result1,ResultSet result2) { try { /*what 2 do in this */ JRResultSetDataSource resultSetDataSource = new JRResultSetDataSource(result1); JRResultSetDataSource resultSetDataSource1 = new JRResultSetDataSource(result2); JRResultSetDataSource resultSetDataSource2=resultSetDataSource; JRResultSetDataSource resultSetDataSource3=resultSetDataSource2; JasperReport jasperReport = JasperCompileManager.compileReport("src/resources/testall.jrxml"); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), resultSetDataSource3); JasperExportManager.exportReportToPdfFile(jasperPrint, "test.pdf"); } catch (JRException jrException) { jrException.printStackTrace(); } }}
  4. i want to create pdf with arabic charcter, it is display nothing.i used Asian Itext jar also ,but not a gud result. so what shoul i do 2 skip that error?????? if there any ttf file support dat?????????
  5. i got this error why is dis Code: Code:net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: The system identifier must begin with either a single or double quote character. at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:203) at DbReportServlet.doGet(DbReportServlet.java:31) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)Caused by: org.xml.sax.SAXParseException: The system identifier must begin with either a single or double quote character. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanExternalID(XMLScanner.java:1041) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.scanDoctypeDecl(XMLDocumentScannerImpl.java:595) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:860) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1764) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:239) ... 20 more Post Edited by asanka1985 at 06/16/2010 03:28
×
×
  • Create New...