Comments (6)
You need to create a direct download link, instead of the HTML interface
https://www.howtogeek.com/747810/how-to-make-a-direct-download-link-for-google-drive-files/
from update4j.
Failed: SocketTimeoutException: Read timed out
How can I change the timeout time?
from update4j.
The default timeout is 10 seconds defined here which should be well enough for most use cases. (I would assume increasing the timeout won't help, but there's an underlying problem).
You can override it by providing a custom update handler.
from update4j.
Thanks for the replies!
Using DropBox worked perfectly, I was able to download the .zip file.
Something that's still not clear to me is at what point does the Business application start?
from update4j.
First of all you shouldn't zip the assets, the point of update4j is to download just the changed files and load them onto the JVM. By zipping them you have to deal with unzipping and loading yourself.
When the business app starts really depends on your setup. In the default mode it starts right after updating, or right away if you used the "launch first" cli flag
from update4j.
I think the problem is in my business app launcher class, right?
Maybe in the Injection of the Stage component of JavaFx
public class Launcher implements org.update4j.service.Launcher {
@Override
public long version() {
return 0;
}
@InjectTarget
private Stage primaryStage;
@PostInject
private void getStartupView() {
}
private static Stage stage;
@Override
public void run(LaunchContext ctx) {
System.setProperty("http.keepAlive", "true");
System.setProperty("prism.forceGPU", "true");
System.setProperty("file.encoding", "UTF-8");
Platform.runLater(() -> {
Thread.currentThread().setContextClassLoader(ctx.getClassLoader());
stage = primaryStage;
});
Platform.runLater(() -> {
var root = new ApplicationWindow();
var antialiasing = Platform.isSupported(ConditionalFeature.SCENE3D)
? SceneAntialiasing.BALANCED
: SceneAntialiasing.DISABLED;
Scene scene = new Scene(root, ApplicationWindow.MIN_WIDTH + 80, 768, false, antialiasing);
Application.setUserAgentStylesheet(new PrimerLight().getUserAgentStylesheet());
scene.getStylesheets().add(getClass().getResource("/mspm/pages/DashboardCSS.css").toString());
stage.setScene(scene);
stage.setTitle("Brasens");
Image brasensIcon = new Image(getClass().getResource("/mspm/resources/Icone File.png").toString());
stage.getIcons().add(brasensIcon);
stage.setScene(scene);
stage.setOnCloseRequest(event -> {
Platform.exit();
System.exit(0);
});
stage.setMaximized(true);
stage.show();
});
}
private static boolean isEmptyDirectory(Path path) throws IOException {
return false;
}
}
from update4j.
Related Issues (20)
- Permission Issue: Default Bootstrap Archive Location HOT 9
- Updating app's JDK with update4j HOT 5
- Make update.zip path confgurable HOT 1
- Deletion of files not present in config HOT 8
- getOldFiles takes a long time (too long?) HOT 22
- Basic issue of understanding HOT 25
- Working in offline mode with --local and --syncLocal HOT 3
- Communication between bootstrap and business application HOT 4
- config.update does not download anything and just stop the programs HOT 2
- Headless Setup with NGINX Basic Auth HOT 13
- proposal HOT 1
- NoSuchFileException reserved/config when there is nothing to update HOT 3
- Demo App doesn't run on Windows 11 and Java 19 HOT 4
- Connect/read timeouts too short on URLConnection HOT 1
- Propagating business applications' exit code through Bootstrap HOT 5
- Error running an SWT application HOT 8
- Support multiple architectures HOT 19
- Exception when download files. HOT 2
- Relative path in basePath? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from update4j.