Category "java"

IntelliJ IDEA - CodenameOne - CEF path not found after AndroidStudio installation/JDK change?

I am having this issue on a Windows10 system. I changed JDK to OpenJDK 1.8 to be able to send the Android build. On the device the app is working although I hav

Exception in thread "main" java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException getting this Excdption

I am trying a simple program with hibernate but while retrieving data from db i am getting this error. But the insertion is working fine. I have provided the

Disabling auto commit in Spring boot not worked

I set two parameters to disable auto commit by False but save operation on entity without transaction was committed. spring.datasource.hikari.auto-commit=false

What is the point of @JoinColumn in hibernate?

I know that @JoinColumn is used for creating the foreign key column, but my question is little bit another. I noticed that if I have main entity with mapped by

Visual Studio Code - lagging when typing

I have just installed Visual Studio Code together with the Java Extension Pack. However, when I opened my first file and started typing, the text I type appears

Google Admin SDK: Limited impersonation for service accounts

I'm building a simple Java application where I need to retrieve the list of groups the user is subscribed to in my G Suite domain. I have gone through a bunch o

How to convert csv To nested Json in java?

i have a csv file in following format A_aa,A_ab,A_ac,A_ad,B_BB_ba,B_BB_BBB_bb 1,2,3,4,5,6 and i want to convert it into following Nested json { 'A':{

Sap Hybris advanced search label configuration

I wonder if is it possible change label of an field (Time created)in advanced search and how I do it. Thanks

Invalid mime type in spring rest template?

I am just trying to make a simple REST request like below String url = "some url"; MultiValueMap<String, String> headers = new LinkedMultiValueMap<>

Glassfish won't start version 3 and 4

I still having the same problem with glassfish !! I've changed the port and executed the command as admin but it doesn't work.. I also tried the command : asad

Error: not found: java Usage: selenium-standalone action [options]

trying to install selenium-standalone but getting this error, any idea? $ ./node_modules/.bin/selenium-standalone install not found: java Usage: selenium-stan

Illegal base64url character: ' ' when getting claims/decode from token Java JWT Spring Boot

When I get some claims from a JWT Token to validate user authentication I get the following error: Illegal base64url character: ' ' Creating a JWT goes complet

Eclipse search opens up Java file that has no syntax highlight or source code link when the project is nested?

Situation:: Trying to search and open up a Java file. In a nest project. And so, we have the file here, these 2 files the exactly same file, but, when the pro

How to fix scaling of a java-based application on a high dpi display in linux?

I just switched to java 11 (AdaptOpenJDK) so that my java Swing application looks ok on high dpi displays at different system scaling settings. It works ok on

Intellij Error:(3, 4) java: modules are not supported in -source 8 (use -source 9 or higher to enable modules)

Edit - this is solved - the issue was solved by setting: "Settings -> Build, Execution, Deployment - Java Compiler -> Project Bytecode Version : 9" I'm f

@ConfigurationProperties vs @PropertySource vs @Value

I am new to Spring/Spring Boot. I want to use the key-value pair data of application.properties / application.yml in Java file. I know that we can use @Value in

How to save a cookie in an Android webview forever?

With my code below, I have been able to save a cookie, but as soon as I close the application the cookie disappears. How is this caused and how can I solve it?

How to obtain json schema from jsonpaths of all the required fields using java

Say the input is: [{keyname: firstname, path:person.name.firstname,type:string}, {keyname:age, path:person.age,type:number}] Then jsonschema should be generate

Disable @CreationTimestamp in testing class

So I'm using Hibernate's annotations @CreationTimestamp and @UpdateTimestamp. It works fine, but I have this case when unit testing where I need to create objec

Add embedded image in emails in AWS SES service

I am trying to write a Java app which can send emails to specify emails. In the email i also want to attach some pic. Please find my code below :- public clas