octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45290] calling java from octave: NullPointerE


From: anonymous
Subject: [Octave-bug-tracker] [bug #45290] calling java from octave: NullPointerException in parameter conversion of string array (cellarray -> String[])
Date: Wed, 10 Jun 2015 10:17:57 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

URL:
  <http://savannah.gnu.org/bugs/?45290>

                 Summary: calling java from octave: NullPointerException in
parameter conversion of string array (cellarray -> String[])
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 10 Jun 2015 10:17:55 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: T Herzke
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

This was working fine in octave 3.8.2, but produces an error in octave 4.0.0.
Tested on Linux with self-compiled executable and also on windows using the
official binaries.

Steps to reproduce:

runtime = javaMethod('getRuntime','java.lang.Runtime');
process = runtime.exec({'echo','x'})

expected result:
process = 
<Java object: java.lang.ProcessImpl>

actual result:
error: [java] java.lang.NullPointerException

The octave error is triggered in libinterp/octave-value/ov-java.cc line 715,
where a java exception in the parameter conversion code is detected and
reported.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45290>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]