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

I want to send email for 5000 users using java . How can i achive it?

My send email class is : final String username = "xyz@gmail.com"; final String password = "abcxyz"; Properties props = new Properties(); props.put("mail.smtp.host", "smtp.gmail.com"); …
Teekam
  • 939
  • 4
  • 14
  • 26
0
votes
1 answer

XML to HTML using XSLT, input and output strings rather than files

I have worked through some XSLT tutorials, and all of them talk about using input and output files; In my specific case I have the XML and XSL all as strings - I read them from the database at runtime, and it changes depending on the record I am…
Harriet
  • 1,633
  • 5
  • 22
  • 36
0
votes
0 answers

Java Runnable using a utility function post call

I have a work project where I am having multiple threads call a utility function I created that sends a post form to an internal API we have. I use the callAPI method here which is in a utility class, which is public, final and static : public…
Kyle Calica-St
  • 2,629
  • 4
  • 26
  • 56
0
votes
1 answer

JAX-RS GET: MessageBodyReader not found for media type=text/plain

I'm getting following error while trying to do JAX-RS GET request: MessageBodyReader not found for media type=text/plain, type=class com.intuit.accountant.services.common.cdm.Job, genericType=class…
eureka19
  • 2,731
  • 5
  • 26
  • 34
0
votes
2 answers

ParserConfigurationException with javax.xml.parsers on Android

I'm trying to use javax.xml.parsers on Android but I always get a ParserConfigurationException when trying to set these two features : factory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",…
Laurent
  • 1,661
  • 16
  • 29
0
votes
1 answer

How does ExceptionMapper workes in EVERREST with JAX-RS?

I want to understand the logic of JAX-RS with ExceptionMapper lets assume that I have class @Provider @Singleton public class MyExceptionMapper implements ExceptionMapper { /** * check the exception type…
user1365697
  • 5,819
  • 15
  • 60
  • 96
0
votes
1 answer

Read serial from smartcard with javax.smartcardio

So I'm trying to write a small applet which reads a serial number from a smart card using the javax.smartcardio library. Smartcard is connected with bit4id reader, and right now I successfully connect to the smartcard and read basic infos such as…
0
votes
1 answer

ssl handshake error with ip range (C-Block)

I use a third party tool to inspect webpages. For some URL's with SSL, i can do my analysis. But for a special IP C-Block, i get SSL handshake errors. Can someone explain me the error with solution? The pages are available via browser! I have try…
Sammy
  • 1
  • 1
0
votes
1 answer

The Java Persistence Query Language - LIKE

I have a project based in Spring Web model-view-controller (MVC) framework. The version of the Spring Web model-view-controller (MVC) framework is 3.2.8. I have this method in my DAO @Override public List findByQuickSearch(String…
Amadeu Cabanilles
  • 913
  • 3
  • 19
  • 47
0
votes
0 answers

Java Email App Builds, Can't Run, Missing ClassDef

javac SendEmail.java -cp ".;C:\Program Files\Java\jdk1.8.0_111\jre\lib\javax.mail.jar" Successfully makes SendEmail.class java SendEmail -cp ".;C:\Program Files\Java\jdk1.8.0_111\jre\lib\javax.mail.jar" Results in: Error: A JNI error has occurred,…
patrickjp93
  • 399
  • 4
  • 20
0
votes
1 answer

Error 404: Not Found error showing Jeresy restful service

I created web dynamic project and context name is "restJeresy". and using websphere liberty server in my local. When I hit url http://localhost:9080/restJeresy/TestRestService/callService Below error showing Error 404: Not Found Can anyone please…
Vimal Dhaduk
  • 994
  • 2
  • 18
  • 43
0
votes
0 answers

XmlAdapter depending on previously parsed data

I need to read/write an object from/to xml file. The object contains an array of elements. Let's say that Element class looks as follows: public class Element() { private BigInteger v; private BigInteger p; public Element(BigInteger v,…
Marek Klein
  • 1,410
  • 12
  • 20
0
votes
2 answers

How to remove invalid XML elements

I have a XML file and its XSD schema. I am able to validate the XML file and implement a custom org.xml.sax.ErrorHandler like the following: class MyErrorHandler implements ErrorHandler{ ... @Override public void warning(SAXParseException…
Niccolò
  • 2,854
  • 4
  • 24
  • 38
0
votes
1 answer

How to prevent sensitive data from being logged by SyncInvoker.post?

I'm sending a request with a following code: final WebTarget target = client.target(url); CustomResponse response = target.request(MediaType.APPLICATION_XML_TYPE) .post(Entity.xml(password),…
0
votes
1 answer

How to make a list of JLabel's act as a button group?

As you can see in this picture all the characters are selected but I want it differently. I want it to act as a radio button, for example when I click one character all other characters should be deselected.
user5650078
1 2 3
11
12