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

Nicolas.Kukolja

Members
  • Posts

    13
  • Joined

  • Last visited

Nicolas.Kukolja's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Hi, I am still working on a connection to our application server as a datasourceprovider for iReport. I read a lot in this forum, so I recognized, that it looks quite best to implement a NetBeans-Plugin which can be used by iReport-designer. The following post by Giulio matches exactly what I need: http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=54261&page=1#54627 Unfortunately I still have some problems. I did the class-path-extension in project.xml: ... <class-path-extension> <runtime-relative-path>ext/library1-x-y.jar</runtime-relative-path> <binary-origin>release/modules/ext/library1-x-y.jar</binary-origin> </class-path-extension> ... That works fine so far. I can access the libraries in NetBeans. Now the libraries need to be accessable from iReport-designer because it is a datasource. So I implemented an NB-Installer-class. But how do I add the libraries to the designers classpath? I tried as mentioned in the post, but whenever I print out the classpath by "System.getProperty( "java.class.path" )", it still does not contain any of my libraries. Where is my mistake? Thanks in advance, Nicolas
  2. Okay, here some more information I collected while the last hours: Method "getFields()" of my Fieldprovider is called correctly. In this method I establish a connection to a JBoss application server to get field information. This is done by using a library called "jboss-all-client-x.y.z.jar" which is also configured in classpath like my own FieldProvider. Unfortunately the class "org.jboss.naming.NamingContextFactory", which is in this jar could not be found (see stacktrace below). I am a bit helpless... Code:com.hypertest.api.exception.HTException: Cannot instantiate class: org.jboss.naming.NamingContextFactory at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.hypertest.api.exception.HTExceptionHelper.wrap(HTExceptionHelper.java:86) at com.hypertest.api.exception.HTExceptionHelper.wrap(HTExceptionHelper.java:219) at com.hypertest.api.server.UserSession.getRemoteService(UserSession.java:342) at com.hypertest.api.server.UserSession.getLoginService(UserSession.java:206) at com.hypertest.api.server.UserSession.<init>(UserSession.java:110) at com.hypertest.api.server.ServerConnection.login(ServerConnection.java:138) at com.hypertest.api.server.ServerConnection.login(ServerConnection.java:154) at com.hypertest.client.jasperreport.ServerAccess.openConnection(ServerAccess.java:103) at com.hypertest.client.jasperreport.HTDataSourceProvider.getFields(HTDataSourceProvider.java:92) at com.jaspersoft.ireport.designer.connection.JRDataSourceProviderConnection.readFields(JRDataSourceProviderConnection.java:247) at com.jaspersoft.ireport.designer.wizards.ConnectionSelectionWizardPanel.validate(ConnectionSelectionWizardPanel.java:146) at org.openide.WizardDescriptor$7.run(WizardDescriptor.java:1357) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.naming.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jboss.naming.NamingContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init>(InitialContext.java:197) at com.hypertest.api.server.naming.ObjectLocator.lookup(ObjectLocator.java:57) at com.hypertest.api.server.naming.RemoteHomeLocator.lookup(RemoteHomeLocator.java:91) at com.hypertest.api.server.naming.RemoteHomeLocator$RemoteHomeCache.computeValue(RemoteHomeLocator.java:49) at com.hypertest.api.server.naming.RemoteHomeLocator$RemoteHomeCache.computeValue(RemoteHomeLocator.java:31) at com.werum.concurrent.ConcurrentCache.get(ConcurrentCache.java:76) at com.hypertest.api.server.naming.RemoteHomeLocator.obtain(RemoteHomeLocator.java:113) at com.hypertest.api.server.ServerConnection.getRemoteHome(ServerConnection.java:101) at com.hypertest.api.server.UserSession.getRemoteService(UserSession.java:332) ... 11 moreCaused by: java.lang.ClassNotFoundException: org.jboss.naming.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) ... 22 more
  3. I am still working on this very strange problem. Does nobody have an idea? If it helps, I will post some more details concerning the used libraries etc. Best regards
  4. Hello, I just try to migrate my own application from iReport 3.0 to iReport 4.1 and it looks good so far, but now I have a problem: I use an own data source provider implemented in java and wrapped in a library (jar). It furthermore has dependencies to some more libraries. I used the options-dialog to add all nessecary jars to classpath. My data source provider is called correctly, but when it calls an other library (which is also defined as "in classpath"), I get a ClassNotFoundException displayed in IDE-Protocol. Seems to my like a classloader problem (see below). Has anybody an idea how to fix my problem? Best regards and thanks in advance, Nick Code:Caused by: java.lang.ClassNotFoundException: org.jboss.naming.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) ... 22 more
  5. Hi all, we are working with iReport and JasperReports 3.0 at the moment. Now we think about to upgrade to current version, but we have many templates created with version 3.0. Do you expect problems filling templates created with iReport 3.0 with JasperReports 4.0? Would there be any trouble editing older templates with the current version of iReport? Thanks in advance, Nicolas
  6. Hi, we have a report template like the attached one. A static text with description and a dynamic textfield with value side by side and this repeats to the bottom of the report. When a value is to long for a sized textfield, this should be extended, but without overlapping the following ones. So we always set the flag "strech with overflow" and the position type to "float". The problem is that this works correct for the textfields, but the static text aside the following textfields does not "move" with the according textfields. How do I "connect" a static text to a textfield, that it will move in common with the textfield? Greetings and thanks in advance, Nicolas
  7. Hi, I unfortuately still have problems with the new iReport-3.6-nb using my own Java-Datasource (JRDataSourceProvider). In iReport-3.0, I simply modified the batch-files for adding my own jars to applications classpath. Adding, testing and using this datasource worked very well! In iReport 3.6, there is only the .exe-File, so how to modify the classpath? I tried to add my jars in the options-dialog -> classpath, but when testing the datasource I still get a ClassNotFoundException... Does someone have any ideas how it will work? Thanks, Nicolas
  8. Hello, we just want to switch from iReport-3.0 to iReport-nb-3.6, but there are some questions I did not find answers for, yet: 1. Where to find System (Console) Out in iReport-nb-3.6? Is there any logging configurable? 2. In the fomer version, we just edited the batch-files to include our own libraries (Java) automatically at startup. Is something similar possible in current version, too? There are no batch-Files, are they? 3. I tried to import our old datasource(s) by using the xml-Import (see below) after adding the library-folder to classpath, but it doesn't work. Without logs it is hard to debug ;-) Can someone help me? Greetings Nick Code:<?xml version="1.0"?><!-- iReport connections --><iReportConnectionSet> <iReportConnection name="My_DataSource" connectionClass="it.businesslogic.ireport.connection.JRDataSourceProviderConnection"> <connectionParameter name="JRDataSourceProvider"><![CDATA[com.myapplication.client.jasperreport.HTDataSource]]></connectionParameter> </iReportConnection></iReportConnectionSet> Post Edited by Nicolas.Kukolja at 09/07/2009 13:42
  9. Hey, hope someone could help me with a little problem concerning jasperreports... Our customers use iReport to create and compile templates for reports and subreports. For this, we implemented an own datasource which accesses an application server to get our objects attributes... For the subreports, we implement our own query-language and registered it in iReport. With these templates our application fills and generates reports. So far so good :o) Because of our own query language, we need our own query executer and this is registered by: .setProperty( "net.sf.jasperreports.query.executer.factory.HTQL", "com.hypertest.client.jasperreport.HTQueryExecuterFactory" ); Well, the problem is that we need some kind of application context in this query executer, but I see no way to set it, because the constructor is called implicitely, isn't it? My next try was to put the application context into the parameter map which is given to the "fillReport(...)"-method: // Preparing parameters Map< parameters.put( String,Object> parameters = new HashMap()"OUR_APPLICATION_CONTEXT", applicationContext); jasperPrint = JasperFillManager.fillReport( jasperReport, parameters );That only works if the parameter is already registered in the report template an also given to the subreport in the template. Unfortunately this way is not really easy to handle for our customers. Is there any way to put the application context into our own query executer without mentioning it in the report template(s)? Hope you guess what I mean and are able to help me. Best regards, Nicolas ;JRProperties
  10. Yes, you are right, the one with the frames is generated with version 2.0.1. Do you have any other idea how to export a report in a way to make it as easy as possible to copy contents from report into an existing microsoft word document? We tried odf as well, but it seems to be the same problem with the shapes, right? Seems to be a bit difficult. Thanks for your statement so far, Nicolas
  11. Hi, thanks for your fast response. I attached you a zip-file with two rtf-files in it. In the one with frames it is more comfortable to select a part of the report because it can be handled like simple text. In the one with text boxes it is not that easy. You need to select every text box on its own. Do you understand what I mean? Thanks, Nicolas [file name=Examples.zip size=18605]
  12. Hello, we have a question concerning the rtf-export of static text and text fields. When will be textboxes be generated an when frames? I have some rtf-documents created using the JRRtfExporter, and sometimes there are only textboxes in the result report and sometimes only frames. The handling of a document with frames is quite easier for us, so is there any property to adjust the result / behaviour? Thanks, Nicolas (jasperreport 2.0.5 and ireport 2.0.2)
×
×
  • Create New...