query
stringlengths
1
74.9k
positive
stringlengths
0
174k
negative
stringlengths
1
174k
label
float64
1
1
task_name
stringclasses
33 values
Setting session timeout period with Spring Security 3.0
Spring Security with custom session timeout
Setting session timeout without web.xml in java web application
1
stackoverflowdupquestions
Persisting data suited for enums
Best practices for using and persisting enums
How do I return a class' enums from its own class in Java?
1
stackoverflowdupquestions
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet in spring project
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet error
Cannot find package org.springframework.web.servlet
1
stackoverflowdupquestions
Preemptive Basic Auth with HttpUrlConnection?
Preemptive Basic authentication with Apache HttpClient 4
Android HttpURLConnection with json string
1
stackoverflowdupquestions
Connecting to excel sheet using jdbc without specifying DSN to Excel sheet
How to read excel sheet stored on application server
Error while reading Excel sheet using Java
1
stackoverflowdupquestions
how to get workspace path in eclipse?
How to tell Eclipse Workspace?
How can I edit the location of the workspace in Eclipse?
1
stackoverflowdupquestions
System.loadLibrary get stuck and never returns
Loading a shared library with the System.loadLibrary call never returns
How to influence search path of System.loadLibrary() through Java code?
1
stackoverflowdupquestions
Tomcat 7 getting SSLv2Hello is disabled error when trying to make client server ssl authntication
Apache Tomcat for Windows SSL Implementation not working
Two-way SSL communication with Tomcat
1
stackoverflowdupquestions
Base64 encoder and decoder
base64 decoder in android in API level 7
Huffman Code Decoder Encoder In Java Source Generation
1
stackoverflowdupquestions
Cannot run JAX-WS Java Web Service on Apache Tomcat
JAX-WS on Tomcat server
Problems with a JAX-WS web service running under Tomcat 6.0.28
1
stackoverflowdupquestions
How to find the JVM version from a program?
How to find the JVM version from a program ... with even more details?
How works the Java JVM?
1
stackoverflowdupquestions
Java socket.io client
Android Java socket communication with Socket.IO
Why didn't this Java socket client work?
1
stackoverflowdupquestions
Can somebody explain in Manhattan dstance for the 8 puzzle in java for me?
Calculating Manhattan Distance
Java method argument puzzle
1
stackoverflowdupquestions
Bubble Sort Outperforming Selection Sort?
Why is my Java based Bubble Sort Outperforming my Selection Sort and my Insertion Sort
How can I sort this Bubble Sort in reverse?
1
stackoverflowdupquestions
Why does my applet get a java.security.AccessControlException: access denied (java.net.SocketPermission ...), and how can I avoid it?
java.security.AccessControlException: access denied ("java.net.SocketPermission" "smtp.gmail.com" "resolve")
Java applet project "java.security.AccessControlException: access denied" error
1
stackoverflowdupquestions
ejb - Details requried on javax.annotation.ManagedBean
Java EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean
@EJB annotation null
1
stackoverflowdupquestions
How does a Breadth-First Search work when looking for Shortest Path?
Breadth first search is not returning the shortest path
Is this web crawler doing a breadth-first search or a depth-first search?
1
stackoverflowdupquestions
Maven GWT 2.0 and Eclipse
Maven and GWT (and Eclipse) - Does it really work?
Using Gwt 2.7 in eclipse
1
stackoverflowdupquestions
Hadoop : JPS can not find Java installed
Hadoop: Cannot use Jps command
jps/jvmstat fails on directory paths with space character
1
stackoverflowdupquestions
Java SFTP server library?
how to transfer a file through SFTP in java?
Is there a simple method to check if there are changes in a SFTP server?
1
stackoverflowdupquestions
how to share a jsf error page between multiple wars
Load exteral JSF page
JSF 2.0 Problem
1
stackoverflowdupquestions
javax.validation.ValidationException: Unable to find default provider
ValidationException: Unable to find a default provider
SpringMvc - javax.validation.ValidationException
1
stackoverflowdupquestions
Spring MVC -> JSON response
Spring 3 JSON with MVC
Problem using Spring 3 MVC
1
stackoverflowdupquestions
JPA Map<String,String> mapping with xml
JPA Map<String,String> mapping
Mapping JPA Entities
1
stackoverflowdupquestions
PropertyNotFoundException: Could not find a setter
HIbernate Mapping Exception: PropertyNotFoundException: Could not find a setter
hibernate PropertyNotFoundException
1
stackoverflowdupquestions
jmock mocking a static method
JMock - how to mock console output
Mocking static class
1
stackoverflowdupquestions
Understanding Spliterator, Collector and Stream in Java 8
What would be a good use-case scenario for the Spliterator in Java 8?
Java.util.Collection overrides spliterator()
1
stackoverflowdupquestions
Programmatically Hide/Show Android Soft Keyboard
How to automatically show soft keyboard on start?
Show soft keyboard with no input
1
stackoverflowdupquestions
for loop using lambda expression in JAVA
For Loop with Lambda Expression in JAVA
How to use JSONObject.computeIfAbsent without lambda expression
1
stackoverflowdupquestions
How to auto-adjust font size of multiple JLabel based on container size in a smooth way?
How to change the size of the font of a JLabel to take the maximum size
Auto adjust component size in java
1
stackoverflowdupquestions
What is inlining?
Inlining in Java
Static functions inlining in Java
1
stackoverflowdupquestions
How to generate a unique Id for each object of a class?
How to Generate Unique ID in Java (Integer)?
Android Unique ID
1
stackoverflowdupquestions
Is setting a HashMap thread safe?
Is a HashMap thread-safe for different keys?
Is this HashMap usage thread safe?
1
stackoverflowdupquestions
Hibernate Exception: Unknown name value for enum class
Hibernate Exception - Unknown name value
Hibernate + Spring exception: Unknown Entity
1
stackoverflowdupquestions
Can't post JSON to server with HTTP Client in Java
post json to java server
Http Post in JAVA
1
stackoverflowdupquestions
How to add locale for Arabic
Setting Arabic numbering system locale doesn't show Arabic numbers
How to Read Arabic text from .txt file in Android
1
stackoverflowdupquestions
how to setup an Https connection from Java Application
Using HTTPS with REST in Java
How to make a https post in Java?
1
stackoverflowdupquestions
How to renew expiring Kerberos ticket in HBase?
Auto renewal of Kerberos ticket not working from Java
Hbase client ConnectionLoss for /hbase error
1
stackoverflowdupquestions
How to create owl file using JENA?
Programmatically generating OWL class hierarchy with Jena
How can i get all the data properties of a class using OWL API?
1
stackoverflowdupquestions
java string reverse algorithm
Reverse a string in Java
Reverse a method?
1
stackoverflowdupquestions
Difference between Resident Set Size (RSS) and Java total committed memory (NMT) for a JVM running in Docker container
Growing resident memory usage (RSS) of Java Process
Troubleshooting unbounded Java Resident Set Size(RSS) growth
1
stackoverflowdupquestions
How to check for value equality?
java object equality not working
Why is this equality to another object check in String.java?
1
stackoverflowdupquestions
how to compare the Java Byte[] array?
Compare two Byte Arrays? (Java)
How to get byte array from list?
1
stackoverflowdupquestions
How to filter entities by their parents in ManyToOne side in Google App Engine
How to filter entities by their parents in Many-To-One in AppEngine using JDO
ManyToOne relationship with a String field
1
stackoverflowdupquestions
How to wrap text around components in a JTextPane?
Can't have components in a jtextpane if set to "text/html"
JTextPane - dynamic word wrap
1
stackoverflowdupquestions
What's the difference between Future and FutureTask in Java?
Should I call cancel(true) on Future<?> or my own FutureTask
FutureTask and Callable usage
1
stackoverflowdupquestions
Is OpenJDK 8 a reference implementation of Java SE 8?
Technically what is the main difference between Oracle JDK and OpenJDK?
How to run evosuite with(out?) jdk
1
stackoverflowdupquestions
Is clone() in java shallow copy?
In Java, what is a shallow copy?
shallow copy of arraylist
1
stackoverflowdupquestions
How to run nar file from command line?
Using a native Maven artifact (nar) in a webapp
How to run program from command line?
1
stackoverflowdupquestions
How can I write custom Exceptions?
How to create custom exceptions in Java?
Exceptions in my code - Java
1
stackoverflowdupquestions
Sort arrays of primitive types in descending order
Sorting arrays of primitive types in descending order
How can we use .class on primitive types?
1
stackoverflowdupquestions
How to set order of repositories in Maven settings.xml
Using multiple local repositories while building Maven
Spring Data Repositories - Find where field in list
1
stackoverflowdupquestions
How do I generate RSA key pair in JAVA (in openssl format)
Generate RSA key pair and encode private as string
How to call OpenSSL methods in Java?
1
stackoverflowdupquestions
Java Arrays & Generics : Java Equivalent to C# IEnumerable<T>
What's the equivalent of C# IEnumerable in Java? The covariant-capable one, not the Iterable
Generics in Java
1
stackoverflowdupquestions
Spring SFTP connection - get file from SFTP server
How to retrieve a file from a server via SFTP?
using matchpattern in sftp ls command
1
stackoverflowdupquestions
Eclipse: Attach source/javadoc to a library via a local property
Why can't Eclipse find the JavaDoc?
How to _use_ a javadoc
1
stackoverflowdupquestions
Reading a PDF document with iText not working sometimes
Read pdf using iText
Creatng PDF files from java code [without using iText]
1
stackoverflowdupquestions
Can I compress HTTP Requests using GZIP?
How to compress a Http Post Body using GZIP
java: save string as gzip file
1
stackoverflowdupquestions
Java ClassLoader: load same class twice
Defining the same class twice using a ClassLoader
How do I "close" a ClassLoader?
1
stackoverflowdupquestions
jmockit coverage report steps from ant build.xml file
Combined test coverage report with jMockit
Coverage report says zero coverage on android with gradle
1
stackoverflowdupquestions
Java operators precedence
Operators precedence in Java gets confusing
Java order of precedence
1
stackoverflowdupquestions
Java Error - net.ucanaccess.jdbc.UcanaccessSQLException: malformed string: '
UCanAccess Java Execution Error
Trying to use the .previous() method on a UCanAccess ResultSet
1
stackoverflowdupquestions
Apache PDFBox Java library - Is there an API for creating tables?
How to create Table using Apache PDFBox
PDFBox does not remove first page
1
stackoverflowdupquestions
Configure proxy to Jersey client
Jersey client with ignore ssl with proxy setting
ApacheConnectorProvider : Jersey Client 2.5.1
1
stackoverflowdupquestions
Safe String to BigDecimal conversion
BigDecimal how to use?
Error conversion String BigDecimal
1
stackoverflowdupquestions
How to use RestTemplate efficiently in Multithreaded environment?
Where to create RestTemplate in Spring?
Spring resttemplate
1
stackoverflowdupquestions
Problems submitting a login form with Jsoup
Login on website using jsoup
In my spring login form url getting changed after submitting the form
1
stackoverflowdupquestions
Add ArrayList<String> to SQLite DB
data from sqlite into ArrayList<String>
Create a String array from a SQLite DB in Android
1
stackoverflowdupquestions
JTable with varying number of columns per row
A JTable where number of columns in each row may be different
JTable.print() does not print all columns
1
stackoverflowdupquestions
JasperReports: Getting JRRuntimeException: Error creating SAX parser
Error creating SAX parser JasperReports on Java Tomcat
What pattern should I use for using a SAX parser?
1
stackoverflowdupquestions
Maven Compilation Error: Fatal error compiling: invalid target release: 1.8
Fatal error compiling: invalid target release: 1.8 -> [Help 1]
Maven - invalid target release 1.7 with Java 1.7
1
stackoverflowdupquestions
Stream's limit is not working for a Stream based on a char array
How can I create a stream from an array?
Input/Output Stream : End of Stream?
1
stackoverflowdupquestions
Convert RGB value to HSV
Random HSV colour
Convert RGB values to Integer
1
stackoverflowdupquestions
How do I get a Java resource as a File?
Java resource as file
Use resource in try with resource statement that was created before
1
stackoverflowdupquestions
Understanding Eclipse debug source lookup with dynamically compiled and loaded code
How do I re-encode dynamically compiled bytes to text?
Eclipse Java Debug with missing source files
1
stackoverflowdupquestions
Very simple Apache-commons configuration example throws NoClassDefFoundError
Simple Apache-commons configuration example throws ConfigurationRuntimeException
RMIIO and NoClassDefFoundError
1
stackoverflowdupquestions
Installing WindowBuilder on Eclipse 4.2
Installing WindowBuilder on Eclipse Neon
Code won't run properly when using WindowBuilder in eclipse java IDE
1
stackoverflowdupquestions
What does void do in java?
Why does java use void?
Void and return in Java - when to use
1
stackoverflowdupquestions
How does converting signed integer to unsigned long work
Best way to convert a signed integer to an unsigned long?
Reverse unsigned to signed conversion in Java
1
stackoverflowdupquestions
Generate JNLP dynamically
set param value of jnlp dynamically
JNLP SingleInstanceService Use in Command Line JAR Application
1
stackoverflowdupquestions
How to create temporary folder with zip folder inside
How to add a file in a specific folder (in the ZIP)
How to create folder in prinstream?
1
stackoverflowdupquestions
Elasticsearch 5 Java Client giving "NoNodeAvailableException"
Elasticsearch - NoNodeAvailableException
Elasticsearch-Java Search is not giving any results
1
stackoverflowdupquestions
how to print stack trace to pages?
How can I convert a stack trace to a string?
Getting method execution time from Stack Trace
1
stackoverflowdupquestions
Set JTree in one java class file from second java class file - Swing
Desktop view in JTree - Swing - Windows Only
JTree from List<File>
1
stackoverflowdupquestions
Get RGB of a BufferedImage
How to get rgb pixel value from R ,G,B value in java for a BufferedImage
Why can't I change this BufferedImage?
1
stackoverflowdupquestions
What is the difference between `opencv.android.JavaCameraView` and `opencv.android.NativeCameraView`
OpenCV for Android - does NativeCameraView still exist?
how to draw 3d object with opengl es in android ,with org.opencv.android.javacameraview as background
1
stackoverflowdupquestions
How to inject a key-value map with Spring 4?
How to inject a Map using the @Value Spring Annotation?
Spring: inject properties file into map
1
stackoverflowdupquestions
hibernate 4 has performance issue after migration
Migration from Hibernate 3 to 4 slows down startup
Spring migration from 2.5.6 to 4.3.6
1
stackoverflowdupquestions
keytool error Keystore was tampered with, or password was incorrect
AndroidDebugKey Keystore was tampered with, or password was incorrect
What is the significance of "key password" in keystore using keytool
1
stackoverflowdupquestions
Is there a Java equivalent to C#'s 'yield' keyword?
Yield Return In Java
Java Equivalent for where in C#
1
stackoverflowdupquestions
What is the best practice for setting the initial capacity of an ArrayList that is not always used?
Why start an ArrayList with an initial capacity?
Can you determine the initial capacity of a Java Collection?
1
stackoverflowdupquestions
How to parse a currency Amount (US or EU) to float value in Java
Android: Parsing EU currency into a Number
Format String currency in java
1
stackoverflowdupquestions
Android Studio 3.0 "JUnit version 3.8 or later expected"
IntelliJ IDEA with Junit 4.7 "!!! JUnit version 3.8 or later expected:"
Error JUnit version 3.8 or later expected - Android Studio
1
stackoverflowdupquestions
Please explain conversion from int to short
Java - Explicit Conversion from Int to Short
Java to C# Conversion
1
stackoverflowdupquestions
SortedList which allows repetition and random access of elements
Why is there no SortedList in Java?
How does insert and delete method of SortedList in Java work
1
stackoverflowdupquestions
Cannot create AVD - Eclipse, MAC OSX, Android 4.4.2
Eclipse can't create new AVD
How to run Android app correctly with AVD?
1
stackoverflowdupquestions
Is WindowBuilder Pro already installed in Eclipse?
Installing WindowBuilder on Eclipse 4.2
Code won't run properly when using WindowBuilder in eclipse java IDE
1
stackoverflowdupquestions
Compile NetBeans project from command line by using Ant
Given that NetBeans is installed, how can I use ant from the command-line (on Windows)?
How to include a Java command in ANT to run the project
1
stackoverflowdupquestions
How to pass the result of calling a statically imported generic method to another method?
Can't pass the result of a generic method to another method?
Statically configure rel in Spring Data REST
1
stackoverflowdupquestions
Creation of a EML file with an attachment using JavaMail
Create a .eml (email) file in Java
Reading .eml into JavaMail MIME format
1
stackoverflowdupquestions