java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
Apache BSF: 2.4.0
Я пытаюсь использовать следующий код внутри BeanShell:
import java.util.Arrays;
import java.util.List;
// Set the mongodb query (must be a pipeline)
List query = Arrays.asList("");
И получаю следующую ошибку:
15:01:46,351 ERROR [BSFManager] Exception:
java.security.PrivilegedActionException: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``import org.pentaho.reporting.engine.classic.core.util.TypedTableModel; import j . . . '' : Typed variable declaration : Error in method invocation: Static method asList( java.lang.String ) not found in class'java.util.Arrays' : at Line: 20 : in file: inline evaluation of: ``import org.pentaho.reporting.engine.classic.core.util.TypedTableModel; import j . . . '' : Arrays .asList ( "" )
BSF info: expression at line: 1 column: columnNo
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.bsf.BSFManager.eval(BSFManager.java:442)
Есть идеи?