I haven't confirmed whether or not providing ConscryptClientALPNProcessor instead of JDK9ClientALPNProcessor will solve the problem. I tried doing this but for some reason, it didn't work. I read the documentation for clues on how to enable conscrypt. I think this explains it: https://eclipse.dev/jetty/documentation/jetty-11/operations-guide/index.html#og-protocols-ssl-conscrypt
I still haven't figured out how I would be able to do this in my app, though, which is being built using gradle.
Here's the stack trace, FYI
```
03-24 08:30:54.368 32385 32448 E nostr.client.Client: null
03-24 08:30:54.368 32385 32448 E nostr.client.Client: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: No Client ALPNProcessors!
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.client.util.InputStreamResponseListener.get(InputStreamResponseListener.java:219)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at nostr.ws.Connection.getRelayInformation(Connection.java:122)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at nostr.ws.Connection.updateRelayMetadata(Connection.java:134)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at nostr.client.Client.updateRelayInformation(Client.java:285)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at nostr.client.Client.openRelay(Client.java:210)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at nostr.client.Client.lambda$init$5(Client.java:265)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at nostr.client.Client.$r8$lambda$TJeOxInLs9kBKY3hUg_Yv7ULkvU(Unknown Source:0)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at nostr.client.Client$$ExternalSyntheticLambda7.call(D8$$SyntheticClass:0)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at java.util.concurrent.FutureTask.run(FutureTask.java:264)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at java.lang.Thread.run(Thread.java:1012)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: Caused by: java.lang.IllegalStateException: No Client ALPNProcessors!
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.alpn.client.ALPNClientConnectionFactory.
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.client.dynamic.HttpClientTransportDynamic.newConnection(HttpClientTransportDynamic.java:202)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.io.ssl.SslClientConnectionFactory.newConnection(SslClientConnectionFactory.java:125)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.io.ClientConnector$Configurator.newConnection(ClientConnector.java:646)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.io.ClientConnector.newConnection(ClientConnector.java:530)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.io.ClientConnector$ClientSelectorManager.newConnection(ClientConnector.java:562)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.io.ManagedSelector.createEndPoint(ManagedSelector.java:384)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.io.ManagedSelector$CreateEndPoint.run(ManagedSelector.java:1076)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: ... 1 more
03-24 08:30:54.368 32385 32448 E nostr.client.Client: Suppressed: java.lang.IllegalStateException: org.eclipse.jetty.alpn.java.client.JDK9ClientALPNProcessor@131e6ea not applicable for java 0
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.alpn.java.client.JDK9ClientALPNProcessor.init(JDK9ClientALPNProcessor.java:37)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.alpn.client.ALPNClientConnectionFactory.lambda$new$0$org-eclipse-jetty-alpn-client-ALPNClientConnectionFactory(ALPNClientConnectionFactory.java:69)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.alpn.client.ALPNClientConnectionFactory$$ExternalSyntheticLambda0.accept(D8$$SyntheticClass:0)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.util.ServiceLoaderSpliterator.tryAdvance(ServiceLoaderSpliterator.java:46)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at java.util.Spliterator.forEachRemaining(Spliterator.java:332)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:792)
03-24 08:30:54.368 32385 32448 E nostr.client.Client: at org.eclipse.jetty.alpn.client.ALPNClientConnectionFactory.
03-24 08:30:54.368 32385 32448 E nostr.client.Client: ... 10 more
```
Did google get rid of the plus and quotes search operators? e.g.: +"keyword"
They don't seem to be working anymore... #asknostr
I'm not sure if jetty works with android. I have no significant android or java experience, so I'm having a hard time researching this, but I'm working on it.
#android #java #dev #asknostr
Still workin' on my project. I've been running into a series of issues trying to get nostr:npub1llfht66qadyxv44q9rkmequztav07r2ufgd6ytl8w3wjs3ffa5yqy398ja's nostr-java library to work with my app.
If anyone wants to help me, I'd really appreciate it. Currently, I'm trying to figure out how to set the "java.version" system property (https://howtodoinjava.com/java/basics/java-system-properties/#1-1-runtime-environment-properties), because it's required to be set for the jetty library to work properly: https://github.com/jetty/jetty.project/blob/ae6f98ed47ada09dd393102cea0bdf29bc7eb2ea/jetty-core/jetty-alpn/jetty-alpn-java-server/src/main/java/org/eclipse/jetty/alpn/java/server/JDK9ServerALPNProcessor.java#L37.
So far, nothing I've found online for setting this system property has resulted in any different behavior (the "java.version" property is always "0").
E.g., I tried this: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_system_properties
If I try to set this value in the runtime code, I get this error message in logcat:
`System : Ignoring attempt to set property "java.version" to value "9.0.0".`
nostr:note1t2wltkcwpjvh90q5fv5vgl4qg978jnjch80d0uwd5thuwe2g34qqqy3gh5
There is surely also some deserved vitriol. Its nuanced
#FUD #bitcoin
> This is a really important point to stress: cryptocurrency does nothing to addres 99% of those problems with the banking industry because those problems are patterns of human behavior. They're incentives, they're social structures, they're modalities. The problem is what they are doing to others, not that the building they're doing it in has the word "bank" on the outside.
https://www.youtube.com/watch?v=YQ_xWvX1n9g
Some nocoiner freaked out that I mentioned bitcoin and told me to watch this and it's terribad.
I think this summarizes all his arguments:
- bitcoin is too slow (he ignore the lightning network)
- bitcoin doesn't solve 100% of the problems of the banking system, therefore we should use fiat instead
- scammers like bitcoin, therefore bitcoin is bad
- energy FUD
Oh yeah, and also he argued that "those who can afford the bigger rigs will get all the bitcoin, and this will centralized". Does anyone have data on this?
#FUD #bitcoin
> This is a really important point to stress: cryptocurrency does nothing to addres 99% of those problems with the banking industry because those problems are patterns of human behavior. They're incentives, they're social structures, they're modalities. The problem is what they are doing to others, not that the building they're doing it in has the word "bank" on the outside.
https://www.youtube.com/watch?v=YQ_xWvX1n9g
Some nocoiner freaked out that I mentioned bitcoin and told me to watch this and it's terribad.
I think this summarizes all his arguments:
- bitcoin is too slow (he ignore the lightning network)
- bitcoin doesn't solve 100% of the problems of the banking system, therefore we should use fiat instead
- scammers like bitcoin, therefore bitcoin is bad
- energy FUD
if no one else does, I could do it... it could be a little fun
naw-str vs noh-str #nostr
i got a big stack right at the bottom. feels good
If you go this route, you would use NIP-46 to login
You can use nsec.app and get a "bunker token". There should be a guide on this somewhere, someone find it pls
How do you @ someone in nostr? #asknostr #nostr
alacritty's copy-and-paste seems to be very unreliable. I don't understand what causes the cases where it won't work. #alacritty #linux
nvm, it says that it uses NIP-49 on the app.
How do I decrypt the keys exported from nsec.app? Who made nsec.app? #asknostr