Jump to content

samaresh

Members
  • Posts

    22
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by samaresh

  1. Hi,

     

    we are working on Jasper Reports as one of the module to show reports.

    But we are facing some issues on Wrapping .

    If the text length is same as textfield length, Some time the whole text goes up/ left most digit comes on first line with remaining in next line.

     

    example:

    1)

    -123456

    -------------

    2)

    -

    123456

     

    please suggest a solutuion which can help us to resolve the issue!!!

     

    Thanks in advance.

     

     

     

  2. I am facing issue while generating CSV format.Issues are given below:

    1)Column Headers are jumbled up and looking junk.

    2)Column are not alligned properly.

    3)Column headers are repeating.

    3)Export is limited to 65525 rows.

    4)Line space are coming unneccesarily.

     

    I need help to resolve this issue.please do suggest how can i resolve this.

     

    Thanks in advance!!!

     

    Samaresh.

  3. How can i optimize jasperprint object.

     

    This i want to know as i am working with huge data(jasperPrint object size 1.63GB) and not able to use this print object to show report as it is throwing Java Heap Space Exception.

    After increasing the heap space also it is not working.

     

    is there anyway to optimize the JasperPrint object so,that if it is huge in size ,without increasing heap size ,i can work with it.??

  4. i have downloaded jasperserver-2.0.1-src.zip and seen under

    jasper server 2.0.1jasperserver-2.0.1jasperserversamplesjava-webapp-samplesrccomjaspersoftjasperserversampleWSClient.java

    it has not given any example of getting pdf from runreport method.

     

    please help me out.

     

    Thanks in Advance!!!

     

    Here is the Code

    ======================================================

     

     

    import net.sf.jasperreports.engine.JasperPrint;

    import com.jaspersoft.jasperserver.irplugin.JServer;

     

    import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.*;

     

    public class WSClient {

     

    private JServer server = null;

     

    public WSClient(String webServiceUrl, String username, String password)

    {

    server = new JServer();

    server.setUsername(username);

    server.setPassword(password);

    server.setUrl(webServiceUrl);

    }

     

    public java.util.List list(String uri) throws Exception

    {

    ResourceDescriptor rd = new ResourceDescriptor();

    rd.setWsType( ResourceDescriptor.TYPE_FOLDER);

    rd.setUriString(uri);

    return server.getWSClient().list(rd);

    }

     

    public ResourceDescriptor get(String uri) throws Exception

    {

    return get(uri, null);

    }

     

    public ResourceDescriptor get(String uri, java.util.List args) throws Exception

    {

    ResourceDescriptor rd = new ResourceDescriptor();

    rd.setWsType( ResourceDescriptor.TYPE_REPORTUNIT);

    rd.setUriString(uri);

    return server.getWSClient().get(rd, null,args);

    }

     

    public JasperPrint runReport(String reportUri, java.util.Map parameters) throws Exception

    {

    ResourceDescriptor rd = new ResourceDescriptor();

    rd.setWsType( ResourceDescriptor.TYPE_REPORTUNIT);

    rd.setUriString(reportUri);

     

    return server.getWSClient().runReport(rd, parameters);

    }

     

    }

    ====================================================

  5. it will be very helpful if you can post sample code to generate pdf using runreport.

     

    i have seen that we have to set run_output_format to pdf.

    can you please give the steps to do it???

     

    Thanks in advance

  6. Hi,

     

    When i tried to call getWSClient().runReport() method to get Jasper Print Object which is having near to 4 Lakh record,I got this Exception:

     

     

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

    faultSubcode:

    faultString: java.net.SocketTimeoutException: Read timed out

    faultActor:

    faultNode:

    faultDetail:

    {http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: Read timed out

    at java.net.SocketInputStream.socketRead0(Native Method)

    at java.net.SocketInputStream.read(Unknown Source)

    at java.io.BufferedInputStream.fill(Unknown Source)

    at java.io.BufferedInputStream.read(Unknown Source)

    at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)

    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)

    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

    at org.apache.axis.client.Call.invoke(Call.java:2767)

    at org.apache.axis.client.Call.invoke(Call.java:2443)

    at org.apache.axis.client.Call.invoke(Call.java:2366)

    at org.apache.axis.client.Call.invoke(Call.java:1812)

    at com.jaspersoft.jasperserver.irplugin.wsclient.RepositorySoapBindingStub.runReport(RepositorySoapBindingStub.java:147)

    at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:378)

    at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:299)

     

    java.net.SocketTimeoutException: Read timed out

    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)

    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

    at org.apache.axis.client.Call.invoke(Call.java:2767)

    at org.apache.axis.client.Call.invoke(Call.java:2443)

    at org.apache.axis.client.Call.invoke(Call.java:2366)

    at org.apache.axis.client.Call.invoke(Call.java:1812)

    at com.jaspersoft.jasperserver.irplugin.wsclient.RepositorySoapBindingStub.runReport(RepositorySoapBindingStub.java:147)

    at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:378)

    at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:299)

    at JServerCall1.main(JServerCall1.java:40)

    Caused by: java.net.SocketTimeoutException: Read timed out

    at java.net.SocketInputStream.socketRead0(Native Method)

    at java.net.SocketInputStream.read(Unknown Source)

    at java.io.BufferedInputStream.fill(Unknown Source)

    at java.io.BufferedInputStream.read(Unknown Source)

    at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)

    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)

    ... 13 more

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

    faultSubcode:

    faultString: java.net.SocketTimeoutException: Read timed out

    faultActor:

    faultNode:

    faultDetail:

    {http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: Read timed out

    at java.net.SocketInputStream.socketRead0(Native Method)

    at java.net.SocketInputStream.read(Unknown Source)

    at java.io.BufferedInputStream.fill(Unknown Source)

    at java.io.BufferedInputStream.read(Unknown Source)

    at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)

    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)

    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

    at org.apache.axis.client.Call.invoke(Call.java:2767)

    at org.apache.axis.client.Call.invoke(Call.java:2443)

    at org.apache.axis.client.Call.invoke(Call.java:2366)

    at org.apache.axis.client.Call.invoke(Call.java:1812)

    at com.jaspersoft.jasperserver.irplugin.wsclient.RepositorySoapBindingStub.runReport(RepositorySoapBindingStub.java:147)

    at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:378)

    at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:299)

    at JServerCall1.main(JServerCall1.java:40)

     

    {http://xml.apache.org/axis/}hostname:ws-inblr067

     

    java.net.SocketTimeoutException: Read timed out

    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)

    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

    at org.apache.axis.client.Call.invoke(Call.java:2767)

    at org.apache.axis.client.Call.invoke(Call.java:2443)

    at org.apache.axis.client.Call.invoke(Call.java:2366)

    at org.apache.axis.client.Call.invoke(Call.java:1812)

    at com.jaspersoft.jasperserver.irplugin.wsclient.RepositorySoapBindingStub.runReport(RepositorySoapBindingStub.java:147)

    at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:378)

    at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:299)

    at JServerCall1.main(JServerCall1.java:40)

    Caused by: java.net.SocketTimeoutException: Read timed out

    at java.net.SocketInputStream.socketRead0(Native Method)

    at java.net.SocketInputStream.read(Unknown Source)

    at java.io.BufferedInputStream.fill(Unknown Source)

    at java.io.BufferedInputStream.read(Unknown Source)

    at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)

    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)

    ... 13 more

  7. I am passing Jasper Print object from Web Service (JAX WS 2.0) to Java Client (SWT UI) as String object because of JAX WS 2.0 Data Type Limitation) and converting this string to Jasper Print object using ByteArrayInputStream, I am getting java.lang.OutOfMemoryException: Java Heap Space.

     

     

     

    Sample code given below.

     

     

     

    byte [] myStrBytes = jasperPrintString.getBytes ("UTF-8");

    ByteArrayInputStream stringIS = new ByteArrayInputStream (myStrBytes);

     

    JasperPrint jasperPrint = JRPrintXmlLoader.load (new String (jasperPrintString));

  8. Hi,

     

    I want to get data in chunks from db and use JRDataSource till the end of data from db.

     

    please need help on this.

    how to implement JRDataSource to fetch data in chunks from db till i reach end of data.

     

    please help!!!

  9. hi,

     

    actually i am facing the same problem.so i want to know how can i use JRDataSource to pass data in chunks till the end of my data.

     

    actually i am new to jasper report.so if i can get sample code implementing JRDataSource and pass the data in chunks....

     

    Suppose i have 6000 record and i want to get this data from db in chunk and use JRDataSource till the end of 6000 record and then i can use datasource to pass in fill report method.

  10. Hi,

     

    i want to do pagination on data as my data is huge.

    i am getting the data from database.

    getting those huge data i am facing problem.i want to fetch the data suppose 2000 at a time and go on till the 10,000 data and should be able to export whole report.I have implemented virtualizer also.

     

    Need help on this .sample code will be very help full.

     

    Thanks in Advance!!

×
×
  • Create New...