Jump to content
Changes to the Jaspersoft community edition download ×

nikhilbabu1990

Members
  • Posts

    4
  • Joined

  • Last visited

nikhilbabu1990'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. Hi, I have a text box with a fixed width and the data type is String. Properties of the text field are, * position Type = Float * Text Adjust = Stretch Height * Font = Arial the issue i am facing is, When i am passing a value with - (negative) symbol at the begining with other values(other values size is based on the width of the text field, If its fits in single line then its fine, Issue is with when the size of the value is more than one line), then only he nagative symbol will be in the first line and the remaining values will be in the next line and its not displaying the full values. Please help me to get a solution Thank you Nikhil
  2. Hi, To invoke my jasper report from jasper server, i wrote the java code in Jdev 12.2.1 by using REST web service. but while running i am getting this error " Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/util/Args at org.apache.http.auth.UsernamePasswordCredentials.<init>(UsernamePasswordCredentials.java:78) at com.uravatech.jasper.Jasper.main(Jasper.java:30) Caused by: java.lang.ClassNotFoundException: org.apache.http.util.Args at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 2 more Process exited with exit code 1. " And the code which i used is public class Jasper { public static void main(String[] args) throws Exception CredentialsProvider credsProvider = new BasicCredentialsProvider(); HttpHost targetHost = new HttpHost("192.168.2.201", 8081, "http"); credsProvider.setCredentials( new AuthScope(targetHost) , new UsernamePasswordCredentials("jasperadmin", "jasperadmin")); CloseableHttpClient httpclient = HttpClients.custom() .setDefaultCredentialsProvider(credsProvider).build(); try { HttpGet httpget = new HttpGet("http://192.168.2.201:8081/jasperserver[-pro]/rest_v2/reports/reports/CrossTab/Accounts.pdf"); System.out.println("executing request" + httpget.getRequestLine()); CloseableHttpResponse response = httpclient.execute(httpget); System.out.println(response.getStatusLine()); } finally { httpclient.close(); } } } And i added these jar files also, commons-beanutils-1.9.2 commons-collections-3.2.2 commons-digester-2.1 commons-logging-1.2 groovy-all-2.4.5 httpclient-4.3.4 httpcomponents-client-4.5.1-src.tar httpcore-4.0-beta3 itext-2.1.7.js3 jasperreports-6.2.0 jrs-rest-java-client-6.2.0-jar-with-dependencies jrwebservice_0 restapicodesample RESTful-Java-Client-ApacheHttpClient-Example Help me to resolve this error. Regards, Nikhil
  3. but i am getting this error while running C:UsersUrava-PC-01oracle1221oracle_commonjdkbinjavaw.exe -server -classpath "C:JDevelopermyworkJasper.adf;C:JDevelopermyworkJasperJasperclasses;C:UsersUrava-PC-01Desktopjar for jasper javacommons-beanutils-1.9.0.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-collections-3.2.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-digester-1.7.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-logging-api-1.1.jar;C:UsersUrava-PC-01Desktopjar for jasper javagroovy-all-2.4.3.jar;C:UsersUrava-PC-01Desktopjar for jasper javaitext-2.1.7.js3.jar;C:UsersUrava-PC-01Desktopjar for jasper javajasperreports-6.1.1.jar;D:UravaAlbarrakAlbarrakCommonLibUravaCommonCode.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpclient-4.1.2-sources.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpclient-4.3.4.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpcore-4.0-beta3.jar" -Djavax.net.ssl.trustStore=C:UsersURAVA-~1AppDataLocalTemptrustStore1258780266524574807.jks com.uravatech.jasper.JasperException in thread "main" java.lang.NoClassDefFoundError: org/apache/http/util/Argsat org.apache.http.auth.UsernamePasswordCredentials.<init>(UsernamePasswordCredentials.java:78)at com.uravatech.jasper.Jasper.main(Jasper.java:23)Caused by: java.lang.ClassNotFoundException: org.apache.http.util.Argsat java.net.URLClassLoader.findClass(URLClassLoader.java:381)at java.lang.ClassLoader.loadClass(ClassLoader.java:424)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)at java.lang.ClassLoader.loadClass(ClassLoader.java:357)... 2 moreProcess exited with exit code 1.
  4. Hi, I created a jasper report and add it into the jasper server, now i need to invoke the reports from jasper server by REST v2. So please give me the java code for doing this. and also tell me the required jar files and necessery thing to do. jasper report - TIBCO jaspersoft studio-6.2.0.final Regards, Nikhil
×
×
  • Create New...