Questions tagged as 'java'

0
answers

Java Spring, error authenticating with active diretory

I personally, in my company implemented an active diretory environment, and we were asked to develop an application that authenticates there, the environment is already created and the guy from the infra sent me the parameters so that access can...
asked by 11.12.2018 / 13:08
1
answer

java.lang.String can not be cast to Ljava.lang.Object

I'm trying to list items in a ui: repeat that is inside another, and I need to use the id of the outermost ui: repeat item as the parameter. But I can not do it because the following error is occurring: java.lang.ClassCastException: java.lang....
asked by 12.12.2018 / 13:43
0
answers

Calling Methods using RMI in JAVA

I'm starting to work with remote procedures in JAVA and I'm having trouble calling methods in sequence. In the code below, when I invoke the sayHello () method through the stub, the code works perfectly. However, when I call the sub () method, a...
asked by 02.12.2018 / 22:59
0
answers

Client to receive data from a Server-Push

I am trying to create a client to consume data from an interface which receives data from a gateway. This interface implements a server-push that needs to be started from a PUT request made by the client. After the request returns 200, the inter...
asked by 04.12.2018 / 16:50
0
answers

Difference between Hoare Monitor vs Java Monitor

I'm trying to understand something that I still can not get right because of that. In my dsd book, it presents the following statement Nos monitores de Hoare, se uma thread (dentro do monitor) executa x.notify(), o monitor é cedido para uma...
asked by 04.12.2018 / 15:52
2
answers

Hide and show the header of a listview when rolled

I'm developing an app for Android using Android Studio, and I want a listview with header where the header is hidden when the list scrolls down, and it appears when rolled up independently position of the scroll bar. This mechanism exis...
asked by 10.02.2014 / 14:03
3
answers

How to get the name of the class where a bean will be injected?

I'm setting two beans in the beans.xml file to inject loggers into my classes. <bean id="loggerFactory" class="company.LoggerFactory" /> <bean id="logger" class="org.apache.log4j.Logger" factory-bean="loggerFactory" factory-met...
asked by 06.02.2014 / 20:02
1
answer

BroadcastReceiver - how to register for the addProximityAlert method

The snippet below has the mission of giving a warning to the user if he has entered an area of land that is a circle around the given geographical coordinates: double mLatitude=35.41; double mLongitude=139.46; float mRadius=500f; long expir...
asked by 07.02.2014 / 12:04
0
answers

DragEvent x MotionEvent android studio

Hello, I would like a help: I need to insert in the apk the effect of dragging and dropping an item (image, text, icon) into the bin, same as the function that is already configured in smarthphones or even apk as instagram. To make the drag movem...
asked by 27.11.2018 / 20:24
1
answer

Precedence in JPA Query

I'm using the @Where(clause = "ts_removed is null") notation in my entity. If I insert a method with @Query(value = "XXX") into my repository, will the query override or will it use my where clause in the entity also in the repository?...
asked by 27.11.2018 / 14:27