Questions tagged [java]

Java (not to be confused with JavaScript or JScript or JS) is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java ...

6
votes
1answer
166 views
+100

How to use docker volume to deploy war / jar in Tomcat

Is it possible to deploy some java war or jar file in Tomcat? I looking for a lot of tutorials and the only solution I found is copy project war file into /usr/local/tomcat/webapps/.I actually used ...
2
votes
2answers
228 views
+100

jstack in mixed mode: WrongTypeException: No suitable match for type of address

I'm trying to run jstack on ubuntu in mixed mode: $ jstack -m 7219 The result is this exception:Attaching to process ID 7219, please wait...Debugger attached successfully.Server compiler ...
1
vote
2answers
160 views
+100

Best JPA entity model for Hashtags

I need to design a JPA entity model for hashtags in my application similar to Instagram, twitter and Stack Overflow. My application. The following are the schema specific points that our application ...
5
votes
1answer
126 views
+50

Specify either CPU or GPU for multiple models tensorflow java's job

I am using Tensorflow java API (1.8.0) where I load multiple models (in different sessions). Those models are loaded from .pb files using the SavedModelBundle.load(...) method. Those .pb files were ...
0
votes
0answers
52 views
+50

JACOB Catastrophic Failure Invoking an .OCX Method

Hi I am currently task to convert a legacy Visual Basic 6 Application that communicates with the a Passbook Printer via third Party Application XFS.ocx (No source). Based on my research I could ...
0
votes
0answers
46 views
+50

Korean charset in JJT file

I am trying to add korean character in a JJT file :| < #XCHARSET :("_latin" | "_unicode" | "_kanjisjis" | "_graphic" | "national" (<WHITESPACE>)+ ("character" | "char"))(&...
1
vote
2answers
66 views
+50

Eclipse maven build path issue in case of custom sourceDirectory

I have converted an existing java project to a maven project and maven builds everything perfectly when using command line.When I import the same project into eclipse and compile (by right-clicking ...
1
vote
1answer
41 views
+50

How to get first or last item from cqengine IndexedCollection with NavigableIndex

I have com.googlecode.cqengine.IndexedCollection object with NavigableIndex configured. I need to get first or last item from the index or iterator of the index in general.I suppose this should be ...
5
votes
2answers
88 views
+50

Tomcat 6 and TLSv1.2 In Java (bounty regarded)

Bounty regard in two days even if the answer is today, I've already done that for this question Eta reduction in haskellI have a Java app deployed in tomcat 6. The app sends messages to another ...
1
vote
3answers
118 views
+50

How to cancel a task if new instance of task is started?

My application contains a ListView that kicks off a background task every time an item is selected. The background task then updates information on the UI when it completes successfully.However, ...
3
votes
1answer
59 views
+50

JAXB edit List getter?

I have my data model in the form of XSD files from which I then generate the corresponding Java files from xjc using command line.When I generate JAXB classes from an XSD, List type elements gets a ...
12
votes
3answers
3k views
+50

How can I set a description and an example in Swagger with Swagger annotations?

I am creating a REST Api using Spring boot, and auto generating the swagger documentation in controllers using swagger codegen. However, I am not able to set a description and example for a parameter ...
4
votes
1answer
212 views
+50

ORA-12704: character set mismatch when performing multi-row INSERT of nullable NVARCHAR's

Consider the following table where one of the columns is of type nullable NVARCHAR:CREATE TABLE CHARACTER_SET_MISMATCH_TEST (ID NUMBER(10) NOT NULL,VALUE NVARCHAR2(32));Now, I want to ...
2
votes
0answers
47 views
+50

nosuchwindowexception selenium with phantomjs java

I am using headless panthom browser to automate tha application using phantomjs driver with selenium. (selenium java version 3.5.2 and phantomjs.exe)I have a scenario where i will fill the form and ...
2
votes
2answers
83 views
+50

Alternatives to Basic Authentication when logout is required?

If BASIC authentication was not build to handle logging out, what alternate authentication methods exist for authenticating backend services that need to be able to log out?I found these ...
4
votes
2answers
85 views
+100

FindBugs detecter for NonNull Lombok builder attributes

I have a lot of classes with @NonNull fields using Lombok builders.@Builderclass SomeObject {@NonNull String mandatoryField1;@NonNull String mandatoryField2;Integer optionalField;...
2
votes
3answers
71 views
+50

Binding form fields to @ModelAttribute

I have a user entity that has many attributes (some fields not shown here):@Entitypublic class User {@OneToOne(cascade=ALL, orphanRemoval=true)private File avatar; // File is a ...
1
vote
2answers
94 views
+100

How to get Apache Derby and Hibernate to print english exception messages in a Java EE application?

I'm running a Java EE application which uses Hibernate 5.2.10.Final with an Apache Derby storage backend on Payara 4.1.1.172. I'm seeing error messages likeCaused by: java.sql.SQLDataException: A ...
0
votes
0answers
18 views
+50

Change persistence strategy of Ehcache in play application

My Goal: I want to configure ehcache to use the hard drive for caching. Ideally cache content will survive application restarts.Context: play 2.2 application with play-cache_2.10-2.2.2.jar and ...
0
votes
0answers
32 views
+50

Indirect usage of annotation generated source in annotation will lead error

I have a HelloWorldProcessor who will simply generate source file HelloWorldMessage.javapublic interface HelloWorldMessage { String HELLO_WORLD="Hello World";}Now I use the generated value ...

angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,