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

lelo.endrik

Members
  • Posts

    7
  • Joined

  • Last visited

lelo.endrik's Achievements

  1. Yes, i've already thought on putting all in a blank page, that's why i would be needing the entire layout. As per the application in which it should be embedded, it a jsf based one. For the login problem, i've already found the solution (even if not yet tested). Either using JRS's HTTP API, or a JAAS configuration (as my current app-server is Glassfish, with a JAAS declarative implementation), so i can build it on top of the Spring Security framework provided with JRS (correct me if i'm wrong). Thank you for your quick reply!
  2. A bit late in replying, but i thought this solution might be useful to someone else. I've managed to get JRGraphics2DExporter to work, and it doesn generate a correct .png image. [/code] JRGraphics2DExporter exporter = new JRGraphics2DExporter(); BufferedImage bufferedImage = new BufferedImage(595, 860, BufferedImage.TYPE_INT_RGB); Graphics2D g = (Graphics2D)bufferedImage.getGraphics(); exporter.setParameter(JRGraphics2DExporterParameter.GRAPHICS_2D, g); exporter.setParameter(JRGraphics2DExporterParameter.ZOOM_RATIO, Float.valueOf(1)); exporter.setParameter(JRExporterParameter.JASPER_PRINT, print); PrintRequestAttributeSet attrs = new HashPrintRequestAttributeSet(); attrs.add(new PrinterResolution(500, 440, ResolutionSyntax.DPI)); exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, attrs); exporter.exportReport(); g.dispose(); ImageIO.write(bufferedImage, "PNG", out);
  3. Greetings everyone, I am just starting to explore the world of JasperServer, and i'm currently working with the Community Edition. I've seen many pages with instructions on how to put the content such as a Dashboard or the Ad-Hoc editor into an iFrame and calling it through the HTTP API. And seems it can be done with simple reports too (and i'm interested only on displaying such reports since the Community Edition doesn't include dashboards and ad-hoc). But in every sample i see that the only content shown is what's included into the Dashboard itself. Whilst, i want to display all the features of JasperServer (including the repository navigation panel, and the menu panel), not just the report as an output. Meaning all this should be included into the iFrame: http://4.bp.blogspot.com/-5b6UXvcw2G0/UYUUhqE9l_I/AAAAAAAAAKE/sJBN4BdCGkU/s1600/Create+an+Input+control+in+JasperServer1.png (may be, just without the search and logout forms). I've been struggling in finding out a solution, and i'm only getting more confused as i see more and more examples/instructions. So my questions are: Is this possible? If yes,do the functionalities work properly and can anyone provide me the right instructions how to achieve this? (needed parameters and so on) Thank you in advance.
  4. No,, actually it's the first time i see this options. Thank you, i'm gonna try it asap!
  5. Greetings experts, I am new to the jasper world, so my question might be quite simple. I wish to generate a report from my java application. It work fine when it comes to pdf and excel formats, but i want to try to export it as an image (such as jpg, png the extension is not important). Is there any class like JPdfExporter or any other easy way to achieve this? During my researches, i've came across JRGraphics2DExporter, but i didn't understand how it works, and if this is the right choice of what i'm trying to accomplish. I would like an example of it's usage. Thank you in advance!
  6. Greetings everyone I'm using JDeveloper version 11.1.2.3.0 and iReport 5.1.0. I've created an application where users can upload their own jrxml files, these files gets compiled and stored in the FS. When users need to generate the PDF reports they can select one of the report types from those uploaded and generate the report. Everything was working fine at first, but after some tests i've got this error, only on the report filling part: javax.faces.el.EvaluationException: //C:/Users/Endrik/AppData/Roaming/JDeveloper/system11.1.2.3.39.62.76.1/o.j2ee/drs/ContractManagement/ViewControllerWebApp.war/untitled2.jsf @9,73 action="#{reportBean.userDefinedReport}": java.lang.LinkageError: loader constraint violation: loader (instance of net/sf/jasperreports/engine/util/JRClassLoader) previously initiated loading for a different type with name "org/codehaus/groovy/runtime/callsite/CallSite" at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of net/sf/jasperreports/engine/util/JRClassLoader) previously initiated loading for a different type with name "org/codehaus/groovy/runtime/callsite/CallSite" at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethods(Class.java:1791) at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84) at java.security.AccessController.doPrivileged(Native Method) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250) at groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:338) at groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:288) at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2922) at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:176) at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:192) at report2_1379060128967_977360.$getStaticMetaClass(calculator_report2_1379060128967_977360) at report2_1379060128967_977360.<init>(calculator_report2_1379060128967_977360) 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 java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadEvaluator(JRAbstractJavaCompiler.java:112) at net.sf.jasperreports.engine.design.JRAbstractCompiler.loadEvaluator(JRAbstractCompiler.java:333) at net.sf.jasperreports.engine.JasperCompileManager.getEvaluator(JasperCompileManager.java:265) at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFillDataset.java:457) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:379) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:88) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:103) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:61) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:153) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:55) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:446) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:849) at al.ikubinfo.contract.view.ReportBean.insert(ReportBean.java:715) at al.ikubinfo.contract.view.ReportBean.userDefinedReport(ReportBean.java:625) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(Unknown Source) at com.sun.el.MethodExpressionImpl.invoke(Unknown Source) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46) ... 44 more[/code] I've seen several posts about this error, saying that there might be more than one reference to the same jar, or two jars imported with the same dependencies/contents. So here is the list of jars i use in my app: groovy-all-2.0.1 iText-2.1.7.js2 jasperreports-5.1.0 jasperreports-fonts-5.0.4 poi-3.7 poi-ooxml-3.7 commons-io-2.4 (plus some other commons-* jars not related). These are the same i've used when the app was running, plus i've used Jasper before, and never got this error. Please help! Thanks in advance.
×
×
  • Create New...