Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Crystal Report Viewer 10 problem Post Reply Post New Topic
Author Message
michaelwl
Newbie
Newbie
Avatar

Joined: 02 Aug 2007
Location: South Africa
Online Status: Offline
Posts: 11
Quote michaelwl Replybullet Topic: Crystal Report Viewer 10 problem
    Posted: 03 Aug 2007 at 12:03am
An Update on the problem below.

I've taken a look at my server.log for the JBoss server we're running on and I'm getting an access denied error.

(css@192.168.0.19) (Using password:NO)

We've got a mirror server running on 192.168.0.35, I went and changed the datasource location for my SQL command to 192.168.0.35. Went and changed the password for the database on 192.168.0.35 to blank (NO password) re run the report and now it runs fine through the Crystal Report Viewer Cry

Why is it not using a password for my SQL command? It makes no sense. Any help would be appreciated!

Original Post==========================================

I'm using Crystal X.

I've designed a report that is functioning correctly.

Recently I needed to add a SQL Expression (the ones you add as a new command in the Database Expert) which does a simple select statement with a join.

SELECT COUNT(*)  FROM TARIFFEDINVOICELINE JOIN COMMERCIALINVOICE ON COMMERCIALINVOICE.CI_BATCHID = TARIFFEDINVOICELINE.TILM_INVBATCHID  WHERE COMMERCIALINVOICE.CI_BATCHKEYREF = 'JB0001/07'

It works perfectly in the crystal reports designer. When I try run the report through my Java application using the Crystal Report Viewer (v10) I get the following error:

com.crystaldecisions.report.web.viewer.CrystalReportViewer For input string: "*"

I tried to alter the select statement to refer to a specific column:

SELECT COUNT(TARIFFEDINVOICELINE.TILM_TARIFFCODE)  FROM TARIFFEDINVOICELINE JOIN COMMERCIALINVOICE ON COMMERCIALINVOICE.CI_BATCHID = TARIFFEDINVOICELINE.TILM_INVBATCHID  WHERE COMMERCIALINVOICE.CI_BATCHKEYREF = 'JB0001/07'

It previews perfectly in the Crystal report designer but again when I try view in my Java application using Crystal report view I get this error:

com.crystaldecisions.report.web.viewer.CrystalReportViewer java.lang.NullPointerException

I've got no idea what could be causing this.

Does anyone have any ideas, any advice will be appreciated!!!!

Michael


Edited by michaelwl - 03 Aug 2007 at 12:22am
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 03 Aug 2007 at 8:26am
Sorry, but I'm not a java guy. Don't know if there is anyone else on here who can help since it's mostly a .NET or XI crowd.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
michaelwl
Newbie
Newbie
Avatar

Joined: 02 Aug 2007
Location: South Africa
Online Status: Offline
Posts: 11
Quote michaelwl Replybullet Posted: 05 Aug 2007 at 1:47am
Thanks for the reply... Does anyone here have any ideas that perhaps works with Java... ? Or does anyone know another site where I could get info from?

Wouldn't the Crystal Report View for java and .NET work similarly? If so, is anyone experiencing similar problems when adding a SQL Command to their report?

Thanks...
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 05 Aug 2007 at 8:44pm
Unfortunately, .NET and Java use totally different object models. Go figure.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.018 seconds.