nick.stanmore Posted February 9, 2023 Posted February 9, 2023 We've upgraded our Jasper 5.5 db (Oracle 12.1) to Jasper 7.9 using the scripts from jasperreports-server-pro-7.9.0-bin/buildomatic/install_resources/sql/oracle.I installed Jasper Studio Professional 7.9 to make some bug fixes and have a problem drilling down to see some reports.When I click on some folders, expecting to see "Main jrxml, sub-reports, input controls, etc; I get a popup and stack trace.java.lang.NullPointerException at com.jaspersoft.studio.server.protocol.restv2.WsTypes.toSoapType(WsTypes.java:246) at com.jaspersoft.studio.server.protocol.restv2.Rest2Soap.getRD(Rest2Soap.java:104) at com.jaspersoft.studio.server.protocol.restv2.Rest2Soap.getRDContainer(Rest2Soap.java:73) at com.jaspersoft.studio.server.protocol.restv2.Rest2Soap.getReportUnit(Rest2Soap.java:381) at com.jaspersoft.studio.server.protocol.restv2.Rest2Soap.getRD(Rest2Soap.java:155) at com.jaspersoft.studio.server.protocol.restv2.Rest2Soap.getRD(Rest2Soap.java:67) at com.jaspersoft.studio.server.protocol.restv2.RestV2ConnectionJersey.get(RestV2ConnectionJersey.java:489) at com.jaspersoft.studio.server.protocol.ProxyConnection.get(ProxyConnection.java:194) at com.jaspersoft.studio.server.protocol.ProxyConnection.get(ProxyConnection.java:220) at com.jaspersoft.studio.server.WSClientHelper.refreshResource(WSClientHelper.java:394) at com.jaspersoft.studio.server.ServerProvider.lazyLoadResource(ServerProvider.java:390) at com.jaspersoft.studio.server.ServerProvider$2.run(ServerProvider.java:376) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)One of the input controls references a "query" input control and all reports using that control have this problem.Other reports using other "query" controls seem alright although I haven't checked each one.When I run the report on the server I get this:(reduced stack trace)java.lang.NullPointerException at com.jaspersoft.jasperserver.api.metadata.common.domain.util.RefSets$4.apply(RefSets.java:121) at com.jaspersoft.jasperserver.api.metadata.common.domain.util.RefSets$4.apply(RefSets.java:118) at com.google.common.collect.Iterators$6.transform(Iterators.java:783) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:47) at com.google.common.collect.Iterators$5.computeNext(Iterators.java:636) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136) at com.google.common.collect.Iterators.addAll(Iterators.java:355) at com.google.common.collect.Sets.newHashSet(Sets.java:274) at com.google.common.collect.Sets.newHashSet(Sets.java:257) at com.jaspersoft.jasperserver.api.metadata.common.domain.util.RefSets.newSet(RefSets.java:118) at com.jaspersoft.jasperserver.api.metadata.common.domain.util.MarkAllInputControlsResolved.normalizeReferences(MarkAllInputControlsResolved.java:39) at com.jaspersoft.jasperserver.api.metadata.common.domain.util.MarkAllInputControlsResolved.normalizeReferences(MarkAllInputControlsResolved.java:36) at com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.client.ReportUnitImpl.normalizeReferences(ReportUnitImpl.java:412) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.ReportLoadingService.getInputControlReferences(ReportLoadingService.java:345) at Does anyone have a similar experience or know what's wrong with the input control?
nick.stanmore Posted February 10, 2023 Author Posted February 10, 2023 Think I have figured it out. We use a home made utility to put and get reports to/from the Jasper server. Apparently the utility removes certain input controls from the report when it gets it from Jasper so if you upload it again you end up with a missing input control.I have expanded the zip file that the utility creates and the input control is missing as suspected.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now