Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX Code Coverage - HTTP ERROR 500: (10 Items)
   
QNX Code Coverage - HTTP ERROR 500  
Hi,

I am able to import all the code coverage files from my target and when I try to generate a code coverage report on my 
QNX IDE (Version: 4.7.0), I get this error: 

***********************************************************
HTTP ERROR 500
Problem accessing /qnx-coverage/coverage. Reason: 

    Exception occurred during ctor/Transformation:
debug is false
Parsing XSL Stylesheet Document from configuration: /webapp/WEB-INF/xslt/cov-html.xslt
Performing transformation...

javax.xml.transform.TransformerException: java.lang.NullPointerException

***********************************************************

Any help on this would be appreciated.

Regards
Sunil Keshava
Re: QNX Code Coverage - HTTP ERROR 500  
Can you send your workspace log file? It's under
<workspace>/.metadata/.log


-----Original Message-----
From: Sunil Keshava <community-noreply@qnx.com>
Reply-to: post69539@community.qnx.com
To: momentics-community <post69539@community.qnx.com>
Subject: QNX Code Coverage - HTTP ERROR 500
Date: Tue, 5 Oct 2010 06:37:55 -0400 (EDT)

Hi,

I am able to import all the code coverage files from my target and when I try to generate a code coverage report on my 
QNX IDE (Version: 4.7.0), I get this error: 

***********************************************************
HTTP ERROR 500
Problem accessing /qnx-coverage/coverage. Reason: 

    Exception occurred during ctor/Transformation:
debug is false
Parsing XSL Stylesheet Document from configuration: /webapp/WEB-INF/xslt/cov-html.xslt
Performing transformation...

javax.xml.transform.TransformerException: java.lang.NullPointerException

***********************************************************

Any help on this would be appreciated.

Regards
Sunil Keshava


Re: QNX Code Coverage - HTTP ERROR 500  
Attached is the .log file.

Let me know if you need any other info.
Attachment: Text .log 66.93 KB
RE: QNX Code Coverage - HTTP ERROR 500  
Did you import the Code Coverage data to a workspace project? If yes did you build that project with "Code Coverage" 
option enabled?

Here is the steps to import coverage data:

http://www.qnx.com/developers/docs/6.5.0/topic/com.qnx.doc.ide.userguide/topic/coverage_IMPGCCCODE_.html


Attachment: Text winmail.dat 2.38 KB
Re: RE: QNX Code Coverage - HTTP ERROR 500  
Yes, I was able to import my code coverage files (*.gcda) from my target (as per steps given in QNX documentation). And 
I am also able to see the code coverage percentage for each file in my "Code Coverage Sessions" window.  But the 
generate report fails with the HTTP 500 error.

I did build my project with code coverage. My project is a standard make project where we have written the makefiles. I 
have added these options to my make files to build it with code coverage:

# For Code Coverage
CCFLAGS+= -fprofile-arcs -ftest-coverage -g 
LDFLAGS+= -fprofile-arcs -ftest-coverage -p -g
EXTRA_CLEAN = -f *.gcno *.d 

After the build, I see te *.gcno files also being built by the compiler.

While searching the web, I found that a HTTP ERROR 500 is due to some issue with the web server and that there might be 
nothing wrong on the client side. Dont know if this info really help - http://www.checkupdown.com/status/E500.html

Re: RE: QNX Code Coverage - HTTP ERROR 500  
I am still facing this issue while generating code coverage reports. Does anyone know how to fix this problem? 

Hoping to find a solution soon.

Regards
Sunil
Re: RE: QNX Code Coverage - HTTP ERROR 500  
Are you possible to export your project, including your code coverage data, to a zip file and attach to this thread? I  
can't re-produce your issue with my test project.
Re: RE: QNX Code Coverage - HTTP ERROR 500  
Hi Sunil,
Are you able to solve the problem. I'm facing same issue while generating the code coverage report. 

Please post the solution, if you already found it.

Thanks,
Murugaiyan
Re: RE: QNX Code Coverage - HTTP ERROR 500  
I can solve the http error 500 after following the work around solution suggested by QNX. 

The problem can be a bug in the IDE that we noticed recently in the IDE 7.0. The code for 6.6 appears to have the same 
issue. Reference number is jira  2221099.
 
The issue seems to be that the name of the folder where the coverage project is stored on disk does not match the name 
of the coverage project in the IDE. The hope is to have this fixed by the next release of Momentics, but the workaround 
is to rename the coverage project in the IDE to match the name of its containing folder on disk.
 
Can this be your problem? Please make sure the IDE project name and the name on the disk match.
Re: QNX Code Coverage - HTTP ERROR 500  
> Hi,
> 
> I am able to import all the code coverage files from my target and when I try 
> to generate a code coverage report on my QNX IDE (Version: 4.7.0), I get this 
> error: 
> 
> ***********************************************************
> HTTP ERROR 500
> Problem accessing /qnx-coverage/coverage. Reason: 
> 
>     Exception occurred during ctor/Transformation:
> debug is false
> Parsing XSL Stylesheet Document from configuration: /webapp/WEB-INF/xslt/cov-
> html.xslt
> Performing transformation...
> 
> javax.xml.transform.TransformerException: java.lang.NullPointerException
> 
> ***********************************************************
> 
> Any help on this would be appreciated.
> 
> Regards
> Sunil Keshava

The first thing you need to know about an "Internal Server Error" is that the error can only be resolved by fixes to the
 Web server software. It is not a client-side problem meaning that the problem is not with your browser, your computer, 
or your internet connection. However, there are often ways to quickly get around the problem:

Check the Error Logs
Errors in .htaccess files
Clear your browser cookies and cache
Reload or Refresh the Webpage 

Not Yet?

If you've tried to troubleshoot your 500 server error and still can't fix it, then you may need to speak to your web 
host and see if they are able to find what process or script is causing the error.

http://net-informations.com/q/mis/500.html