PDF Generation Error

View: New views
5 Messages — Rating Filter:   Alert me  

PDF Generation Error

by LastJedi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

 

I tried using the PDF generator using the latest 0.3 JAR.

 

Followed the steps as mentioned in the

 

http://docs.codehaus.org/display/SONAR/Sonar+PDF+Plugin

 

On executing, I got an Exception

 

mvn sonar:sonar -Dsonar.host.url=http://localhost:8007/ -Dmaven.test.skip=true -Dsonar.projectDate=2009-10-17

 

[INFO] [pdf-report:generate]

[INFO] No report type provided. Default report selected (Team workbook)

[INFO] Retrieving project info for be.telenet:comm.lang

[ERROR] Cant access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://localhost:8007//api/resources?resource=be.telenet:comm.lang&depth=0&format=xml

java.io.IOException: Cant access to Sonar or project doesn't exist on Sonar instance.

        at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:51)

        at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:107)

        at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:109)

 

 

I realised that the trailing slash in the URL argument was causing this. This trailing slash must be ignored…by the PDF generator as it is pretty common to add trailing slashes on a URL.

-Dsonar.host.url=http://localhost:8007/

 

I changed to -Dsonar.host.url=http://localhost:8007 and it worked fine.

 

 

 

 

 

 

 

 

 

Regards

 

Saket L.C

Technical Architect | CME | TELENET | Extn 74100

 

I think I've discovered the secret of life - you just hang around until you get used to it.

--Charles Schulz

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Re: PDF Generation Error

by Olivier Gaudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Saket,

Can you create a Jira ticket for this, please ?

Thanks

Olivier


2009/10/16 Saket Lakshminarayan Chiluveru <Saket_Chiluveru@...>

Hi,

 

 

I tried using the PDF generator using the latest 0.3 JAR.

 

Followed the steps as mentioned in the

 

http://docs.codehaus.org/display/SONAR/Sonar+PDF+Plugin

 

On executing, I got an Exception

 

mvn sonar:sonar -Dsonar.host.url=http://localhost:8007/ -Dmaven.test.skip=true -Dsonar.projectDate=2009-10-17

 

[INFO] [pdf-report:generate]

[INFO] No report type provided. Default report selected (Team workbook)

[INFO] Retrieving project info for be.telenet:comm.lang

[ERROR] Cant access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://localhost:8007//api/resources?resource=be.telenet:comm.lang&depth=0&format=xml

java.io.IOException: Cant access to Sonar or project doesn't exist on Sonar instance.

        at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:51)

        at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:107)

        at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:109)

 

 

I realised that the trailing slash in the URL argument was causing this. This trailing slash must be ignored…by the PDF generator as it is pretty common to add trailing slashes on a URL.

-Dsonar.host.url=http://localhost:8007/

 

I changed to -Dsonar.host.url=http://localhost:8007 and it worked fine.

 

 

 

 

 

 

 

 

 

Regards

 

Saket L.C

Technical Architect | CME | TELENET | Extn 74100

 

I think I've discovered the secret of life - you just hang around until you get used to it.

--Charles Schulz

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


RE: PDF Generation Error

by LastJedi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Done

http://jira.codehaus.org/browse/SONARPLUGINS-260

 

 

 

Regards

 

Saket L.C

Technical Architect | CME | TELENET | Extn 74100

 

I think I've discovered the secret of life - you just hang around until you get used to it.

--Charles Schulz

 

From: Olivier Gaudin [mailto:gaudol@...]
Sent: Friday, October 16, 2009 3:33 PM
To: user@...
Subject: Re: [sonar-user] PDF Generation Error

 

Hello Saket,

Can you create a Jira ticket for this, please ?

Thanks

Olivier

2009/10/16 Saket Lakshminarayan Chiluveru <Saket_Chiluveru@...>

Hi,

 

 

I tried using the PDF generator using the latest 0.3 JAR.

 

Followed the steps as mentioned in the

 

http://docs.codehaus.org/display/SONAR/Sonar+PDF+Plugin

 

On executing, I got an Exception

 

mvn sonar:sonar -Dsonar.host.url=http://localhost:8007/ -Dmaven.test.skip=true -Dsonar.projectDate=2009-10-17

 

[INFO] [pdf-report:generate]

[INFO] No report type provided. Default report selected (Team workbook)

[INFO] Retrieving project info for be.telenet:comm.lang

[ERROR] Cant access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://localhost:8007//api/resources?resource=be.telenet:comm.lang&depth=0&format=xml

java.io.IOException: Cant access to Sonar or project doesn't exist on Sonar instance.

        at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:51)

        at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:107)

        at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:109)

 

 

I realised that the trailing slash in the URL argument was causing this. This trailing slash must be ignoredby the PDF generator as it is pretty common to add trailing slashes on a URL.

-Dsonar.host.url=http://localhost:8007/

 

I changed to -Dsonar.host.url=http://localhost:8007 and it worked fine.

 

 

 

 

 

 

 

 

 

Regards

 

Saket L.C

Technical Architect | CME | TELENET | Extn 74100

 

