Write Database: java.lang.NullPointerException

dcubed
dcubed New Altair Community Member
edited November 5 in Community Q&A
After looping through 911 records, the process writing to the database failed as shown below.
Any ideas on how to keep the session with the database alive (assuming that's part of the problem)?
It seems that the process opens and closes a database connection for each record in the innermost loop.
If there is another mechanism to capture the predicted values from the inner loop, please advise.

Apr 18, 2012 12:09:21 PM CONFIG: Connecting to jdbc:jtds:sqlserver://servername:1433/dbname as RapidMiner.
Apr 18, 2012 12:09:21 PM SEVERE: Process failed: operator cannot be executed. Check the log messages...
Apr 18, 2012 12:09:21 PM SEVERE: Here:          Process[1] (Process)
          subprocess 'Main Process'
            +- Read CSV[1] (Read CSV)
            +- Filter Examples[1] (Filter Examples)
            +- Set Label[1] (Set Role)
            +- Select Attributes[1] (Select Attributes)
            +- Discretize[1] (Discretize by User Specification)
            +- Nominal to Binominal[1] (Nominal to Binominal)
            +- Validation[1] (Sliding Window Validation)
          subprocess 'Training'
                |  +- Neural Net[911] (Neural Net)
          subprocess 'Testing'
                  +- Apply Model[911] (Apply Model)
                  +- Performance[912] (Performance (Classification))
      ==>        +- Write Database[911] (Write Database)
Apr 18, 2012 12:09:21 PM SEVERE: java.lang.NullPointerException
Tagged:

Answers

  • MariusHelf
    MariusHelf New Altair Community Member
    Hi,

    please post your process setup, so that we can see what you are doing right now and give you hints on how to improve it.

    Best, Marius