[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-08-31 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on NIFI-4279:
---

Commit 1b73578c48d66f6bab7b90f49cbe837a4d7169c0 in nifi's branch 
refs/heads/master from [~lars_francke]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=1b73578 ]

NIFI-5408 Add documentation for NIFI-4279

This closes #2878

Signed-off-by: Mike Thomsen 


> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
> Fix For: 1.8.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on NIFI-4279:
--

Github user lfrancke commented on the issue:

https://github.com/apache/nifi/pull/2874
  
@mattyb149 I'd still argue that adding a hint to the JIRA would be a good 
thing. Now there's no context at all. What is the bug you're referring to?

Sure, I can dig in the history but all it takes is a "see NIFI-4279", shall 
I open a new issue for that?


> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
> Fix For: 1.8.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on NIFI-4279:
--

Github user asfgit closed the pull request at:

https://github.com/apache/nifi/pull/2874


> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
> Fix For: 1.8.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on NIFI-4279:
---

Commit e13602f752144e13969f7a08f0b476c61f6edac9 in nifi's branch 
refs/heads/master from patricker
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=e13602f ]

NIFI-4279 PutDatabaseRecord and ConvertJSONToSQL stream has already been closed 
error on Oracle

Signed-off-by: Matthew Burgess 

This closes #2874


> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
> Fix For: 1.8.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on NIFI-4279:
--

Github user mattyb149 commented on the issue:

https://github.com/apache/nifi/pull/2874
  
+1 LGTM, reproduced the issue before this fix, and verified the correct 
behavior is implemented. Sorry you had to do this lol, but very thankful for 
the fix! Merging to master


> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
> Fix For: 1.8.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on NIFI-4279:
--

Github user mattyb149 commented on the issue:

https://github.com/apache/nifi/pull/2874
  
Reviewing... (I think since the link is in the Jira already that should be 
fine)


> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on NIFI-4279:
--

Github user patricker commented on the issue:

https://github.com/apache/nifi/pull/2874
  
@lfrancke I considered adding a link to the article or ticket, but it's not 
something that I see done frequently in NiFi; if you feel it makes sense to do 
so in this scenario I gladly will.

Thanks for the additional research, good to see other people resolved the 
same issue 13 years ago in another project :)




> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on NIFI-4279:
--

Github user lfrancke commented on the issue:

https://github.com/apache/nifi/pull/2874
  
I did read the JIRA and referenced article. I also found 
https://jira.apache.org/jira/browse/DDLUTILS-29 which fixes the same issue in 
another project.

The only comment I have about the patch itself is that it'd be great to add 
a link to the comment (for example to either the blog post or the NIFI-4279 
issue itself.


> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on NIFI-4279:
--

GitHub user patricker opened a pull request:

https://github.com/apache/nifi/pull/2874

NIFI-4279 PutDatabaseRecord and ConvertJSONToSQL stream has already b…

…een closed error on Oracle

Make sure to read the Jira, and this article, 
https://blog.jooq.org/2015/12/30/oracle-long-and-long-raw-causing-stream-has-already-been-closed-exception/,
 before reviewing :)

### For all changes:
- [x] Is there a JIRA ticket associated with this PR? Is it referenced 
 in the commit message?

- [x] Does your PR title start with NIFI- where  is the JIRA number 
you are trying to resolve? Pay particular attention to the hyphen "-" character.

- [x] Has your PR been rebased against the latest commit within the target 
branch (typically master)?

- [x] Is your initial contribution a single, squashed commit?

### For code changes:
- [ ] Have you ensured that the full suite of tests is executed via mvn 
-Pcontrib-check clean install at the root nifi folder?
- [ ] Have you written or updated unit tests to verify your changes?
- [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)? 
- [ ] If applicable, have you updated the LICENSE file, including the main 
LICENSE file under nifi-assembly?
- [ ] If applicable, have you updated the NOTICE file, including the main 
NOTICE file found under nifi-assembly?
- [ ] If adding new Properties, have you added .displayName in addition to 
.name (programmatic access) for each of the new properties?

### For documentation related changes:
- [ ] Have you ensured that format looks appropriate for the output in 
which it is rendered?

### Note:
Please ensure that once the PR is submitted, you check travis-ci for build 
issues and submit an update to your PR as soon as possible.


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

$ git pull https://github.com/patricker/nifi NIFI-4279

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

https://github.com/apache/nifi/pull/2874.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 #2874


commit f49697aa72609f86c92a2a2f7caac94f0e22a392
Author: patricker 
Date:   2018-07-10T17:28:40Z

NIFI-4279 PutDatabaseRecord and ConvertJSONToSQL stream has already been 
closed error on Oracle




> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.3.0
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-4279) PutDataBaseRecord and ConvertJSONToSQL stream has already been closed

2018-07-10 Thread Peter Wicks (JIRA)


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

Peter Wicks commented on NIFI-4279:
---

Based on research by [~Max Kelada], this is an issue with how the Oracle API 
handles default values.

[https://blog.jooq.org/2015/12/30/oracle-long-and-long-raw-causing-stream-has-already-been-closed-exception/]

Submitting a patch for this issue to cover PutDatabaseRecord and 
ConvertJSONToSQL, as these are the only two processors who read this schema 
property.

> PutDataBaseRecord and ConvertJSONToSQL stream has already been closed
> -
>
> Key: NIFI-4279
> URL: https://issues.apache.org/jira/browse/NIFI-4279
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.3.0
> Environment: we have used nifi on openshift cluster and standalone on 
> a linux machine.
> Oracle database with version 11.2.0.2
> linux with rhel 7.0
>Reporter: simon water
>Assignee: Peter Wicks
>Priority: Minor
>  Labels: database, nifi, patch, processor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have created a table in an Oracle Database with a default sysdate column.
> when i restarted the processor it started throwing the stream has already 
> been closed exception
> i have used a csv file with the headers inside of it
> csv Reader that reads the column names from the csv
> the data base version is 11.2.0 Oracle database



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)