[ 
https://issues.apache.org/jira/browse/APEXMALHAR-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15319562#comment-15319562
 ] 

ASF GitHub Bot commented on APEXMALHAR-2113:
--------------------------------------------

GitHub user devtagare opened a pull request:

    https://github.com/apache/apex-malhar/pull/314

    APEXMALHAR-2113 bug fix, app test case,updated test cases

    @bhupeshchawda could you please review and merge

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/devtagare/incubator-apex-malhar 
APEXMALHAR-2113-JdbcPOJOOutputOperatorFix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/apex-malhar/pull/314.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #314
    
----
commit d10cfb040a530115bf667333be6c299a9a7baaff
Author: devtagare <devtag...@gmail.com>
Date:   2016-06-07T18:28:34Z

    APEXMALHAR-2113 bug fix, app test case,updated test cases

----


> JdbcPOJOOutputOperator
> ----------------------
>
>                 Key: APEXMALHAR-2113
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2113
>             Project: Apache Apex Malhar
>          Issue Type: Bug
>            Reporter: devendra tagare
>            Assignee: devendra tagare
>             Fix For: 3.5.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> getUpdateCommand(); is marked as @NotNull in the 
> AbstractJdbcTransactionableOutputOperator which is used by 
> JdbcPOJOOutputOperator.
> This method is referenced during the validation phase of DAG and 
> updateCommand is initialized only at setup.This is causing the DAG 
> initialization to fail on constraints violation.
> Stack trace below,
> An error occurred trying to launch the application. Server message: 
> javax.validation.ConstraintViolationException: Operator JdbcOutput violates 
> constraints 
> [ConstraintViolationImpl{rootBean=JdbcPOJOOutputOperator{name=null}, 
> propertyPath='updateCommand', message='may not be null', 
> leafBean=JdbcPOJOOutputOperator{name=null}, value=null}] at 
> com.datatorrent.stram.plan.logical.LogicalPlan.validate(LogicalPlan.java:1680)
>  at com.datatorrent.stram.StramClient.<init>(StramClient.java:161) at 
> com.datatorrent.stram.client.StramAppLauncher.launchApp(StramAppLauncher.java:509)
>  at com.datatorrent.stram.cli.DTCli$LaunchCommand.execute(DTCli.java:2050) at 
> com.datatorrent.stram.cli.DTCli.launchAppPackage(DTCli.java:3456) at 
> com.datatorrent.stram.cli.DTCli.access$7100(DTCli.java:106) at 
> com.datatorrent.stram.cli.DTCli$LaunchCommand.execute(DTCli.java:1895) at 
> com.datatorrent.stram.cli.DTCli$3.run(DTCli.java:1449)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to