java

java

  • All Sites

0 answers

Why Resident Memory is Increasing in my Java Application?

I have an application deployed in Glassfish 4.0 Application Server. Such an application has an intensive access, that is, there is a lot of users periodically making accesses to a web service (aprox ...

0 answers

Passing type-casted variables to a method for generic compilation

I have a system which takes a class name and is enumerated by soot -- which gives us details such as all the methods in the class, modifiers of said class, visibility, arguments for methods, and much ...

0 answers

Deploying an Azure Web App with maven

I am currently developing an Azure web application(using their Paas service) in Java and would like to deploy to the app using maven as part of our continuous integration pipeline but cannot find any ...

0 answers

What is a proper way of getting values from json Volley requset?

I have a json request loking like this: JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, (String) null, new ...

0 answers

Filling Frame with Buttons Using GridBagLayout

I am trying to build a matching game with icons attached to each button. Although, this isn't close to being finished, I have a problem with filling the panel with buttons. With this code I get a ...

2 answers

Java Program is not Calling Method

public void startScanning() { // Check if there is a webcam available if (cameraView.getWebcamPanel() == null) { return; } // Make sure the webcam is not null if ...

2 answers | 7 mins ago by drake on Stack Overflow stackoverflow.com
1 answer

joystick event in java

I have a java application containing one text-field and I'm using a joystick. How can I do something in the text-field when a button on the joystick is pressed? /* * To change this license header, ...

1 answers | 8 mins ago by Ahmed Salah on Stack Overflow stackoverflow.com
4 answers

Value bringing back Null

I have a social app that builds a list of cars for users. Each user builds their own list. When I click on a listview item to link car data with dealership data I bring back a null value in the below ...

4 answers | 15 mins ago by neo on Stack Overflow stackoverflow.com
2 answers

Explanation for convoluted generic-type declaration. What does Class<? extends Class<? extends Actor>[]> actually mean?

Imagine that we have this class. public class Actor {...} And then we have a method that needs a parameter that is a type of: Class<? extends Class<? extends Actor>[]> Is this even ...

1 answer

ActionPerformed & update(Model,Object) in mvc and GridBagLayout

I have severall question and excuse my denglish! Problems: My actionPerformed in my controller dont react and I dont know how to use the update(model,object) method in the View. The next problem is ...

3 answers

Getter that returns a query

What I'm attempting to do is create a getter method in a SQL table class. I currently have this (would prefer it as .query, but can't seem to figure that out yet): public static Cursor ...

3 answers | 23 mins ago by stamps on Stack Overflow stackoverflow.com
1 answer

Filtrando dados dos sensores de aceleração e magnético no Android

Tenho um player open source para Android há algum tempo. Meses atrás criei um visualizador de áudio (do tipo daqueles com barras e cores) onde o usuário podia interagir, simulando uma realidade ...

2 answers

Preventing duplicate items in list from printing to cell table gwt

If I have a class called 'TestClass' full of getters and setters, and then I set some properties on the class object in another class like so: TestClass testClass = new TestClass(); ...

2 answers | 31 mins ago by user1156596 on Stack Overflow stackoverflow.com
2 answers

Equivalent of ByteSize() in protobuf

Is there an equivalent of ByteSize() for protobuf in Java? I'm trying to get the size of a protobuf before serializing it. Something like: Protobuf.Builder buffer = Protobuf.newBuilder(); I need ...

0 answers

Limiting the outgoing buffer in weblogic to prevent crash

I have a Servlet running on Weblogic 10.3 that generates a lot of data (in the order of gigs) and serves said data to a client. I use response.getWriter().write(data) to write data out to the socket ...

2 answers

Ensuring NodeJS spawn stdout.on activates on newlines only

I am running an external program through NodeJS using the spawn functionality, like this: var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); ...

1 answer

Jenkins's builds are blocked “Option code: 65002”

My jenkins can't build our project , here's the logs : Jenkins is fully up and running déc. 02, 2014 12:34:35 PM Infos hudson.triggers.SCMTrigger$Runner run SCM changes detected in ADRIA_LIVE_BUILD. ...

1 answers | 41 mins ago by user2354409 on Stack Overflow stackoverflow.com
1 answer

TextArea Issues in GWT

Whenever I create a new TextArea, all the other textareas next to it seem to be shifted downward. Can anyone show me the proper way to create two textareas side by side and have them each at a ...

1 answers | 42 mins ago by Joe on Stack Overflow stackoverflow.com
1 answer

Wrapper implementation method to get user notifications in Stack Exchange?

I'm trying to build an app that requires me to get the user notifications for a particular Stack Exchange user. Now, I'm trying to use Java to accomplish this and I came across this wrapper library: ...

1 answers | 42 mins ago by KodeSeeker on Stack Apps stackapps.com
0 answers

Azure - WebSites - java.io.FileNotFoundException: image.jpg (Access is denied)

I am having a problem with Azure WebSites. I am using java to receive an image from a WebService, the same app in my test environment doesn't throw the exception, but when I upload it to Azure, it ...

0 answers

Error java.lang.IllegalArgumentException: Invalid token character '/' in token “multipart/form-data”

I have the following test case. When I run it I get the error "java.lang.IllegalArgumentException: Invalid token character '/' in token "multipart/form-data"". URL url = ...

1 answer

Changing where an object is on a GridBagLayout in Java

I am working on a project where I have a requirement that when a button is clicked, an object that is in a GridBagLayer moves to a different spot. Here is my code so far: import ...

1 answers | 46 mins ago by Super Coder on Stack Overflow stackoverflow.com
4 answers

JFrame without frame border, maximum button, minimum button and frame icon

I would like to create a without frame border, maximum button, minimum button and frame icon.

4 answers | 46 mins ago by Chan Pye on Stack Overflow stackoverflow.com
0 answers

How to order result of hibernate based on a specific order

I need to send a query to retrieve values that has a specific group of characters as following: Lets say I am interested in 'XX' so it should search for any field that its value starts with 'XX' or ...

1 answer

Injecting dependencies in Junit test case using Guice before @Rule runs

Frameworks i'm working with are Dropwizard 7, Guice and for testing we have Junit , Jukito . I have a resource written in dw and i need to write a test case corresponding to that resource. Note: We ...

1 answer

Synchronized does not work by cyclic barrier

public class Test { final int counter = 0; // it may be a different number int add = 0; public synchronized void testSync() throws InterruptedException { add++; if (add ...

1 answer

Configuring Braintree

I am trying to accept BrainTree on my app. I don't understand the Async Http Client part. Where do I place this in my app. Currently I have it in the MainActivity and it is giving me errors for 'get', ...

3 answers

Java servlet shared collection

Please help me. Is there a way how I can use a collection which is shared between all the Servlet instances? I know I can save a string in HttpRequestContext but how can I store a collection? I know ...

1 answer

Multiple Classloaders and Singletons

I recently learned that a java program can have multiple class loaders. I found some StackOverflow posts that explained how to create singleton objects. The common approach was something like this: ...

1 answer

Inject bean at runtime reading properties file

Suppose I have a class MailConsoleService and a class MailSMTPService, both implement the MailService interface. I have a class EmailJob which loads the users from a db and send an email through a ...

15 30 50 per page
1 2 3