Questions tagged [javax]

Pointless catch-all tag. Do not use. For removal.

Pointless catch-all tag. Do not use. For removal.

176 questions
4
votes
2 answers

Generate API documentation via Swagger on Javax (under JEE)?

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…
Alblaka
  • 51
  • 1
  • 5
4
votes
1 answer

Unable to find a MessageBodyReader of content-type text/html and type interface java.util.List

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…
user2413660
  • 51
  • 1
  • 2
  • 7
4
votes
0 answers

@NotNull validation on constructor arguments doesnt work

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…
michf
  • 209
  • 6
  • 17
4
votes
0 answers

org.glassfish.jersey.message MessageBodyWriter not found for media type=application/json, type=class

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…
4
votes
2 answers

Java code restructuring

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(); …
3
votes
1 answer

TransformerConfigurationException: Cannot set the feature for Transformer

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…
Manjunath H M
  • 818
  • 1
  • 10
  • 25
3
votes
1 answer

How are javax validator and hibernate validator related(if they are)? and what is the difference?

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…
nikhil
  • 45
  • 1
  • 5
3
votes
2 answers

Java - parse nested xml file and write to the file

I have a .xml file like below: ggg Athen DG800
EdXX
  • 872
  • 1
  • 14
  • 32
3
votes
2 answers

No method named getClip was found in type "javax.sound.sampled.AudioSystem"

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…
Peter Lang
  • 65
  • 5
3
votes
1 answer

Manually validate with a custom validator without default constructor

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…
Hasan Can Saral
  • 2,950
  • 5
  • 43
  • 78
3
votes
2 answers

I get error: Invocation of init method failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity

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…
Dmitriy S
  • 361
  • 1
  • 5
  • 14
3
votes
4 answers

Hibernate @Digits Validation for Double type

I am attempting to validate a Double field with the help of Hibernate validation API - using @Digits annotation 0 0.0 @Digits(integer=10, fraction=0) private Long areaLength = null; // Here areaLength…
deadend
  • 1,286
  • 6
  • 31
  • 52
3
votes
1 answer

Creating nested json object in java

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 = ""; …
2
votes
1 answer

JAVA Javax Embeded Entity with SpringBoot and Vaadin, cant make a Column

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…
user7772660
2
votes
0 answers

PortableRemoteObject cannot narrow EJB Home

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…
Daniel Yang
  • 276
  • 2
  • 11
1
2
3
11 12