java.lang.NullPointerException at net.sf.jasperreports.data.http.HttpDataService.getPropertyOrParameterValue(HttpDataService.java:504) at net.sf.jasperreports.data.http.HttpDataService.getUsername(HttpDataService.java:193) at net.sf.jasperreports.data.

0

how to solve

java.lang.NullPointerException
    at net.sf.jasperreports.data.http.HttpDataService.getPropertyOrParameterValue(HttpDataService.java:504)
    at net.sf.jasperreports.data.http.HttpDataService.getUsername(HttpDataService.java:193)
    at net.sf.jasperreports.data.http.HttpDataService.setAuthentication(HttpDataService.java:177)
    at com.jaspersoft.studio.data.adapter.JSSBuiltinDataFileServiceFactory$1.createHttpClient(JSSBuiltinDataFileServiceFactory.java:62)
    at net.sf.jasperreports.data.http.HttpDataService.getDataFileConnection(HttpDataService.java:150)
    at net.sf.jasperreports.data.DataFileUtils.createConnection(DataFileUtils.java:72)
    at net.sf.jasperreports.data.DataFileUtils.getDataStream(DataFileUtils.java:78)
    at net.sf.jasperreports.data.xml.XmlDataAdapterService.loadDataDocument(XmlDataAdapterService.java:152)
    at net.sf.jasperreports.data.xml.XmlDataAdapterService.contributeParameters(XmlDataAdapterService.java:82)
    at net.sf.jasperreports.data.AbstractDataAdapterService.test(AbstractDataAdapterService.java:122)
    at com.jaspersoft.studio.data.wizard.AbstractDataAdapterWizard$3.runOperations(AbstractDataAdapterWizard.java:162)
    at com.jaspersoft.studio.utils.jobs.CheckedRunnableWithProgress$1.run(CheckedRunnableWithProgress.java:59)
    at java.lang.Thread.run(Thread.java:745)

?

jani99harsh's picture
Joined: Mar 3 2017 - 1:12am
Last seen: 2 years 2 months ago

1 Answer:

0

Read the exception and find the problem:

NullPointerException -> getUsername

Mariano

mlopez_1's picture
909
Joined: Oct 21 2013 - 8:08am
Last seen: 1 day 6 hours ago
Feedback
randomness