Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client not starting: java.lang.IllegalStateExcemption:... #6371

Closed
buddhalore opened this issue Oct 5, 2022 · 7 comments · Fixed by #6961
Closed

Client not starting: java.lang.IllegalStateExcemption:... #6371

buddhalore opened this issue Oct 5, 2022 · 7 comments · Fixed by #6961

Comments

@buddhalore
Copy link

Description

Bisq doesn't start up correctly: error message: "java.lang.IllegalStateExcemption: Pending or IN_CONFLICT...">
Resetting Tor settings and restarting the client doesn't change anything. Can't even close the "reset Tor settings" window to get into the client (to do a SPV sync).

Version

1.9.5

Steps to reproduce

Just starting up the client, with reset Tor settings I get the same error message

Expected behaviour

Client would load normally with reset Tor settings

Actual behaviour

Continuous error on repeat. Am not even getting to the password request. Stalls at around 9 peers

Screenshots

bisq problem
Bisq front

Device or machine

Mas OS 10.13.6

Additional info

< ..>

@Rot127
Copy link

Rot127 commented Oct 5, 2022

Got the same problem since at least 2 weeks (sorry hadn't time to open an issue).

Here are the logs and the exception in more detail:

Oct-05 19:01:23.691 [JavaFX Application Thread] ERROR b.core.btc.setup.WalletsSetup: Service failure from state: STARTING; failure={} java.lang.IllegalStateException: Expected PENDING or IN_CONFLICT, was BUILDING.
	at com.google.common.base.Preconditions.checkState(Preconditions.java:591)
	at org.bitcoinj.wallet.Wallet.setTransactionBroadcaster(Wallet.java:5241)
	at org.bitcoinj.core.PeerGroup.addWallet(PeerGroup.java:1218)
	at bisq.core.btc.setup.WalletConfig.startUp(WalletConfig.java:338)
	at com.google.common.util.concurrent.AbstractIdleService$DelegateService$1.run(AbstractIdleService.java:61)
	at com.google.common.util.concurrent.Callables$4.run(Callables.java:117)
	at java.base/java.lang.Thread.run(Unknown Source)

java.lang.IllegalStateException: Expected PENDING or IN_CONFLICT, was BUILDING.
	at com.google.common.base.Preconditions.checkState(Preconditions.java:591)
	at org.bitcoinj.wallet.Wallet.setTransactionBroadcaster(Wallet.java:5241)
	at org.bitcoinj.core.PeerGroup.addWallet(PeerGroup.java:1218)
	at bisq.core.btc.setup.WalletConfig.startUp(WalletConfig.java:338)
	at com.google.common.util.concurrent.AbstractIdleService$DelegateService$1.run(AbstractIdleService.java:61)
	at com.google.common.util.concurrent.Callables$4.run(Callables.java:117)
	at java.base/java.lang.Thread.run(Unknown Source)
Oct-05 19:01:23.695 [JavaFX Application Thread] ERROR bisq.core.app.WalletAppSetup: java.lang.IllegalStateException: Expected PENDING or IN_CONFLICT, was BUILDING. 

@pazza83
Copy link

pazza83 commented Oct 5, 2022

Hi an SPV resync should fix this issue: https://bisq.wiki/Resyncing_SPV_file

Always be sure to do a backup first: https://bisq.wiki/Backing_up_application_data

@Rot127
Copy link

Rot127 commented Oct 6, 2022

Indeed it does.

@buddhalore
Copy link
Author

I have to do a manual SPV resync. That I can't enter the client means I have to revert to my last back some months ago. Am I correct in assuming the client will never load? It just stalls at 8-9 peers and don't seem to proceed (when I don't reset Tor, pressing "close" and load the client though there's no mainnet connection like the 2cnd screendump)

@ghost
Copy link

ghost commented Oct 7, 2022

@buddhalore No need to resort to your previous backup. https://bisq.wiki/Resyncing_SPV_file#From_the_file_system

Close Bisq, delete the btc_mainnet/wallet/bisq.spvchain from your data directory, start Bisq, wait for it to load, and then restart Bisq again.
Bisq will not prompt you to restart it again—so don't forget to actually do it!
Depending on the age of your wallet and how many transactions it has, it may take a while to finish syncing. During syncing, it's normal for your machine to reach high CPU usage levels, and Bisq may not be responsive until syncing has finished.

@buddhalore
Copy link
Author

Im posting in this thread cause its a similar problem, 1.9.9 bisq on mac os x 10.13.6 starting giving problems again. I post here the error messages first, before I decided to try reinstalling the client:
Screen Shot 2023-03-14 at 11 01 59
Screen Shot 2023-03-14 at 11 02 07
Screen Shot 2023-03-17 at 10 56 14

Then I try downloading 1.9.9 again from github, after verifying I get the following error:
Screen Shot 2023-03-17 at 11 10 17

First I just cancel, then try installing my old Jan download of 1.9.9 but same error message:
Screen Shot 2023-03-17 at 11 10 17

I try deleting the bisq.app as said in the system message. But after restarting and reinstalling 1.9.9 from todays download again the same error message. Any suggestions?

@MwithM
Copy link
Contributor

MwithM commented Mar 17, 2023

You don't need to reinstall Bisq to solve the java.lang... issue. This issue is solved by doing a spv resync: https://bisq.wiki/Resyncing_SPV_file

About being unable to install Bisq, see: https://bisq.community/t/macos-installation-error-bisq-is-damaged-and-cant-be-opened-you-should-move-it-to-trash/11748
Update Bisq if you're not on the last version, but take in mind that reinstalling Bisq is not the solution for except in rare cases.

About "not receiving object filter from seed nodes", I would try restarting Bisq or even delete Tor files at Settings -> Network Info -> Open Tor Settings -> Delete Outdated Tor Files And Shutdown, then restart Bisq but sometimes it can be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants