Skip to Content
0
Former Member
Apr 20, 2009 at 03:47 PM

Group Tree: Error in Ajax response -> message: missing } in XML expression

60 Views

Hi,

We were using a previous version of Crystal libs and viewer. I wanted to get up to date with the latest jars and viewer so I downloaded and installed the version with Eclipse 3.4.1 and crystal development bundled together.

I've copied the new jars from there into my existing project. I've also copied the folder cyrstalreportviewers into the project. We're using Tomcat 6.

I've now got a problem with the Group Tree at the moment since I started using the latest libraries and crystal report viewers.

My web.xml looks like this.

        <context-param>
		<param-name>crystal_image_uri</param-name>
		<param-value>/crystalreportviewers</param-value>
	</context-param>

	<context-param>
		<param-name>crystal_image_use_relative</param-name>
		<param-value>webapp</param-value>
	</context-param>

        <servlet id="CrystalReportViewerServlet">
		<servlet-name>CrystalReportViewerServlet</servlet-name>
		<display-name>CrystalReportViewerServlet</display-name>
		<servlet-class>
			web.servlet.ReportingViewerServlet
		</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>

       <servlet-mapping id="CrystalReportViewerServletMapping">
		<servlet-name>CrystalReportViewerServlet</servlet-name>
		<url-pattern>/CrystalReportViewerHandler</url-pattern>
	</servlet-mapping>

A request to the uri https://......../WebApp/CrystalReportViewerHandler?id=3

The servlet doesn't do anything that seems to be uncommon. I can post more precisely what it does if needed.

The report will load correctly, I don't get an error page asking if my crystalreportviewers/ path is accessable to the server.

I get a parameter page asking for a value. I enter that and click OK.

The viewer sends a POST request to my Servlet and is handled correctly.

The report is then loaded.

On the click of an item in the Group Tree it sends an Ajax POST request and I then get the following error:

message: missing } in XML expression
fileName: https://localhost:8080/WebApp/crystalreportviewers/allInOne.js
lineNumber: 10
stack: ()@:0
eval("(\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n)")@:0
([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
([object Object],[object Object],[object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:12
([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
()@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
([object Object],[object Event])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
([object Event])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10

name: SyntaxError

Clicking on the Groups headers on the right hand pane work as expected. Although I notice they are not Ajax requests.

I've spent a few days at this now and I feel like I'm running out of options but to revert back to the previous version we were using. I presume this works elsewhere so I've got to be doing something incorrectly with my setup.

If anyone needs more info then please ask.

Thanks,

Patrick