1,120
questions
0
votes
0
answers
29
views
Migrating ViewPager2 into compose
I would like to migrate step by step viewPager2 with fragments into HorizontalPager.
When there is a swipe action on HorizontalPager there is a java.lang.IllegalStateException: The specified child ...
0
votes
0
answers
54
views
IllegalStateException while Logging into vCenter Using VMware SDK API
While using the VMware SDK API to log in, I'm occasionally encountering a java.lang.IllegalStateException. I'm unsure of the cause. Can anyone provide assistance or insights on this issue?
I have ...
1
vote
2
answers
96
views
Closing a grps-connection when handling an exception
I'm writing an interceptor that validates messages in a grpc server and I'm running into a problem.
The general scheme is: interceptor is activated at the level of the application and validates ...
0
votes
0
answers
42
views
IllegalStateException in com.squareup.picasso.BitmapHunter
an exception report appears in the Android Vitals, without an exact trace:
Exception java.lang.IllegalStateException: Transformation circle mutated input Bitmap but failed to recycle the original.
...
0
votes
0
answers
96
views
"java.lang.IllegalStateException: Cannot create a session after the response has been committed" for the bean with the "view" scope
Currently we are migrating the Jakarta Faces application from WildFly to Spring Boot v.3.1.1 using JoinFaces v.5.1.1. The version of PrimeFaces is 12.0.0. The implementation of Jakarta Faces is ...
0
votes
0
answers
150
views
DrawerLayout#onMeasure() did not set the measured dimension by calling setMeasuredDimension
I got a crash on Firebase
(full crash report: Fatal Exception: java.lang.IllegalStateException
View with id 2131362298: androidx.drawerlayout.widget.DrawerLayout#onMeasure() did not set the measured ...
0
votes
0
answers
374
views
Facing IllegalStateException : Error processing condition when using spring-boot 2.7
I am migrating spring-boot version 2.7.17. I am getting below error when I run application.
Application run failed java.lang.IllegalStateException : Error processing condition on org.springframework....
1
vote
1
answer
244
views
How can I copy results from Realm in a background thread while still listening for changes from the main thread?
java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.
on realm.copyFromRealm(results) see the code snipper below
...
0
votes
0
answers
25
views
App is closing - java.lang.IllegalStateException: Could not execute method for android:onClick
FATAL EXCEPTION:
Main
Process: com.example.joquempo, PID: 4111
java.lang.IllegalStateException:
Could not execute method for android:onClick
I don't know what is the problem here, images are well-...
0
votes
1
answer
412
views
How to solve 'java.lang.IllegalStateException: No thread-bound request found: [...]'?
BRIEF EXPLANATION:
I am developing a micro-service (MS-1) that should at some point reach information from another micro-service (MS-2) through a REST operation.
The MS-1 have a public end-point and ...
0
votes
0
answers
13
views
printerInit(PrinterName: String) throw Exception Message : Fragment WebViewFragment not attached to an activity
I have created an AAR library which contains my printing code. I also have an application which has main activity and a Fragment in it. Fragment from Main Activity initializes my printing module and ...
2
votes
2
answers
928
views
Android Kotlin - requireContext() throws IllegalStateException inside Android Fragment's onViewCreated
I am dealing with IllegalStateException crashes pertaining to the usage of getString in onViewCreated; looking at the stack trace this goes back through getResources into requireContext, which throws ...
1
vote
3
answers
3k
views
Mockmaker exception - Could not initialize inline Byte Buddy mock maker
My project uses the below mockito dependencies. I am facing the below issue only when I added my company's internal dependency. How to fix it? I already tried making sure my Intellij dea is using JDK ...
3
votes
0
answers
973
views
Method threw 'java.lang.IllegalStateException' exception. Cannot evaluate jdk.proxy2.$Proxy134.toString()
Dependencies:
spring boot 3.0.4
spring-weblux 6.0.6
I have created the HttpExchange Client:
@HttpExchange("${path.to.baseUrl}")
public interface ExternalClient {
@PostExchange("${...
1
vote
2
answers
96
views
( modifier 'static' is only allowed in constant variable declarations ) compilation error
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java....
3
votes
1
answer
5k
views
You must ensure the ActivityResultLauncher is registered before calling launch()
In some android device, I'm getting this IllegalStateException in ActivityResultLauncher
Fatal Exception: java.lang.IllegalStateException: Attempting to launch an unregistered ActivityResultLauncher ...
0
votes
0
answers
24
views
java.lang.IllegalStateException: Location is not set. JAVAFX cant open window [duplicate]
im trying to build a client-server program with javaFX.
this is my project structure:
this is my code for opening the window in LoginController:
public void start(Stage primaryStage) throws ...
0
votes
0
answers
24
views
Is this correct regarding fragment state loss transactions for safe transactions?
is
if (isStateSaved()) {
commitAllowingStateLoss()
} else {
commit()
}
same as
commitAllowingStateLoss()
As the method internals are the same with only diff of throwing IllegalStateException?
If ...
1
vote
1
answer
154
views
Recieve IllegalStateException when I try to build GeoApiContext to get polyline for my maps
I am trying to display the distance between two points as a polyline on the google maps in my app. For some reason this line of code keeps giving me the same exception which causes my app to crash at ...
0
votes
0
answers
22
views
IllegalStateMonitor exception on Thread Execution [duplicate]
I don't understand why we get an IllegalMonitorState exception here. If the thread1 has synchronized on the boolean flag then how is thread2 able to change it. shouldn't it block on thread1? this code ...
0
votes
1
answer
690
views
Re-use of fragments in ViewPager2
I have fragment A with Viewpager2. In this fragment I create a list of B fragments to present in Viewpager2. When I navigate to another fragment and return to fragment A I would like to re-use a list ...
1
vote
0
answers
49
views
Processing sketch causing a java crashed thread
I'm developing an audio-visual performance using Processing - I am getting the following and have no understanding of what it means, what's causing it, and hence how I might go about fixing it. Any ...
0
votes
1
answer
80
views
ClarifaiChannel.INSTANCE.getGrpcChannel() throwing IllegalStateException: Could not find TLS ALPN provider
I am trying to use Clarifai to predict images in an Android app. I am using the Clarifai gRPC Java client. However, I am getting an IllegalStateException saying 'Could not find TLS ALPN provider; no ...
0
votes
0
answers
81
views
Default FirebaseApp is not initialized , Make sure to call FirebaseApp.initializeApp(Context) first
FATAL EXCEPTION java.lang.IllegalStateException: Default FirebaseApp
is not initialized Make sure to call
FirebaseApp.initializeApp(Context) first.
After upgrading all the dependencies and ...
0
votes
1
answer
339
views
SpringBootTest ApplicationContext failed to load errors after first test case file runs
Individually all my test cases are running properly, but when I run maven test or even right click run tests in IntelliJ, the first test case file always passes and then I receive the error given ...
1
vote
0
answers
470
views
Android Navigation : java.lang.IllegalStateException - Could not find Navigator with name "navigation"
I am using android navigation on my project . On Some Xiaomi devices ,app crashes on startup. I could not find problem. code;
<?xml version="1.0" encoding="utf-8"?>
<...
0
votes
1
answer
85
views
Error message of missing jr file when running Android Studio application on emulator
I am trying to run an app on my Android Studio IDE. The imported files for the app are made with an older gradle configuration, and that an older version of Android Studio (Android Studio 2.3.2) is ...
0
votes
0
answers
1k
views
I am using spring-integration-sftp version 5.5.12. Getting error while creating sftp connection
I am using spring-integration-sftp version 5.5.12.
I am using following code to create session factory.
DefaultSftpSessionFactory factory = new DefaultSftpSessionFactory(true);
factory.setHost(...
0
votes
0
answers
501
views
Could not find FeatureManager when running test on REST API
I get this error when trying to run a test:
java.lang.IllegalStateException: Could not find the FeatureManager. For web applications please verify that the TogglzFilter starts up correctly. In other ...
0
votes
0
answers
574
views
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name defined in file
I use jdk-19 and try to run my application. All other classes, that have the same architecture work, except for this one.
The model:
package ch.ps_backend.model;
import lombok.*;
import javax....
0
votes
1
answer
344
views
Transfer messages from direct message to specific channel using Java Discord API
I want to make my bot in a server channel to say whatever an user dm it.
public class PrivateMessage extends ListenerAdapter
{
private TextChannel channel;
@Override
public void onReady(@...
0
votes
0
answers
124
views
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/HttpEntity
I am using eclipse luna which is an out-of-date version. I'm having an issue with setting up selenium.I'm using vanilla java, no marven or anything like that.
public static WebDriver driver;
...
1
vote
0
answers
94
views
Android - java.lang.IllegalStateException: Theme.getKey() reflection exception
After uploading my app for closed testing the following exception is reported in the prelaunch report:
Exception java.lang.IllegalStateException: Theme.getKey() reflection exception
at aufa.b (aufa....
1
vote
1
answer
83
views
Understanding problem regarding operated streams in Java
Let's say we have the following code
Stream<Integer> ints = Stream.of(1, 2, 3);
ints.peek(System.out::println);
ints.forEach(System.out::println);
and I run it, I'll get an exception:
...
3
votes
1
answer
9k
views
Exception in thread "main" java.lang.IllegalStateException: Attempted to load Config resource 'class path resource [application.yml]'
Exception in thread "main" java.lang.IllegalStateException: Attempted to load Config resource 'class path resource [application.yml]' via location 'optional:classpath:/' but snakeyaml was ...
2
votes
0
answers
882
views
WorkManager is not initialized
I got this error on sentry panel only on production build variant.
IllegalStateException WorkManager is not initialized properly. You
have explicitly disabled WorkManagerInitializer in your manifest,...
0
votes
1
answer
112
views
java.lang.IllegalStateException: Fragment MapFragment{2fe7116} (69b05d78-5cf3-46a9-829c-6b6507944575) not attached to an activity.?
I am developing location based android app using google maps but when I run project I am getting crash and getting following exception java.lang.IllegalStateException: Fragment MapFragment{2fe7116} (...
1
vote
0
answers
24
views
IllegalStateException : getInputStream() called after getReader() called
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
try{
HashMap<String, String> propMap = readIniFile("search.ini")...
0
votes
0
answers
251
views
Java Thread - IllegalThreadStateException when starting a Thread
I'm working on a project, similar to the mobile Game "Clash Royale", currently the program is moving the Character on the Anchorpane through an Animationtimer, to simulate a battle between ...
0
votes
1
answer
105
views
Failed to open the CloudDBZone because the object type has not been created
I'm trying to open an (existing) AGConnectCloudDB CloudDBZone with Android Java:
public void openCloudDBZone(String regionName, boolean isAllowToCreate) {
CloudDBZoneConfig config = new ...
-1
votes
2
answers
42
views
How to inflate RecyclerView from constraintLayout in fragment?
My app was working completely fine , when I just had the recyclerview
in fragment's xml , but I need to wrap it in constraintlayout for
some reason but my app starts crashing after that.
error ...
3
votes
1
answer
2k
views
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first in jetpack compose
I have a webview with one URL, whenever it redirects within the webview, I load the same composable again with a new URL with a new title, as the redirection happens so fast it is happening before the ...
0
votes
1
answer
270
views
IllegalStateException with postgresql driver
I have this in my application.properties:
spring.datasource.initialize=true
spring.datasource.url=jdbc:postgresql://1.2.3.4:5432/myapp?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&...
0
votes
1
answer
748
views
Room don't work migration when I try to add new column in table
After adding new migration I have the next exception. What didn't I do? When I debuging, migration was done. The new column is text and I try to write all data in one cell.
java.lang....
0
votes
1
answer
238
views
Issues Creating Apache Kudu Range Partitioned Table
I am trying to create a simple Kudu table with Hash and Range Partitions.
When I try to use a Decimal(18,0) for the Range partition I get the following error:
IllegalStateException: null
drop table if ...
1
vote
1
answer
6k
views
Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist error using Selenium and Java
I am unable to execute my first selenium code. Tried changing webdriver path several times but that didn't work.
Code trials:
package Learningday1;
import org.openqa.selenium.WebDriver;
import org....
-1
votes
1
answer
376
views
java.lang.IllegalStateException using ChromeDriver with Selenium Java
Code trials:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class SeIntro {
public static void main(String[] args) {
System.setProperty(&...
0
votes
0
answers
1k
views
How do I resolve java.lang.IllegalStateException exception?
There is a legacy but working application running on an old machine. I rebuilt it with existing Ant file. I put it on a new machine, and when I run the JAR file, I get this:
Exception in thread "...
1
vote
1
answer
87
views
How to catch IllegalStateException displayed in Firebase coming from Apollo GraphQL Android SDK
I'm unsure of how to catch this crash tracked in Firebase in our codebase which is coming from the Apollo GraphQL SDK for Android, version 2.5.12. I have also not been able to reproduce it. It seems ...
2
votes
1
answer
2k
views
How to set Nullable primary key in Room Database Android
While migrating sqlite database to RoomDatabase I am facing issue(java.lang.IllegalStateException: Migration didn't properly handle) with primary key.
SQLite code:
@Override
public void onCreate(...