Questions tagged [janino]

Janino is a super-small, super-fast Java™ compiler.

Official page: http://docs.codehaus.org/display/JANINO/Home#Home-what

Documentation: http://docs.codehaus.org/display/JANINO/Documentation

59 questions
24
votes
5 answers

Apache Spark Codegen Stage grows beyond 64 KB

I'm getting an error when I'm feature engineering on 30+ columns to create about 200+ columns. It is not failing the job, but the ERROR shows. I want to know how can I avoid this. Spark - 2.3.1 Python - 3.6 Cluster Config - 1 Master - 32 GB RAM, 16…
Aakash Basu
  • 1,689
  • 7
  • 28
  • 57
21
votes
1 answer

Logback: "Could not find Janino library on the class path"

I'm getting error message Could not find Janino library on the class path. Skipping conditional processing. What should I incude in classpath to fix this (lib and version)?
fedor.belov
  • 22,343
  • 26
  • 89
  • 134
15
votes
5 answers

Overriding line number in generated Java source

Is there any way to override the line numbers in Java (e.g., by using some kind of preprocessor directive)? I am "compiling" a high-level language, down to Java byte code using Janino. I need compiler errors to report the line from the original…
Ryan Emerle
  • 15,461
  • 8
  • 52
  • 69
6
votes
3 answers

Options for dynamic compilation in Java 5

Are there any options other than Janino for on-the-fly compiliation and execution of Java code in v5? I know v6 has the Compiler API, but I need to work with the v5 VM. I essentially need to take a string containing a complete Java class, compile…
Ryan Emerle
  • 15,461
  • 8
  • 52
  • 69
5
votes
1 answer

How does the condition functionality work in Logback?

I use this logback configuration file: %d{HH:mm:ss.SSS} [%-10.-10thread] %-5level %-30logger{1} - %msg%n
theomega
  • 31,591
  • 21
  • 89
  • 127
4
votes
2 answers

"else if" in janino logback configuration

I am trying to use janino conditional statements in logback configuration and it is working fine with "if" and "else". But I want to ask if there is it possible to write "else if" in it? My case -
Popeye
  • 1,548
  • 3
  • 25
  • 39
4
votes
1 answer

Compiling java with Janino (broken Classpath)

I Am trying to compile very simple class with Janino: import org.codehaus.commons.compiler.CompileException; import org.codehaus.janino.ClassBodyEvaluator; import java.io.IOException; import java.io.StringReader; public class JaninoTest{ …
Purple
  • 711
  • 2
  • 10
  • 19
4
votes
2 answers

Different logfile for integration testing

I am using SL4j and Logback for a web application hosted in Tomcat. I use Spring and Maven (no profiles). Integration testing is done with the Surefire plugin: org.apache.maven.plugins
ChrLipp
  • 15,526
  • 10
  • 75
  • 107
3
votes
1 answer

Janino cant find java.sql.PreparedStatement if mvn test

A simple unit test (without junit) gives weird exception import java.io.StringReader; import java.sql.PreparedStatement; import org.codehaus.janino.SimpleCompiler; public class TestJanino { public void testJanino() throws Exception { …
Grim
  • 1,938
  • 10
  • 56
  • 123
3
votes
1 answer

Closing single quote missing while comparing strings in XML for Logback with Janino

Using Logback's conditional processing to compare two Strings in a Logback XML configuration file as follows ... ... results in the…
Kumar
  • 51
  • 7
3
votes
1 answer

conditions in logback configuration

I'm trying to remove redundant logback config files by using janino's conditional processing. Below is the conditional logic which I had added