query stringlengths 1 74.9k | positive stringlengths 0 174k | negative stringlengths 1 174k | label float64 1 1 | task_name stringclasses 33
values |
|---|---|---|---|---|
jps returns no output even when java processes are running | How does JPS an other Java monitoring tools collect data about local JVMs? | jps can't connect to a remote jstatd | 1 | stackoverflowdupquestions |
How do I prevent Spring 4.0 MVC @ModelAttribute variables from appearing in URL? | How do I prevent Spring 3.0 MVC @ModelAttribute variables from appearing in URL? | Spring MVC @ModelAttribute bind subclasses | 1 | stackoverflowdupquestions |
How to make JTable both AutoResize and horizontall scrollable? | JTable with autoresize, horizontal scrolling and shrinkable first column | Scrollable Text Area? | 1 | stackoverflowdupquestions |
Java stops capturing mouse movement events after maximizing or full screening a window in Mac OS X | Maximizing a JFrame causes MouseMoved events to stop firing | Different way of maximizing JFrame windows? | 1 | stackoverflowdupquestions |
Does Java have a "IN" operator or function like SQL? | Java in operator | Java ++ operator | 1 | stackoverflowdupquestions |
XSLT 2.0 Transformation To PDF In Java with Saxon Using Apache FOP and Style Vision | How to set Saxon as the Xslt processor in Java? | No imagePreloader found - XML to PDF using FOP | 1 | stackoverflowdupquestions |
Is there a signed zero Integer in Java? | signed zero double equals (as in ==) but Double.compare(double,double) != 0 | Java byte Array to signed Int | 1 | stackoverflowdupquestions |
JPA 2.0 native annotations for cascading deletes of a one-way relationship | JPA: unidirectional many-to-one and cascading delete | Cascading "@Any" relationships | 1 | stackoverflowdupquestions |
Spring's SecurityContextHolder.getContext().getAuthentication() returns null after RedirectView is used in HTTPS/SSL | Spring Security AuthenticationCredentialsNotFoundException, SecurityContextHolder.getContext is null | SecurityContextHolder.getContext().getAuthentication() returning null | 1 | stackoverflowdupquestions |
Thread-safe multiton pattern | Thread safe multitons in Java | How String class is thread safe in java? | 1 | stackoverflowdupquestions |
Downloading files from FTP to local using Java makes the file unreadable - encoding issues | Java upload jpg using JakartaFtpWrapper - makes the file unreadable | Incomplete file when downloading with Java from FTP | 1 | stackoverflowdupquestions |
What's the best way to return a pair of values in Java? | How to return a pair of objects in one method? | Java 8: Extracting a pair of arrays out of a Stream<Pair> | 1 | stackoverflowdupquestions |
forEach vs forEachOrdered in Java 8 Stream | Benefit of using forEachOrdered with Parallel streams | Nested foreach with Stream API | 1 | stackoverflowdupquestions |
How can I repeat this countdown timer in a specific way...? | Countdown timer looping - NEW ERROR | Countdown Timer that is date and time specific | 1 | stackoverflowdupquestions |
Populate XML template-file from XPath Expressions? | How to Generate an XML File from a set of XPath Expressions? | How to populate an array list in a while loop | 1 | stackoverflowdupquestions |
Problem using model.getClass().getMethod in case of inheritance | Unexpected Class.getMethod behaviour | getMethod throws method not found exception | 1 | stackoverflowdupquestions |
Configuring RollingFileAppender in log4j | log4j:WARN No such property [rollingPolicy] in org.apache.log4j.RollingFileAppender | Log4j 2 : can't use the ContextMapLookup in RollingFileAppender fileName and filePattern | 1 | stackoverflowdupquestions |
What is the simplest way to convert a Java string from all caps (words separated by underscores) to CamelCase (no word separators)? | Regex for converting CamelCase to camel_case in java | Why does my Android string display in all caps in my app? | 1 | stackoverflowdupquestions |
Java 8 stream "Cannot use this in a static context" | this: Cannot use this in static context | Add a Method to Java 8 Stream | 1 | stackoverflowdupquestions |
Is there a way to get the javadoc tool to document annotations? | How can I include @Annotations in JavaDoc? | Is there a command-line javadoc query tool? | 1 | stackoverflowdupquestions |
Sending Unsigned Bytes Over Socket In Java | Unsigned Bytes in Java | Sending String from Java to C (Socket) | 1 | stackoverflowdupquestions |
ThreadFactory usage in Java | Use of ThreadFactory in java | SQLBase usage in a Java Application | 1 | stackoverflowdupquestions |
Java 8 Optional<T> get | Uses for Optional | How can I map an optional into a primitive optional? | 1 | stackoverflowdupquestions |
Bayesian networks in Scala | Is there a java alternative to the Bayesian Belief Network Framework "Infer.NET"? | Using scala list in java | 1 | stackoverflowdupquestions |
Is there any good and free Date AND Time Picker available for Java Swing? | date and time picker in JAVA | Swing Date picker with custom look | 1 | stackoverflowdupquestions |
Eclipse ADT - java was started but returned exit code = 13 | Java was started but returned exit code=13 eclipse | Eclipse: Java was started but returned exit code -1073741571 | 1 | stackoverflowdupquestions |
How to Convert Int to Unsigned Byte and Back | java unsigned byte to stream | How do you convert a Java long to an *unsigned* base-X String (and back)? | 1 | stackoverflowdupquestions |
AES de/encryption throws 'Illegal key size' for 256 bit key | Java AES 256 encryption | Encryption with AES-256 and the Initialization Vector | 1 | stackoverflowdupquestions |
Hibernate : org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags | Hibernate cannot simultaneously fetch multiple bags | Hibernate @Any could't fetch the object | 1 | stackoverflowdupquestions |
Using Spring MVC, accepting POST requests with bad JSON leads to a default 400 error code server page being returned | How to handle 400 error in Spring MVC | POSTing JSON to Spring MVC Controller Returns 400 Bad Request | 1 | stackoverflowdupquestions |
How do I read the response header from RestTemplate? | How to get Response Header information from Spring RestTemplate GET request | How to use RestTemplate with multiple response types? | 1 | stackoverflowdupquestions |
Hibernate enum mapping | Hibernate mapping between PostgreSQL enum and Java enum | Hibernate list mapping | 1 | stackoverflowdupquestions |
JVM Charset.defaultCharset() does not return the expected charset | Charset.defaultCharset() get different result under JDK1.7 and JDK 1.6 | Java and ITA2 charset | 1 | stackoverflowdupquestions |
Compatibility of a Java runtime retention annotation in previous Java versions | Why does @FunctionalInterface have a RUNTIME retention? | Java database compatibility | 1 | stackoverflowdupquestions |
Getting an exception ORA-00942: table or view does not exist - when inserting into an existing table | Getting ORA-00942: table or view does not exist using Blob in Java | java.sql.SQLException: ORA-00942: table or view does not exist | 1 | stackoverflowdupquestions |
Java - Distinct List of Objects | Java 8 Distinct by property | Filter with count distinct from other table | 1 | stackoverflowdupquestions |
Read Password protected excel file(.xlsx) using Java | Password Protected Excel File | reading xlsx file in Java | 1 | stackoverflowdupquestions |
Why does StringBuffer/StringBuilder not override equals or hashCode? | StringBuilder .equals Java | when to use string over stringbuilder/stringbuffer? | 1 | stackoverflowdupquestions |
How does bitshifting work in Java? | How to use bitshifting in Java | Why this work only once? | 1 | stackoverflowdupquestions |
JAXB @XmlElements, different types but same name? | Jaxb objects with same name | jaxb set string type | 1 | stackoverflowdupquestions |
How to restore the PriorityQueue to its initial state before the method call? | How do I use a PriorityQueue? | add to PriorityQueue<Integer> | 1 | stackoverflowdupquestions |
Garbage collection on intern'd strings, String Pool, and perm-space | What is perm space? | Does intern() ever create a literal in the pool? | 1 | stackoverflowdupquestions |
Maven 3 does not update snapshot dependency from local repository | What exactly is a Maven Snapshot and why do we need it? | Maven not using local repository | 1 | stackoverflowdupquestions |
What is the Rolls-Royce way to deploy a Java applet? | How to deploy a java applet for today's browsers (applet, embed, object)? | Applet AWTPermission | 1 | stackoverflowdupquestions |
Getting images from a .jar file | Load images in jar file | In java, how do you retrieve images from a jar file? | 1 | stackoverflowdupquestions |
VerifyError on Tomcat 7 production server probably caused by Apache Commons Logging 1.0.4 | Causes of getting a java.lang.VerifyError | solution for java.lang.VerifyError in tomcat 7.0.23/jdk 1.6.x? | 1 | stackoverflowdupquestions |
How to make an Android device vibrate? | Why does my phone vibrate indefinitely? | Read file from android based device? | 1 | stackoverflowdupquestions |
How to handle null compare method arguments in Comparator? | comparator with null values | Unable to override compare() method of Comparator | 1 | stackoverflowdupquestions |
Time complexity of LinkedList, HashMap, TreeSet? | HashMap get/put complexity | sort a TreeSet with HashMap<string,integer> as its type | 1 | stackoverflowdupquestions |
How to rectify? -- "both define getObjectCopy(), but with unrelated return types" -- but it's *one* function | Inherit method with unrelated return types | Java: Casting a class to an unrelated interface | 1 | stackoverflowdupquestions |
Android Text input always give me NaN value | Android: Java code output "NaN" | what is NaN? and how is been created? | 1 | stackoverflowdupquestions |
Image on JButton | JButton from image | How to add image to JButton? | 1 | stackoverflowdupquestions |
TestNg's @BeforeTest on base class only happening once per fixture | BeforeTest would not run before every Test method of the class in <test> tag | Error while running code through TestNg | 1 | stackoverflowdupquestions |
How do I trigger the default signal handling behavior? | Should I trigger the default signal handler when I define my own handler? | How to trigger a method to start at a certain? | 1 | stackoverflowdupquestions |
What is a IncompatibleClassChangeError exception in Java? | What causes java.lang.IncompatibleClassChangeError? | restful web-service - I get java.lang.IncompatibleClassChangeError | 1 | stackoverflowdupquestions |
ArithmeticException thrown during BigDecimal.divide | Why does the division of two BigDecimal numbers in Java throws the ArithmeticException? | i cannot fix "Exception in thread "main" java.lang.ArithmeticException: / by zero" | 1 | stackoverflowdupquestions |
Java reflection: Is the order of class fields and methods standardized? | Java Reflection: Getting fields and methods in declaration order | Getting fields via reflection | 1 | stackoverflowdupquestions |
Constructor in an Interface? | variable / constructor in an interface | Get around no constructor in interface, in java | 1 | stackoverflowdupquestions |
how to run Java programs in a restricted sandbox | How to run java code in a restricted sandbox (without network, filesystem access) | Time restricted service | 1 | stackoverflowdupquestions |
Why has it failed to load main-class manifest attribute from a JAR file? | Failed to load Main-class Manifest Attribute | Using Java to read a .jar manifest file | 1 | stackoverflowdupquestions |
java.rmi.NoSuchObjectException on Linux | java.rmi.NoSuchObjectException: no such object in table | Expecting NamingException, getting NoSuchObjectException | 1 | stackoverflowdupquestions |
500 Internal Server Error on one of my cloud endpoint methods when deployed | GAE Endpoint Error 500 on Deploy | Google cloud endpoint and dependency injection | 1 | stackoverflowdupquestions |
loop on list with remove | Better way to loop through the List<String> and remove items | How can I remove " ' " from a String | 1 | stackoverflowdupquestions |
Forcing a spurious-wake up in Java | How to Detect a Spurious Wakeup | Forcing all methods to throw Exception | 1 | stackoverflowdupquestions |
Volatile array - memory visibility of the elements | How to declare array elements volatile in Java? | When not to use volatile variable in Java | 1 | stackoverflowdupquestions |
Glassfish Security - jdbcRealm: How to configure login with SHA-256 digest | GlassFish SHA-256 digest authentication | way to use tomcat basic/digest authentication with hashed passwords in JDBCRealm? | 1 | stackoverflowdupquestions |
Elevating a ProcessBuilder process via UAC? | Can Java launch the Windows UAC? | ProcessBuilder not working | 1 | stackoverflowdupquestions |
Check if at least two out of three booleans are true | How to return answer of three fourths of Booleans in java | booleans in for loop | 1 | stackoverflowdupquestions |
Wicket: how to render page programmatically and get result as string? | Render page to string in Wicket 1.5 | Problem in Wicket | 1 | stackoverflowdupquestions |
How do I run Eclipse using Oracle's new 1.7 JDK for the Mac? | Eclipse on Mac 10.8 - Installed 1.7.0 JRE / JDK, but Eclipse won't launch | How to get JDK 1.5 on Mac OS X | 1 | stackoverflowdupquestions |
How to create variables dynamically in Java? | create variables dynamically, Data Types of java Variables | How to set XTextTable name dynamically | 1 | stackoverflowdupquestions |
is there an elegant way to inject a spring managed bean into a java custom/simple tag | Inject Bean in Custom tag Java - @Configurable | Learning Spring / Java: How To Inject Spring Bean | 1 | stackoverflowdupquestions |
Would using covariant return type in clone really break compatibility? | Why doesn't Java 5+ API take advantage of covariant return types? | Covariant collection with delegation | 1 | stackoverflowdupquestions |
How to handle processing large csv file or read large CSV file in chunks | How to split a CSV file into multiple chunks and read those chunks in parallel in Java code | Thread to handle Large List of objects in Java | 1 | stackoverflowdupquestions |
How can I replace GWT.create with an Annotation Processor? | Difference between a GWT Generator and a Java Annotation Processor? | Maven annotation processing processor not found | 1 | stackoverflowdupquestions |
read vtd-xml (ximpleware) xml in java | Parse xml file using vtd-xml | vtd-xml evalXPathToString with text() at the end or not | 1 | stackoverflowdupquestions |
Return a value from Java 8 forEach loop | Java 8 Iterable.forEach() vs foreach loop | How to change from for to foreach in this case? | 1 | stackoverflowdupquestions |
jcombobox filter in java - Look and feel independent | JComboBox Filter | How to get text from JComboBox? | 1 | stackoverflowdupquestions |
Can a Java application detect that a debugger is attached? | Check if a debugger is attached during the execution of a unit test | Eclipse debugger doesn't see changes in code | 1 | stackoverflowdupquestions |
Why do I keep getting NoSuchMethodError on LocationAwareLogger when running Jetty? | SLF4J NoSuchMethodError on LocationAwareLogger | NoSuchMethodError exception | 1 | stackoverflowdupquestions |
Program to decompile jar or class files | How do I "decompile" Java class files? | Can someone decompile my EXE file? | 1 | stackoverflowdupquestions |
GSON parsing dynamic JSON field | Parsing object with dynamic key through gson | Parsing json to a string in Gson | 1 | stackoverflowdupquestions |
How to add text to an image in java? | Trying to add text to image in Java, results in the same image | Java Text on Image | 1 | stackoverflowdupquestions |
Implement typedef in Java | Is there a Java equivalent or methodology for the typedef keyword in C++? | How do I implement a serializableBufferedWriter in Java? | 1 | stackoverflowdupquestions |
Understanding JSF as a MVC framework | What components are MVC in JSF MVC framework? | Spring MVC vs JSF | 1 | stackoverflowdupquestions |
How to pass nested scala object reference in Java? | How can I pass a Scala object reference around in Java? | Why `(T)this` from Java can't work in scala? | 1 | stackoverflowdupquestions |
The import org.junit cannot be resolved | import org.apache cannot be resolved: Eclipse | AntBuilder can't find package org.junit | 1 | stackoverflowdupquestions |
How to add or subtract 3 days from currentdate in java? | How to subtract X days from a date using Java calendar? | Hibernate criteria get all rows where currentDate > startDate and < endDate | 1 | stackoverflowdupquestions |
How to set JProgressBar text color independently for multiple JProgressBars without changing Look and Feel | JProgressBar Changing Bar Color dynamically | JProgressBar - Won't work in the class that I am calling it in | 1 | stackoverflowdupquestions |
Is there a simple and safe way to convert a PrintWriter into a PrintStream? | Convert PrintStream to PrintWriter | Java printwriter | 1 | stackoverflowdupquestions |
mongodb multi tenacy spel with @Document | MongoDB and SpEL Expressions in @Document annotations | Spring SpEL error | 1 | stackoverflowdupquestions |
How to invoke a stateless bean method if it is not declared in interface implementing the business logic | How to invoke a stateless bean method if it is not declared in business interface | Can I use instance variables in stateless session bean? | 1 | stackoverflowdupquestions |
Class is a raw type. References to generic type Class<T> should be parameterized | Raw type. References to generic types should be parameterized | ArrayList is not generic; cannot be parameterized | 1 | stackoverflowdupquestions |
Spring security's SecurityContextHolder: session or request bound? | Can SecurityContextHolder Shared across users | Spring get custom UserDetails in SecurityContextHolder | 1 | stackoverflowdupquestions |
Sending and receiving message using Java Smack API not working on example | Unable to display received messages with SMACK api in JAVA | Smack send and receive message without chat | 1 | stackoverflowdupquestions |
JFrame not responding to setVisible() and dispose() | How to Dispose an opened Jframe from Other | Dispose JFrame from another class | 1 | stackoverflowdupquestions |
Hibernate mapping exception - Could not determine type for: | Hibernate could not determine type | Mapping Object Hibernate | 1 | stackoverflowdupquestions |
Why can private members in Java be modified from another class? | How can references to private class members be dangerouse | How do I access private methods and private data members via reflection? | 1 | stackoverflowdupquestions |
Print arabic string in java | how to read and write in arabic in eclipse | How to Insert arabic data into mysql database by Java? | 1 | stackoverflowdupquestions |
java: how to declare final a variable that is initialized inside a try - catch block? | Using try/catch to declare and initialize a final variable | Java final instance variable initialized from a method | 1 | stackoverflowdupquestions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.