68 questions
1
vote
1
answer
147
views
User-Agent header cannot be removed in jodd-http
I want to send a request without User-Agent for testing purposes. I tried to use headerRemove but it doesn't work. Is there a way to achieve this?
val request = HttpRequest.get("https://example....
0
votes
1
answer
94
views
How it is possible to use jodd.http.HttpRequest to load a page content that is generated by javascript?
I try to load a page content with:
HttpResponse response2 = HttpRequest.get(_PAGE_URL).cookies(response.cookies()).send();
In a browser, the page source is full of javascript to generate the DOM, but ...
0
votes
1
answer
149
views
The connectionTimeout seems not work after setting the proxy in jodd-http(6.0.2)
Here is my code
import jodd.http.*;
import jodd.http.net.*;
public class JoddQuestion {
public static void main(String[] args) {
SocketHttpConnectionProvider connectionProvider = new ...
0
votes
1
answer
9k
views
Exception in thread "main" java.lang.ClassCastException: class [B cannot be cast to class [C ([B and [C are in module java.base of loader 'bootstrap')
I am trying to run my java project from cmd and taking back this error:
**Exception in thread "main" java.lang.ClassCastException: class [B cannot be cast to class [C ([B and [C are in ...
1
vote
1
answer
69
views
jodd cannot sent response to view
I have an app build with joy-5.0.13 where I cannot send some variable value to the template to be rendered on screen. I'm sure its something simple that I'm missing right now.
This is my action:
@...
0
votes
0
answers
174
views
Can i watch for file/folder rename events?
Trying to implement watch file/folder events like (CREATE, DELETE, MODIFY, RENAME) with java 8 to java 11 versions for multiple platforms like windows/unix/linux with java nio package
Observed ...
0
votes
1
answer
76
views
JODD json configuration in spring project
My question is simple .
MappingJackson2HttpMessageConverter
is available in spring for data serialization from any rest service to client.
Now I am working on another project and it has ...
1
vote
1
answer
122
views
How to upload multiple files with jodd-http?
How do I upload muliple files in the same request using jodd HTTP?
I've tried something like the following but only the first file was posted.
HttpRequest httpRequest = HttpRequest
.post("...
0
votes
1
answer
66
views
Which version of jodd-http is supported on jre 7?
The current version 5.0.12, I believe, is built for Java 9. Which is the last version of jodd-http to be supported for java 7?
1
vote
1
answer
44
views
Why @PetiteInject cannot inject service in DecoraManager?
I have a DecoraManager implementation : AppDecoraManager, and want to inject a service e.g.: FooService as:
@PetiteInject
FooService fooService;
When resolveDecorator() is called I want to use ...
1
vote
1
answer
69
views
How to set maxFileSize for FileUploadFactory when using Joy?
Can someone please let me know how to configure the maxFileSize for fileUploads in Jodd, when using Joy?
I've tried in joy.props, even under [joy.madvoc] section with the earlier working:
...
1
vote
2
answers
1k
views
Jodd: Not To Serialize Empty Object
Currently we are using JODD lib to do the JSON serialization. But it always serialize the empty object. I want object non-empty object to be serialized to a Json string. How can we do that?
Expecting:...
1
vote
1
answer
63
views
How to display the conversation between server and client with Jodd
In upgrading from an older version of Jodd I cannot identify how to display the conversation between the server and the client. In the past I wrote:
smtpServer.debug(true);
imapServer.setProperty("...
1
vote
1
answer
139
views
jodd mail EmailFilter does not work
I use
receiveEmailAndMarkSeen(EmailFilter.filter().flag(Flags.Flag.SEEN,true));
to filter the message which I don't read, but the function returns empty array. If I set false it returns all the ...
1
vote
2
answers
83
views
ActionResult , exception with new Jodd version
I have some code which works Ok with jodd 3.9.1 and I want to upgrade it to jodd version 4.1.4. but I have some errors:
Example:
@POST @Action
public String save(){
... some code for validation
...
0
votes
1
answer
436
views
Using Jodd HTTP library behind proxy
I have just been handed a groovy project that is using the Jodd library (I have little experience with this). I am looking to find out how you setup configuration so that http and https calls can be ...
1
vote
2
answers
243
views
Using JoddHttp put request to send JSON with the .body() corrupts Chinese text
My method is as follows:
public String submitMaterials(String url,JSONObject params) {
return HttpRequest
.create("put", url)
.mediaType(MediaType.APPLICATION_JSON_UTF8_VALUE)
...
0
votes
1
answer
144
views
JODD Message parsing failed; <--- java.lang.NullPointerException
I'm using Jodd version 3.9 and I would like to read an outlook account (Microsoft Exchange).
]
int port = 993;
ImapSslServer imapServer = new ImapSslServer("mail.myhost.it", port, "authuser", ...
1
vote
1
answer
339
views
jodd HttpRequest form set content-type invalid
HttpRequest set form content-type invalid
@Test
public void getImgCode() {
Map<String, Object> param = new HashMap<>();
param.put("userId", "11111");
HttpRequest request = ...
0
votes
1
answer
757
views
Why does this code throw exception - Comparison method violates its general contract
I am using the following code that is throwing a IllegalArgumentException :
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.util;
import java.util.Comparator;
/*...
3
votes
1
answer
227
views
Jodd Jerry (java): how to get the contents of node itself?
Using Jodd Jerry, how to get the contents of node itself? (Jodd jerry is Java utilility)
Like jQuery:
$("selector").prop('outerHTML')
2
votes
1
answer
700
views
jodd http client How to set up Ignore certificates
The site i am using is that of a https protocol,so i want to use Ignore certificates.But I am unable to set the ignore certificate.
public class JoddHttpClientDemoApplication {
public static void ...
1
vote
1
answer
164
views
Jodd Message parsing failed
I'm using Jodd version 3.7 and I would like to read an outlook account (outlook.it).
Outlook SMTP is :
server: smtp-mail.outlook.com
port: 587 with TLS
and IMAP is :
server: imap-mail.outlook.com
...
1
vote
1
answer
144
views
Setting timeout for Jodd Imap or Pop3
I'm using Jodd Email library to send and receive emails. With Jodd SmtpServer I can set connection timeout. I have tried to read the documentation but I have not found anything. I would like to set a ...
0
votes
1
answer
85
views
jodd exmple error: Please provide ConnectionProvider implementation
i see the Jodd in 30 minutes and download the example.
but when i run the project, tomcat console
806 [ERROR] j.j.c.DefaultAppCore.start:278 - java.lang.UnsupportedOperationException: Please provide ...
1
vote
1
answer
61
views
How to tell the target JSP to use in Jodd?
Looking at the tutorial on http://joddframework.org/, one thing I cant figure out is how the target JSP is choosen. Would you help? Thank you.
1
vote
1
answer
262
views
Jodd jDateTime TimeZone: How to change timezone?
http://jodd.org/doc/jdatetime.html#timezones-and-dst
The following example shows the current time in Japan:
JDateTime jdt = new JDateTime();
jdt.setTimeZone(TimeZone.getTimeZone("Japan"));
System....
2
votes
1
answer
87
views
Does Jodd framework provide mechanism to inject petitebeans references for objects created by other frameworks
Does Jodd framework provide mechanism to inject petitebeans references for the objects created by other frameworks.
Below are scenarios
- Domain/Service objects are created by Spring Framework
- ...
0
votes
1
answer
176
views
Using jodd Java framework in netbeans web application project
I'm currently following the jodd example from jodd website, instead of using gradle I'm creating a web application project in netbeans and adding required jodd jars this the project. The reason I'm ...
2
votes
1
answer
82
views
JODD action interceptors
I cannot figure how should interceptor works as I have some MadvocAction with an @Intercepted annotation but the interceptor stack does not seems to be accessed.
@MadvocAction("index")
public class ...
1
vote
1
answer
120
views
Is there a way how to run madvoc inside of spring boot?
Is there a way to run Madvoc web microframework inside of Spring Boot?
Spring Boot allows integration of other technologies (we experimented with Apache Wicket running under Spring Boot).
Is this ...
1
vote
1
answer
55
views
After issuing an DBQuery with an insert, how can I get the generated id, so I can add it back to the DAO?
Its more than just insert, really. If I already have a partially loaded DAO, how can I load the rest of it?
What I'm going to do is to do a select query, and then use BeanCopy. I'd rather have the ...
2
votes
2
answers
266
views
HTML/HTML5 website creating using Jodd(java) framework
I've been reading about Jodd(java) framework and it looks interesting to me. But I see that it seems to be jsp/servlet based. Can you develop strictly html/html5 dynamic website without jsps with it?
1
vote
1
answer
198
views
Using Jodd on Android with proguard
Jodd is a fantastic library, but I'm having trouble when using it with the release version of my app with Proguard. It occurs with the following line of code throwing an exception detailed belowL
...
1
vote
1
answer
78
views
Jodd DbOomQuery hint with collection
I'm using Jodd DbOom to manage my queries and it's really awesome. But right now I'm are facing an undocumented situation.
I have a query that returns a list of objects(A), and each A has a list of ...
2
votes
1
answer
180
views
How can I get HttpServletRequest Object in Jodd action class?
I am using Jodd Madvoc MVC Framework. I want to get IP address of web application client. How can I get HttpServletRequest object in action class?
@MadvocAction(value = "login")
public class ...
1
vote
1
answer
120
views
What is the use of queryMap in Jodd?
Recently, I found a class name like QueryMap in Jodd. What is the use of this class? Is it an internal class of Jodd framework, or is it a utility for use?
0
votes
1
answer
560
views
Is it possible bean mapping to resultset as apache dbutils in jodd?
I'm using the jodd framework and it provides lots of utility with dboom.
My question is, can I do simple pojo mapping to a result set like ResultSetHandler by apache dbutils with the jodd dboom ...
1
vote
1
answer
121
views
Can Jodd provide functionality like apache tiles framework?
I am using jodd in my project. I am using lots of functionality jodd like madvoc , petite. I am looking functionality like apache tiles framework I have seen and read the post http://jodd.org/doc/...
1
vote
1
answer
53
views
Sqlite + Jodd is working for inserting data , selecting data but it is not worked for updating data with dboom... how can i achieve with dboom..?
I am able to insert and select data from sqlite with jodd + dboom, but i am not able to update data by dboom as sqlite in not supporting update query alias like
update tableName T1 set name ='TEST' ...
2
votes
1
answer
184
views
How to rollback transaction while we use @transaction annotation in jodd framework?
The code is this:
import static jodd.jtx.JtxPropagationBehavior.PROPAGATION_SUPPORTS;
@PetiteBean
public class FooService {
@PetiteInject
AppDao appDao;
@Transaction(propagation = ...
0
votes
2
answers
966
views
java.lang.NoSuchMethodError: jodd.Jodd.init(Ljava/lang/Class;)V
I am trying to use the Jodd-http version 3.6.6 library in a simple application. The application runs fine on a test machine which has java 1.8 installed but when I try to run the same application on ...
1
vote
1
answer
112
views
Does jodd email component support templates engine?
Jodd framework http://jodd.org/doc/email.html provides a lib for sending emails. Does it support some template engine?
1
vote
1
answer
202
views
Jodd proxy Unable to install breakpoint due to missing line number attributes
I have a jodd project that uses Proxetta and JTX for creating transactions over services classes. The issue is that when I try to debug a service class I receive :
Unable to install breakpoint ...
1
vote
1
answer
95
views
jodd build simple auth issues
I was trying to build a simple auth mechanism using madvoc and interceptors but it seems that the tutorial at
http://jodd.org/doc/example/auth-with-interceptors.html
is a little bit ...
0
votes
1
answer
325
views
jodd and jetty classNotFound (org.eclipse.jetty.client.api.Result)
I have an app build with jodd 3.6.6 and when I try to run it on jetty9 it cannot initialize Madvoc :
1377 [ERROR] j.m.Madvoc.startNewWebApplication:161 - Madvoc startup failure.
jodd.madvoc....
0
votes
1
answer
516
views
Setting timeout for Jodd HTTP client?
I am using Jodd HTTP client for testing some REST APIs. Everything works fine (great, actually:) except I am not sure how to set the socket time out value. So sometimes, when server is not up, I need ...
0
votes
1
answer
119
views
Can I deploy a Jodd framework app to Google App Engine?
Simple question that I haven't seen a simple answer to.
Can I deploy a web application written using Jodd to Google App Engine? If so, can someone please direct me to an example and/or gotchas?
...
1
vote
1
answer
367
views
Using Jodd Lagarto to parse XML
I am using Jodd Lagarto to parse some HTMLs. For some cases I also use Jerry, when I need to quickly process HTML. But now, I have some XMLs that I need to process. From the TagVisitor it looks like ...
1
vote
1
answer
97
views
Define Jodd Madvoc mappings from external file
I am using Jodd Madvoc web framework and define actions (classes and methods) using annotations. Everything works fine, but now I need to have these action definitions in an external file, so Madvoc ...