[#2646] - Installitions NullpointerException

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Critical
Resolution:
Open
Component: Reproducibility:
N/A
Assigned to:

Hi;

I want to install jasperserrver on my PC. I am following WAR install document direction.(Steps). js-install.bat shows build failed.

MyConfiguration.

Windows 7 64Bit
MySQL 5.5
Oracle Glassfish 3.1.2.2

default_master.properties is passed (Glassfish Folder,MySQL Database)

Install Log

----------------------------------------------------------------------
Running JasperReports Server install script at 2012-12-16_16-32
----------------------------------------------------------------------
[default]
Running install-normal-ce Ant task
----------------------------------------------------------------------
Unable to locate tools.jar. Expected to find it in C:\Progra~1\Java\jre7\lib\tools.jar
Buildfile: C:\Jaspersoft\buildomatic\build.xml
[echo] Filtering properties (cleaning out blank spaces)
[echo] using settings file: C:/Jaspersoft/buildomatic/build_conf/default/maven_settings.xml

gen-config:
[echo] Regen config files if they have already been cleaned:
[echo] currentConf= C:/Jaspersoft/buildomatic/build_conf/default

test-ce-all-props:
[echo] Checking properties:
[echo] appServerType=glassfish3
[echo] appServerDir=C:\glassfish3
[echo] dbType=mysql
[echo] dbHost=localhost
[echo] dbUsername=jasperserver
[echo] dbPassword=**********
[echo] dbPort=3306
[echo] js.dbName=jasperserver
[echo] sugarcrm.dbName=sugarcrm
[echo] foodmart.dbName=foodmart
[echo] webAppNameCE=jasperserver

check-dbtype-ce:

test-appServerType-ce:

do-install-upgrade-test:
[echo] Checking DBMS host and port:
[echo] About to validate host: localhost
[echo] Host localhost is OK
[echo] Done validating host: localhost
[echo] About to validate port: localhost:3306
[echo] Port 3306 is OK
[echo] Done validating port: localhost:3306
[echo] Validating administrative database connection at jdbc:mysql://localhost:3306/mysql. Phase: [test]
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Executing commands
[advanced-sql] 1 of 1 SQL statements executed successfully
[echo] Connection OK
[echo] Validating JasperServer database connection at jdbc:mysql://localhost:3306/jasperserver?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true. Phase: [test]
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Executing commands
[advanced-sql] 1 of 1 SQL statements executed successfully
[echo] Connection OK

do-pre-install-test:
[echo] Validating FoodMart database connection at jdbc:mysql://localhost:3306/foodmart?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true. Phase: [test]
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Failed to connect: Unknown database 'foodmart'
[echo] Connection failed:
[echo] SQLState: 42000
[echo] Vendor specific error code: 1049
[echo] Message: [Unknown database 'foodmart']
[echo] Database doesn't exist. Treating problem with JDBC connection as noncritical. Proceeding to next step
[echo] Validating SugarCRM database connection at jdbc:mysql://localhost:3306/sugarcrm?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true. Phase: [test]
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Failed to connect: Unknown database 'sugarcrm'
[echo] Connection failed:
[echo] SQLState: 42000
[echo] Vendor specific error code: 1049
[echo] Message: [Unknown database 'sugarcrm']
[echo] Database doesn't exist. Treating problem with JDBC connection as noncritical. Proceeding to next step

pre-install-test-ce:

recreate-js-db:
[echo] Validating JasperServer database connection at jdbc:mysql://localhost:3306/jasperserver?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true. Phase: [before]
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Executing commands
[advanced-sql] 1 of 1 SQL statements executed successfully
[echo] Connection OK
[input] Database [jasperserver] already exists. Drop it and create new? WARNING: All existing data will be lost! This operation may not be rolled back. Enter 'y' to recreate or 'n' to skip this step. Default is 'n' (y, [n])
[echo] Filtering properties (cleaning out blank spaces)
[echo] using settings file: C:/Jaspersoft/buildomatic/build_conf/default/maven_settings.xml

drop-js-db:
[echo] Dropping database. js.dbName = jasperserver
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Executing commands
[advanced-sql] 60 rows affected
[advanced-sql] 1 of 1 SQL statements executed successfully
[echo] Filtering properties (cleaning out blank spaces)
[echo] using settings file: C:/Jaspersoft/buildomatic/build_conf/default/maven_settings.xml

create-js-db:
[echo] Creating database, js.dbName = jasperserver, create database jasperserver character set utf8
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Executing commands
[advanced-sql] 1 rows affected
[advanced-sql] 1 of 1 SQL statements executed successfully
[echo] Validating JasperServer database connection at jdbc:mysql://localhost:3306/jasperserver?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true. Phase: [after]
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Executing commands
[advanced-sql] 1 of 1 SQL statements executed successfully
[echo] Connection OK

fill-js-ce-db-minimal:
[echo] Filtering properties (cleaning out blank spaces)
[echo] using settings file: C:/Jaspersoft/buildomatic/build_conf/default/maven_settings.xml

init-js-db-ce:
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Executing resource: C:\Jaspersoft\buildomatic\install_resources\sql\mysql\js-create.ddl
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] Executing resource: C:\Jaspersoft\buildomatic\install_resources\sql\mysql\quartz.ddl
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 0 rows affected
[advanced-sql] 144 of 144 SQL statements executed successfully
[echo] Filtering properties (cleaning out blank spaces)
[echo] using settings file: C:/Jaspersoft/buildomatic/build_conf/default/maven_settings.xml

import-minimal-ce:
[echo]
[echo] Property values (in install.xml):
[echo] archiveArg = --input-zip=C:/Jaspersoft/buildomatic/install_resources/export/js-catalog-minimal-ce.zip
[echo] dbType = mysql
[echo] jdbcJar = *.jar
[echo] currentConf = C:/Jaspersoft/buildomatic/build_conf/default
[echo] importExportConfig = C:/Jaspersoft/buildomatic/conf_source/ieCe
[echo]
[echo] Validating JasperServer database connection at jdbc:mysql://localhost:3306/jasperserver?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true. Phase: [import-export-test]
[echo] About to validate JDBC jar existence
[echo] Look in: C:/Jaspersoft/buildomatic/conf_source/db/mysql/jdbc
[echo] Found jar file: assuming OK
[advanced-sql] Executing commands
[advanced-sql] 1 of 1 SQL statements executed successfully
[echo] Connection OK

v5.0
trojanmyth's picture
Joined: Aug 4 2010 - 12:19am
Last seen: 9 years 2 months ago

2 Comments:

#1
  • Severity:Minor» Critical
  • Assigned:nobody»

I am working on jasper reports install since 2 week. I am tested with Windows 7,Windows Server 2008 R2 ,Ubuntu 12.10 the result is always the same

#2
  • Assigned:» anonymous

The only fails I see is that the sample datasources do not exist which isn't required for the minimal installation.
The copied build log does not contain any nullpointerexception - in fact - it looks like a succesful build to me. Could you explain where the exception is being thrown?

Also, Please confirm that you try to install the 5.0 CE version.

Feedback
randomness