I think I've discovered the secret of life - you just hang around until you get used to it.

--Charles Schulz

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

 


Re: PDF Generation Error

by Antonio Manuel Muñiz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Saket and Olivier :)

2009/10/16 Saket Lakshminarayan Chiluveru <Saket_Chiluveru@...>

Done

http://jira.codehaus.org/browse/SONARPLUGINS-260

 

 

 

Regards

 

Saket L.C

Technical Architect | CME | TELENET | Extn 74100

 

I think I've discovered the secret of life - you just hang around until you get used to it.

--Charles Schulz

 

From: Olivier Gaudin [mailto:gaudol@...]
Sent: Friday, October 16, 2009 3:33 PM
To: user@...
Subject: Re: [sonar-user] PDF Generation Error

 

Hello Saket,

Can you create a Jira ticket for this, please ?

Thanks

Olivier

2009/10/16 Saket Lakshminarayan Chiluveru <Saket_Chiluveru@...>

Hi,

 

 

I tried using the PDF generator using the latest 0.3 JAR.

 

Followed the steps as mentioned in the

 

http://docs.codehaus.org/display/SONAR/Sonar+PDF+Plugin

 

On executing, I got an Exception

 

mvn sonar:sonar -Dsonar.host.url=http://localhost:8007/ -Dmaven.test.skip=true -Dsonar.projectDate=2009-10-17

 

[INFO] [pdf-report:generate]

[INFO] No report type provided. Default report selected (Team workbook)

[INFO] Retrieving project info for be.telenet:comm.lang

[ERROR] Cant access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://localhost:8007//api/resources?resource=be.telenet:comm.lang&depth=0&format=xml

java.io.IOException: Cant access to Sonar or project doesn't exist on Sonar instance.

        at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:51)

        at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:107)

        at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:109)

 

 

I realised that the trailing slash in the URL argument was causing this. This trailing slash must be ignoredby the PDF generator as it is pretty common to add trailing slashes on a URL.

-Dsonar.host.url=http://localhost:8007/

 

I changed to -Dsonar.host.url=http://localhost:8007 and it worked fine.

 

 

 

 

 

 

 

 

 

Regards

 

Saket L.C

Technical Architect | CME | TELENET | Extn 74100

 

I think I've discovered the secret of life - you just hang around until you get used to it.

--Charles Schulz

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

 




--
* Antonio Manuel Muñiz
* amunizmartin.wordpress.com
* amunizmartin@...

Re: PDF Generation Error

by Antonio Manuel Muñiz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Saket,

It is solved in trunk. It will be available in PDF Report Plugin 0.4.

Thanks for your feedback.

2009/10/17 Antonio Manuel Muñiz <amunizmartin@...>
Thanks Saket and Olivier :)


2009/10/16 Saket Lakshminarayan Chiluveru <Saket_Chiluveru@...>

Done

http://jira.codehaus.org/browse/SONARPLUGINS-260

 

 

 

Regards

 

Saket L.C

Technical Architect | CME | TELENET | Extn 74100

 

I think I've discovered the secret of life - you just hang around until you get used to it.

--Charles Schulz

 

From: Olivier Gaudin [mailto:gaudol@...]
Sent: Friday, October 16, 2009 3:33 PM
To: user@...
Subject: Re: [sonar-user] PDF Generation Error

 

Hello Saket,

Can you create a Jira ticket for this, please ?

Thanks

Olivier

2009/10/16 Saket Lakshminarayan Chiluveru <Saket_Chiluveru@...>

Hi,

 

 

I tried using the PDF generator using the latest 0.3 JAR.

 

Followed the steps as mentioned in the

 

http://docs.codehaus.org/display/SONAR/Sonar+PDF+Plugin

 

On executing, I got an Exception

 

mvn sonar:sonar -Dsonar.host.url=http://localhost:8007/ -Dmaven.test.skip=true -Dsonar.projectDate=2009-10-17

 

[INFO] [pdf-report:generate]

[INFO] No report type provided. Default report selected (Team workbook)

[INFO] Retrieving project info for be.telenet:comm.lang

[ERROR] Cant access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://localhost:8007//api/resources?resource=be.telenet:comm.lang&depth=0&format=xml

java.io.IOException: Cant access to Sonar or project doesn't exist on Sonar instance.

        at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:51)

        at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:107)

        at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:109)

 

 

I realised that the trailing slash in the URL argument was causing this. This trailing slash must be ignoredby the PDF generator as it is pretty common to add trailing slashes on a URL.

-Dsonar.host.url=http://localhost:8007/

 

I changed to -Dsonar.host.url=http://localhost:8007 and it worked fine.

 

 

 

 

 

 

 

 

 

Regards

 

Saket L.C

Technical Architect | CME | TELENET | Extn 74100

 

I think I've discovered the secret of life - you just hang around until you get used to it.

--Charles Schulz

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

 




--
* Antonio Manuel Muñiz
* amunizmartin.wordpress.com
* amunizmartin@...



--
* Antonio Manuel Muñiz
* amunizmartin.wordpress.com
* amunizmartin@...