Project: talenddataquality
Issue TDQ-5097: Failed to generate report file in command line
while I tried to generate a report via commandline, (executeReport -n label -p path) I got this error and no report file generated .. talend> java.lang.NullPointerException at org.talend.core.model.metadata.builder.connection.util.ConnectionSwitch.doSwitch(ConnectionSwitch.java:108) at org.talend.core.model.metadata.builder.database.JavaSqlFactory.getUsername(JavaSqlFactory.java:262) at org.talend.cwm.db.connection.ConnectionUtils.isConnectionAvailable(ConnectionUtils.java:286) at org.talend.dataprofiler.core.tdq.action.ReportDocGenerator.validateReport(ReportDocGenerator.java:188) at org.talend.dataprofiler.core.tdq.action.ReportDocGenerator.generate(ReportDocGenerator.java:147) at org.talend.datacleansing.core.service.TDQReportService.executeReport(TDQReportService.java:63) at org.talend.commandline.command.CommandProcessor.executeReport(CommandProcessor.java:622) at org.talend.commandline.command.ExtensionCommandSwitch.caseExecuteReportCommand(ExtensionCommandSwitch.java:76 ) at org.talend.commandline.client.command.extension.AbstractExtensionCommandSwitch.doSwitch(AbstractExtensionComm andSwitch.java:35) at org.talend.commandline.command.CommandProcessorSwitch.caseExtensionCommand(CommandProcessorSwitch.java:161) at org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:70) at org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:52) at org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:33) at org.talend.commandline.mode.ServerCommandLine$CommmandConsumerRunnable.run(ServerCommandLine.java:139) at java.lang.Thread.run(Unknown Source)
Story points: 5