How to display ClickOnce Version number on Windows Forms

Add an assembly reference to System.Deployment to your project. Import the namespace in your class file: VB.NET: Imports System.Deployment.Application C#: using System.Deployment.Application; Retrieve the ClickOnce version from the CurrentVersion property. You can obtain the current version from the ApplicationDeployment.CurrentDeployment.CurrentVersion property. This returns a System.Version object. Note (from MSDN): CurrentVersion will differ from UpdatedVersion if a … Read more

Can not deserialize instance of java.lang.String out of START_OBJECT token

You’re mapping this JSON { “id”: 2, “socket”: “0c317829-69bf-43d6-b598-7c0c550635bb”, “type”: “getDashboard”, “data”: { “workstationUuid”: “ddec1caa-a97f-4922-833f-632da07ffc11” }, “reply”: true } that contains an element named data that has a JSON object as its value. You are trying to deserialize the element named workstationUuid from that JSON object into this setter. @JsonProperty(“workstationUuid”) public void setWorkstation(String workstationUUID) { … Read more

Java EE Enterprise Application: perform some action on deploy/startup [duplicate]

Configure SerlvetContextListener and override contextInitilized() in your web application description , web.xml <web-app …> <listener> <listener-class>com.someCompany.AppNameServletContextListener</listener-class> </listener> </web-app package com.someCompany; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; public class AppNameServletContextListener implements ServletContextListener{ @Override public void contextDestroyed(ServletContextEvent arg0) { System.out.println(“ServletContextListener destroyed”); } @Override public void contextInitialized(ServletContextEvent arg0) { System.out.println(“ServletContextListener started”); // do the things here } }