Questions tagged [javax]

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

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

176 questions
0
votes
0 answers

Caused by: java.lang.RuntimeException: Provider for class javax.xml.stream.XMLInputFactory cannot be created

The error I am getting comes out as this: `javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created at javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:370) at…
Betty Bios
  • 1
  • 1
  • 1
0
votes
1 answer

Inject SecurityContext in Service

I have my Application set-up as following: Resource @Path("/books") public class BookResource { @Inject BookService bookService; @Context SecurityContext securityContext; @GET public Response getBooks() { …
Pascal W.
  • 3
  • 1
  • 6
0
votes
1 answer

One Servlet need to Call another Servlet along with response & request

This is the code (Validate.java Servlet File) protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String username = request.getParameter("u"); String password =…
0
votes
0 answers

Is there a way to use javax.inject annotations to choose what to inject into constructor within another injection?

Say I have custom type annotations @Classic and @Custom and I have annotated classes BarClassic and BarCustom which both implement interface Bar. Then say I have another class BarUser where Bar is injected in constructor. public class BarUser { …
Sunny
  • 605
  • 10
  • 35
0
votes
2 answers

hmac init with iv value different from default in java

I'm trying to calculate HMAC with iv (without any additional key). I need to pass it at the 'init' level. I know that usually there is no need in passing the iv, since there are default ivs for hmac/sha. But if I don't want to use the defaults, and…
user3698979
  • 103
  • 1
  • 9
0
votes
1 answer

Javax.rowset: where I can download that jar?

I'm trying to insert a Byte array in my database: I need to convert in a Blob, and I saw javax.sql.rowset.serial.serialclob. However, I can't find it on the web, neither in my Android Studio. Where I can get it? Thanks
Paolo Mazza
  • 87
  • 11
0
votes
1 answer

indexes Message.getFrom () and its function

I am looking for the indexes of the Javax. Message.getFrom () and its function that is to say GetFrom [0] = return address GetFrom [1] = ..... And others or something that tells me how to work with the returning array Regards
San Juan
  • 107
  • 1
  • 10
0
votes
0 answers

Printing Bold in javax.print

I want to print the whole text in bold or change the font size. Is there a way to do this? private void print(String txt, String printerName) { PrintService printService[] = PrintServiceLookup.lookupPrintServices(flavor, pras); PrintService…
JHoerbst
  • 918
  • 9
  • 17
0
votes
1 answer

how to create a set by parsing xml in which every children has his parent

I am using javax xml for parsing XML, what I want is to include parent in all children.
arglee
  • 1,374
  • 4
  • 17
  • 30
0
votes
1 answer

javax.persistence.Entity doesn't exist

I added the following dependency to Maven: javax.persistence persistence-api 1.0.2 provided My…
CrazySynthax
  • 13,662
  • 34
  • 99
  • 183
0
votes
2 answers

Can I access Java APIs and Packages that are not in Android?

Not all Java Packages are part of Android but is there a way to gain access to them through some work around? Purely as an example javax.sound is one such class. Yes Android has classes to do the same thing but if we already had the working Java…
user6363994
  • 21
  • 1
  • 2
0
votes
0 answers

SOAP - An XmlElement annotated object is passed as null when class name and type have the same name

I couldn't find any information about that... it's a strange behavior : When passing data using SOAP here - everything works fine @Data @XmlRootElement //@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name="Test") public class Test { private…
user1386966
  • 3,302
  • 13
  • 43
  • 72
0
votes
0 answers

JBOSS fuse Optional tag on Interface method argument

I have two arguments to interface method I have the following code package com.pk.testAtrifact.incident; public interface ServiceCountry { /** * Operation to country */ OutCountry getCountry(Header header,InputCountry…
0
votes
0 answers

Bean validation for rest easy multipart form data

In my application I am trying to upload file and JSON object as multipart/mixed. I able to process the MultipartFormDataInput and successfully unmarshall the data. But I need to apply our bean validation for this JSON object while unmarshalling and…
JagKum
  • 183
  • 2
  • 18
0
votes
1 answer

How to add Microsoft Word content in Email Body from Java Code

I am trying to put content of Microsoft Word Document in Email body from Java Code but getting following error: Exception in thread "main" java.lang.RuntimeException: javax.mail.MessagingException: IOException while sending message; nested…