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

Need help with main report with a subreport- v6.3.0


jkeri

Recommended Posts

I have a MAIN report with an EXCEL data source and a SUBREPORT with an ORACLE datasource.

In MAIN:

  1.  created parameter called subConn 
  2. class: java.sql.Connection
  3. Default Value Expression: java.sql.DriverManager.getConnection("jdbc:oracle:thin://mylocalhost:1521/mysid", "user","password")
  4. Added the subreport element into DETAIL band
    1. Subreport element 'Expression:' is $P{subConn}

MY PROBLEM: When I run the subreport by itself it returns values as expected. HOWEVER, when I run the main report I get "Caused by: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection".

As far as I can tell my Default value expression is correct eacuse it is the same value as the data source for my subreport. And the subreport runs correctly when it is run by itself.

 

ANY ideas of what or where else i can look?

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...