G'Evening,
We're trying to implement Swagger into an existing REST-project, running on a Wildlfly with Java EE.
The purpose is to generate the documentation for the REST-API during runtime.
However, after adding the necessary dependancies…
Please do not consider it as duplicate request as i have gone through all the
post in stackoverflow, none of them answered. no response i found.
Issue is :
I am facing a very weird issue making a GET request with same piece of code
via…
I have class with final fields. When I validate my fields on the constructor - there is a NullPointerException. I use javax.validation.constraints.NotNull.
It is occurs only when I validate fields in the constructor. When I do it earlier - it`s…
When I am making an REST API call to Oracle Responsys getting following error message: org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor aroundWriteTo
SEVERE: MessageBodyWriter not found for media…
as I progress with my little program I have 4 button who are rules by the same rules and I don't know how to reduce the code, I'm almost certain it can be simplify:
private void initGame(Quizz quizz) {
jLabelScore = new javax.swing.JLabel();
…
i'm getting below error while setting the feature for TransformerFactory.
javax.xml.transform.TransformerConfigurationException: Cannot set the feature 'http://apache.org/xml/features/disallow-doctype-decl' on this TransformerFactory.
at…
The question I am asking could be really simple(even foolish).
I was using validation in spring-hibernate MVC app. I am using constraints such as @NotNull, @Pattern which come from javax.validation packages. When I us constraints such as @Email it…
Trying to play and audio clip in java, but this error pops up every time. I imported everything I need to so I'm not sure what the issue is.
AudioInputStream audioInputStream = AudioSystem.getAudioInputStream (this.getClass ().getResource…
I have a custom validation with annotations such as:
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = UniquePropertyValidator.class)
public @interface UniqueProperty {
String message() default "sample…
I get error:
Invocation of init method failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: com.messagemanager.domain.User column: id (should be mapped with insert="false" update="false")
There are my…
I am attempting to validate a Double field with the help of Hibernate validation API - using @Digits annotation
00.0
@Digits(integer=10, fraction=0)
private Long areaLength = null; // Here areaLength…
I need to creatre json object like below. If you notice applicationFiles is json array and I have written code for the same but spkConf contains nested json objects.
JsonObjectBuilder outer = Json.createObjectBuilder(); String returnString = "";
…
maybe someone can tell me why I cant inject Embeded Column to my Facility.class? I want to make a column from ContactPerson.class PrimaryKeys in Facility.class Table, after that I want to make contructor in Facility.class to add ContactPerson. I'm…
I'm trying to use Java 9 as client application runtime, to call EJB (EJB 2.0) deployed on JBoss v7 EAP running with Java 8. Following parameter can work with Java 6/7/8.:
-Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory
to enable…