2,788 questions
2
votes
0
answers
67
views
Jython calls wrong method when trying to call Java method with a boolean
My Java class has several flavors of the same method with each method taking a different Java type as an argument. One takes an int, one takes a boolean, etc.
When my Python code calls method(True), ...
-2
votes
0
answers
82
views
Jython complains when a Java superclass tries to call a method that a Python subclass has overridden
I have a Java class with six subclasses. I have been converting the subclasses to Python using jython and all is working great until I hit this in one of the subclasses.
Java class
public class ...
2
votes
1
answer
89
views
Can I reuse an instance of PythonInterpreter - perhaps via PyCode object?
I have a script that I load via:
python = new PythonInterpreter();
String script = "script I loaded from somewhere"
try {
python.exec(script);
} catch (Exception e) {
...
1
vote
2
answers
60
views
How to apply Gephi layouts using Jython
I'm generating and updating multiples graphs and I'm setting features like text labels, size and color nodes. Besides I need the same process of layout Yifan Hu (It is nice, the best!) and some cases ...
0
votes
0
answers
32
views
I keep getting a failure connecting Spring Boot and Python
[update]
Sorry guys! processbuilder works fine, but it was my other problem. It was just that I didn't run it in a virtual environment with the libraries needed for my python code installed... Thanks!
...
1
vote
1
answer
70
views
ExecuteScript with Jython: 'ascii' codec can't encode character u'\ufffd' in position 28: ordinal not in range(128)
I am stuck with an error with the encoding of non-ascii characters from a FlowFile content, in NiFi. I am processing the text with an ExecuteScript processor using Jython.
The flow is a simple ...
0
votes
1
answer
765
views
How to Add Authorization Header for API Scanning in OWASP ZAP with OpenAPI?
I'm using OWASP ZAP to scan an API, and I've successfully imported the OpenAPI definition. However, I'm struggling to configure the Authorization header (specifically for a JWT token) so that it is ...
2
votes
0
answers
66
views
Update resource reference of websphere application through Jython script
I am trying to update the resource reference of datasources of a websphere application through jython script rather than providing bindings through applications’ binding XML files.
I have tried below ...
0
votes
0
answers
255
views
Best Practices for Integrating Python Scripts with Spring Boot via Jython
We're working on a Full Stack Spring Boot project. One of our team members has developed a Python script for web scraping and audio (speech) integration to interact with the data. This script has been ...
0
votes
1
answer
82
views
Jython API copy method does not seem to work
I am using the following Python 2 method, in which the parameter of the method is a Jython object (task) :
def getTaskPosition(task):
"""Gets the current position of the task in its ...
0
votes
1
answer
148
views
How can I install Jython in Sketchware?
I'm trying to use Jython in a Sketchware project to run some Python code. I'm not sure how to install and set up Jython in Sketchware. Could someone guide me through the steps required to integrate ...
0
votes
0
answers
123
views
Unable to generate tracks using TrackMate macro
I'm quite new to scripting and I've attempted to create a TrackMate macro using the tutorials online.
My images are dark spots on a light background so I have to invert the image and I also resize the ...
0
votes
1
answer
127
views
The variable is not bound error while trying to find an element using xpath (JYTHON SUT script) QF test
I have a simple SUT script (JYTHON). I'm trying to perform a basic operation wherein I'm finding a link that has the text "Welcome" and then clicking on it.I checked in the console and the ...
0
votes
1
answer
102
views
Websphere jython: How to clear messages in specific queuepoint SIBus
Sometimes cause of system intermitten or stop abnormal, hung thread, so messages stills in queuepoint of SIBus, these messages looks like dead messages, they can't continue processing also can't clear....
0
votes
1
answer
125
views
Apache POI 4.1.1 - Why is this fillPatternType error showing up?
I am getting the following error:
NameError: global name 'FillPatternType' is not defined
From this code:
oStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.index) oStyle.setFillPattern(...