Questions Tagged With javahttps://answers.axonivy.com/tags/java/?type=rssquestions tagged <span class="tag">java</span>enFri, 26 Jun 2020 07:51:27 -0400Unknown Java build problem in Axon.ivy Designer: Failed to init ct.symhttps://answers.axonivy.com/questions/4618/unknown-java-build-problem-in-axon-ivy-designer-failed-to-init-ct-sym<p>With Axon.ivy Designer 9.1 based on eclipse 2020-06 I can not compile my ivy and java projects and get the following Unknown Java Problem in the Problems View:</p> <pre><code>The project was not built due to "Failed to init ct.sym for ...\jre\lib\jrt-fs.jar". Fix the problem, then try refreshing this project and building it since it may be inconsistent </code></pre> <p>What can I do to fix this?</p>Christian StrebelFri, 26 Jun 2020 07:51:27 -0400https://answers.axonivy.com/questions/4618/unknown-java-build-problem-in-axon-ivy-designer-failed-to-init-ct-symjavaComplete Task from RESThttps://answers.axonivy.com/questions/4077/complete-task-from-rest<p>Hi Ivy Team,</p> <p>How to complete a task from REST service in Axon.Ivy ?</p> <p>So, far I saw that I can do .destroy() but it doesn`t feel the right, I believe that there will be some side effects </p> <p>or</p> <p>.setActivator(ivy.session.getSecurityContext().getSystemUser()) but this way I`m loosing the history who was the assignee of the task</p> <p>Any other options ?</p> <p>Maybe to do HTTP call to the end-point /TaskA.iot?taskId=7</p> <p>My goal is to build REST API that can manage the Axon.Ivy tasks from external system.</p> <p>Best Regards, Yordan</p>Stelt0Mon, 07 Oct 2019 09:40:24 -0400https://answers.axonivy.com/questions/4077/complete-task-from-restapijavaresttaskREST API and JSESSIONIDhttps://answers.axonivy.com/questions/4032/rest-api-and-jsessionid<p>Hi Ivy Team,</p> <p>Is there a way to get the JSESSIONID (or the whole cookie itself) of the logged in user ?</p> <p>I want to build a rest method which is authenticating the user. I need to return the cookie, so that next requests are authenticated</p> <p>BR, Yordan</p>Stelt0Mon, 30 Sep 2019 03:58:26 -0400https://answers.axonivy.com/questions/4032/rest-api-and-jsessionidauthenticationapijavarestJava Api for Start Process Signature variableshttps://answers.axonivy.com/questions/3984/java-api-for-start-process-signature-variables<p>Hello IvyTeam,</p> <p>Is there a way to get the list of parameters which are defined in the Signature of a process start element ? *I need this information before starting the process instance.</p> <p>I checked the public API but such information is not available. So, I assume there is an Internal API that I can use ? Can you provide some code snipet? </p> <p>Best Regards, Yordan</p>Stelt0Tue, 17 Sep 2019 09:38:57 -0400https://answers.axonivy.com/questions/3984/java-api-for-start-process-signature-variablesprocessapijavaHow to use Gradle with Ivy projecthttps://answers.axonivy.com/questions/3730/how-to-use-gradle-with-ivy-project<p>Dear Ivy team</p> <p>Currently, our Ivy projects are using Maven as the build system, but with Maven, the build process (include testing) is very slow. And I know that by using Gradle, it will help us with this problem by boosting the build process much faster than Maven.</p> <p>So I just wanna try to apply Gradle to our Ivy projects to see how much it improves our build process. Unfortunately, I got a problem with Axon.ivy Project Build Plugin. As far as I know that we need to use "Project Build Plugin" to resolve Ivy's dependencies but that plugin doesn't support Gradle. So is there any possibility to apply Gradle with Ivy project? </p> <p>Thank in advance</p>lphieuThu, 07 Mar 2019 23:23:39 -0500https://answers.axonivy.com/questions/3730/how-to-use-gradle-with-ivy-projectmavenjavaivyJava 8 Update 201 Authentication window on Startuphttps://answers.axonivy.com/questions/3659/java-8-update-201-authentication-window-on-startup<p>Dear all </p> <p>We face the following Problem with the new Java Version 8 Update 201: <a href="https://imgur.com/a/DTe02wn">https://imgur.com/a/DTe02wn</a> Other Java Application like Abacus don't have the Problem</p> <p>The problem only exists if the client updates the JAVA Client to 8_201. It also exists on other installations from our partener who have the update installed. The error means the following in English: Enter credentials to access &lt;default&gt; on "server name / IP":</p> <p>If I type in my username and password it works. But the Window will come up at the next start. Does anyone know a solution for this?</p> <p>I tried many things out in the Java Settings but non helped, as it worked with the old Java Client.</p> <p>In% temp% the file JavaDeployReg.log which has the following error:</p> <pre><code>[2019/02/07 13: 35: 44.844] GetLatestJavaws32or64Home (): [2019/02/07 13: 35: 44.844] GetLatestJavawsVersion (): [2019/02/07 13: 35: 44.844] checking 32-bit [2019/02/07 13: 35: 44.844] Processing key: 1.0.1 [2019/02/07 13: 35: 44.844] check JRE registry to see if it's corrupted webstart key [2019/02/07 13: 35: 44.844] failing to recover the key when attempting to open the key FAIL, error code [2] [2019/02/07 13: 35: 44.844] Processing key: 1.0.1_02 [2019/02/07 13: 35: 44.844] check JRE registry to see if it's corrupted webstart key [2019/02/07 13: 35: 44.844] failing to recover the key when attempting to open the key FAIL, error code [2] [2019/02/07 13: 35: 44.844] Processing key: 1.0.1_03 [2019/02/07 13: 35: 44.845] check JRE registry to see if it's corrupted webstart key [2019/02/07 13: 35: 44.845] failed to recover the key when attempting to open the key FAIL, error code [2] [2019/02/07 13: 35: 44.845] Processing key: 1.0.1_04 [2019/02/07 13: 35: 44.845] check JRE registry to see if it's corrupted webstart key [2019/02/07 13: 35: 44.845] failed to recover the key when attempting to open the key FAIL, error code [2] [2019/02/07 13: 35: 44.845] Processing key: 1.2 [2019/02/07 13: 35: 44.846] check JRE registry to see if it's corrupted webstart key [2019/02/07 13: 35: 44.846] failed to recover [2019/02/07 13: 35: 44.846] Processing key: 1.2.0_01 [2019/02/07 13: 35: 44.846] check JRE registry to see if it's corrupted webstart key [2019/02/07 13: 35: 44.846] failed to recover [2019/02/07 13: 35: 44.846] Processing key: 11.201.2 [2019/02/07 13: 35: 44.846] GetLatestJavawsVersion (): [2019/02/07 13: 35: 44.846] checking 64-bit [2019/02/07 13: 35: 44.846] failed to open SOFTWARE \ JavaSoft \ Java Web Start [2019/02/07 13: 35: 44.846] latestVersion: 11.201.2 latestHome: C: \ Program Files (x86) \ Java \ jre1.8.0_201 \ bin </code></pre> <p>Can I give mabye more Information?</p> <p>Thanks so much and best regards Zueger Nico :)</p>ZuegerThu, 07 Feb 2019 09:16:05 -0500https://answers.axonivy.com/questions/3659/java-8-update-201-authentication-window-on-startupjavaJava 8 is out of support: What can I do to still use my RIA clients in the Axon.ivy Engine?https://answers.axonivy.com/questions/3598/java-8-is-out-of-support-what-can-i-do-to-still-use-my-ria-clients-in-the-axon-ivy-engine<p>Oracle has decided that they will no longer will publish Update/Bug Fixes/Security Fixes for JDK 8 for free after January 2019. If you want such Update Release after January 2019 you have to buy support from Oracle.</p> <p>Moreover, Oracle will only publish free update releases for JDK 11 for at least 6 months. After the 6 months you can have update releases only if you buy support from Oracle.</p> <p>What does this mean for my Axon.ivy Engine? Do I need to pay for Oracle support now or are there other possible solutions that AXON Ivy suggests?</p>andreas_balsigerFri, 21 Dec 2018 09:02:47 -0500https://answers.axonivy.com/questions/3598/java-8-is-out-of-support-what-can-i-do-to-still-use-my-ria-clients-in-the-axon-ivy-engineoraclejrejavajdklicenseHow to access to endpoint of websocket in Axon.ivy 7.x?https://answers.axonivy.com/questions/3502/how-to-access-to-endpoint-of-websocket-in-axon-ivy-7-x<p>hi Ivyteam,</p> <p>I just created a websocket API by java in Ivy.</p> <p>Here is my example:</p> <pre><code>import java.io.IOException; import javax.websocket.OnClose; import javax.websocket.OnError; import javax.websocket.OnMessage; import javax.websocket.OnOpen; import javax.websocket.Session; import javax.websocket.server.ServerEndpoint; @ServerEndpoint("/echo") public class EchoWebSocket { @OnOpen public void onOpen(Session session) { System.out.println("onOpen::" + session.getId()); } @OnClose public void onClose(Session session) { System.out.println("onClose::" + session.getId()); } @OnMessage public void onMessage(String message, Session session) { System.out.println("onMessage::From=" + session.getId()); try { session.getBasicRemote().sendText(message.toUpperCase()); } catch (IOException e) { e.printStackTrace(); } } @OnError public void onError(Throwable t) { System.out.println("onError::" + t.getMessage()); } } </code></pre> <p>I don't know how to access to this endpoint in Ivy like "http://localhost:8081/ivy/echo"? Please give me the feedback soon!</p> <p>Thanks and best regards</p> <p>Cuong Phan</p>cuongphanWed, 24 Oct 2018 08:43:48 -0400https://answers.axonivy.com/questions/3502/how-to-access-to-endpoint-of-websocket-in-axon-ivy-7-xdesignerjavaInsert spaces for tabs do not workhttps://answers.axonivy.com/questions/3500/insert-spaces-for-tabs-do-not-work<p>In my axon.Ivy Designer (v.7.0.5) I want to Insert 4 spaces instead of tabs. (Internal Code Styleguide). Luckily there is a Setting in Axon.Ivy for reach this:</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/4_SpacesSettings.png"></p> <p>But, this Setting does not work for me. When I am in Java Editor on a Class Header and Press Enter, the editor insert a Tab:</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/Inserted_Tab.png"></p> <p>Is there something more to pay attention?</p>Thomas WirzWed, 24 Oct 2018 03:26:35 -0400https://answers.axonivy.com/questions/3500/insert-spaces-for-tabs-do-not-workdesignerjavacom.sun.deploy.net.JARSigningException: Unsignierter Eintraghttps://answers.axonivy.com/questions/3384/com-sun-deploy-net-jarsigningexception-unsignierter-eintrag<p>Hi!</p> <p>Ich habe Problem mit Ivy RIA Application. Ivy Designer Version 5.1.13, Java JRE im Rechner ist 1.7.0_45 b18. Wenn ich im Designer RIA Applikation starten will, kommt ein Fehler (nach jnlp Hewrunterladung und Verifizierung): com.sun.deploy.net.JARSigningException: Unsignierter Eintrag gefunden in Ressource: batik-awt-util-5.1.5.161938.jar</p> <p>Wenn ich das gleiche mit Designer 5.1.4 probiere, Applikation startet problemlos. Koennen Sie hlefen?</p> <p>Danke fuer Unterstuetzung<br> josef koupal</p>josef_koupalMon, 13 Aug 2018 10:36:35 -0400https://answers.axonivy.com/questions/3384/com-sun-deploy-net-jarsigningexception-unsignierter-eintragdesignerjavariaUse a Maven-Java-Project as libraryhttps://answers.axonivy.com/questions/3243/use-a-maven-java-project-as-library<p>Can I create a maven-java project and import this project as a library project into an axon.ivy project? I am facing problems doing this. Until now I have packaged the maven-java project as a .jar file and added the jar to the axon.ivy project's build path. This works fine but we need a more convenient way. We want to reference from the axon.ivy project to the maven-java project. I have added to the axon.ivy project's pom.xml a dependency pointing to the maven-java project. But when using classes from the maven-java project in the axon.ivy project I face problems. The script tasks cannot resolve the dependencies.</p> <p>Moreover, I am wondering if it is possible to deploy war files to the axon.ivy engine?</p> <p>I would apreciate hints or recommendations?</p>phehnleThu, 26 Apr 2018 11:41:28 -0400https://answers.axonivy.com/questions/3243/use-a-maven-java-project-as-librarymavenjavaCan I use Java 9 to load Rich User Dialogs ?https://answers.axonivy.com/questions/2991/can-i-use-java-9-to-load-rich-user-dialogs<p>Java 9.0.1 form Oracle is already available. Yet clients that have Java 1.8 are not automatically updated to Java 9. We have many users that consume Rich Html Dialogs (Java WebStart - ULC) with local Java installations on the Client. Is it save to migrate them to Java 9?</p>SupportIvyTeamMon, 20 Nov 2017 09:26:52 -0500https://answers.axonivy.com/questions/2991/can-i-use-java-9-to-load-rich-user-dialogsrichdialogulcjavaSOAP Webservice in Ivy using Javahttps://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java<p>I tried to publish a web service similar to the one described in the tutorial below. I did not use the out-of-the-box Ivy WS process as each of the WS have many methods (and decided to build them in Java instead). </p> <p><a href="https://www.journaldev.com/9123/jax-ws-tutorial">Example</a></p> <p>Using Endpoint.publish() I specified the location for the WS. However, this requires me to run the class containing this method in the java console, and then run Ivy. I tried tying Endpoint.publish() to a "Start Process" in Ivy but it did not work. </p> <pre><code>public class SOAPPublisher { public static void main(String[] args) { Endpoint.publish("http://localhost:8888/ws/depotWS99", new WSDepotShopImpl()); } </code></pre> <p>Is there a "best practices" method to building a SOAP WS via Java in Ivy, and how do I get the WS published in Ivy? Thanks!</p>Walter WeissFri, 03 Nov 2017 11:36:49 -0400https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-javaivyjavasoapwebserviceAttach Java source in Axon.ivy Designer 6.3https://answers.axonivy.com/questions/2899/attach-java-source-in-axon-ivy-designer-6-3<p>Hi everyone, I have an issue with attaching Java source in Axon.ivy Designer 6.3.<br> When I <em>Ctrl + Click</em> or <em>F3</em> on a class name, Designer will open a Class File Editor with <strong>Attach Source...</strong> button. And it seems working when I use that function to attach source of external libraries (e.g. <code>org.apache.commons.collections4.CollectionUtils</code>) but the problem is when I restart or exit and start Designer, the source is not there and I have to attach it again.<br> Could you please help me on this? Thank you.</p>Bao TranFri, 06 Oct 2017 00:10:05 -0400https://answers.axonivy.com/questions/2899/attach-java-source-in-axon-ivy-designer-6-3eclipsedesignerjavalibraryHow to load resources in IvyProject from Java?https://answers.axonivy.com/questions/2872/how-to-load-resources-in-ivyproject-from-java<p>In typical Java EE maven project I put resources in src/main/resources and access files with getResourceAsStream().</p> <p>How to work relative to the current class has been dicussed in <a href="https://discourse.axonivy.io/t/how-to-read-file-in-resources-folder-or-webcontent-in-an-axon-ivy-project/135/2" title="this thread">this thread</a>. However, I would need an absolute way to access resources. </p> <p>Background of this question is that I would like to use <a href="http://owner.aeonbits.org/" title="owner">owner</a> config <a href="http://owner.aeonbits.org/docs/loading-strategies/" title="with fallback">with fallback</a> to a classpath property file.</p> <p>Thanks for help.</p>adamfWed, 20 Sep 2017 06:42:11 -0400https://answers.axonivy.com/questions/2872/how-to-load-resources-in-ivyproject-from-javamavenjavaRIA web start application won't start after upgrading to Java 8 update 141https://answers.axonivy.com/questions/2774/ria-web-start-application-won-t-start-after-upgrading-to-java-8-update-141<p>After upgrading my client JRE to the newly released <strong>Java 1.8 update 141</strong> my RIA based web start application won't start.</p> <p>The following Message is shown: </p> <p><code>Could not verify resource signature: <a href="http://hostname/ivy/rdlib/jakarta-oro-....jar">http://hostname/ivy/rdlib/jakarta-oro-....jar</a></code></p>Flavio SadeghiThu, 20 Jul 2017 06:22:45 -0400https://answers.axonivy.com/questions/2774/ria-web-start-application-won-t-start-after-upgrading-to-java-8-update-141javaCMS - add a PDF file to the processhttps://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process<p>Hi all,</p> <p>I'm trying to find the way to do the following. We need to start a process when a email comes with an attachment. I can solve this by a daemon in OS at host. But then, when the file moves to a folder, I need to:</p> <ul> <li>Start the process </li> <li>Add the PDF to the process to be available to process users.</li> </ul> <p>I'm writing a Java class in order to search if there is a file to the folder and raise the start of the process. I need to know how can put it in a daemon that executes that every x minutes. Then, I have to attach the PDF to the process, but I'm not finding a way to do it.</p> <p>Any idea?</p> <p>Thanks in advance</p>jirazazabalTue, 23 May 2017 08:18:40 -0400https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-processcmsjavabouncycastle bcprov-jdk15on-1.56https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56<p>Hello Ivy Team,</p> <p>I would like to sign PDF files using apache pdfbox. Apache pdfbox requires the bcprov-jdk15on for encryption and signing. When I try to run the signing example (<a href="https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/)">https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/)</a> i get a <code> Exception in thread "main" java.lang.SecurityException: class "org.bouncycastle.asn1.ASN1Primitive"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(Unknown Source) </code></p> <p>I think this exception occurs because the designer has a bcprov-jdk15-1.45.jar already included, but this is not the jar pdfbox expects. (bcprov-jdk15 and bcprov-jdk15on)</p> <p>When I try to delete this jar it is automatically recreated on startup.</p> <p>Could you please help me to solve this problem.</p> <p>I am using the ivy Designer 5.1.8</p> <p>Thank you and best regards Florian</p>Florian HeinrichFri, 21 Apr 2017 06:11:03 -0400https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56javaIvy log files are empty when accessed through an upstream serverhttps://answers.axonivy.com/questions/2508/ivy-log-files-are-empty-when-accessed-through-an-upstream-server<p>Hello everybody</p> <p>We got Ivy running on a windows server. A few weeks ago, we added an upstream Linux Apache Server which connects via AJP. When the Ivy application is accessed through this Linux server, the log files don’t get written anymore. The log files are generated every day but they are just empty. Also generated files with Java (e.g. Excel-Files) are damaged and can’t be read correctly. If we access the application locally through http, the log file gets written and the files can be generated and read.</p> <p>Could someone please help us figure out why these logs are turning out empty and how to fix it? Thanks in advance</p> <p>Marco</p>Marco KlauenböschTue, 21 Mar 2017 10:49:20 -0400https://answers.axonivy.com/questions/2508/ivy-log-files-are-empty-when-accessed-through-an-upstream-serverjavaivyserverRIA web start application won't start after upgrading to Java 8 update 121https://answers.axonivy.com/questions/2383/ria-web-start-application-won-t-start-after-upgrading-to-java-8-update-121<p>After upgrading my client JRE to the newly released Java 1.8 update 121 my RIA based web start application won't start.</p> <p>The following Message is shown ("Unsigned application requesting unrestricted access to the system"):</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/java8-error-webstart.png"></p>SupportIvyTeamThu, 19 Jan 2017 11:59:26 -0500https://answers.axonivy.com/questions/2383/ria-web-start-application-won-t-start-after-upgrading-to-java-8-update-121javaEager Loadinghttps://answers.axonivy.com/questions/2311/eager-loading<p>Hello Ivy Team,</p> <p>In my project, I had to switch from the default Eager loading to the Lazy loading of the Entity classes. The reason was that the queries were not optimized. Now I have the following problem, every time I try to inspect the variables in debug mode, the Designer is throwing errors and it is almost impossible for debugging:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Capture_JJL7IfL.JPG"></p> <p>Best Regards, Yordan Yunchov</p>Stelt0Wed, 21 Dec 2016 09:19:58 -0500https://answers.axonivy.com/questions/2311/eager-loadingprocessdebuggingdesignerjavadataclassCan I add a Java Project reference instead of a libraryhttps://answers.axonivy.com/questions/2142/can-i-add-a-java-project-reference-instead-of-a-library<p>Hi</p> <p>Is it possible to add a Java Project as project reference to the Java Build Path? Adding a project as a library works fine. Adding a Project as Project reference results in a ClassNotFoundException. <img alt="alt text" src="http://answers.axonivy.com/upfiles/javabuildpath.png"></p> <p>I also tried to add it to the packaging structure but still have the ClassNotFoundException. <img alt="alt text" src="http://answers.axonivy.com/upfiles/DeploymentAssembly.png"></p>MichaelThu, 27 Oct 2016 08:34:12 -0400https://answers.axonivy.com/questions/2142/can-i-add-a-java-project-reference-instead-of-a-librarydesignerjavaIvyScript - support for Streams and Lambda expressionshttps://answers.axonivy.com/questions/1902/ivyscript-support-for-streams-and-lambda-expressions<p>Hi All,</p> <p>I see that IvyScript does not support some of the new features in Java8 like Streams and Lambda expressions. Is it in the road-map ?</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/img.jpg"></p> <p>Best Regards, Yordan Yunchov</p>Stelt0Mon, 18 Jul 2016 13:22:42 -0400https://answers.axonivy.com/questions/1902/ivyscript-support-for-streams-and-lambda-expressionsivyscriptjavaUse of Connection Poolhttps://answers.axonivy.com/questions/1677/use-of-connection-pool<p>Hi</p> <p>Is it possible to use the connection pool from ivy in a Java class?</p> <p>I currently reading the database configuration with : <code> Ivy.wfCase().getApplication().findExternalDatabaseConfiguration("myDB") </code></p> <p>and open the configuration with: <code> ch.ivyteam.db.jdbc.DatabaseUtil.openConnection(dbConf) ch.ivyteam.db.jdbc.DatabaseUtil.DatabaseUtil.closeConnection(conn); </code></p> <p>With this approach it doesn't use the pooled connections like in an ivy database step.</p>MichaelThu, 10 Mar 2016 09:17:17 -0500https://answers.axonivy.com/questions/1677/use-of-connection-poolconfigurationjavapersistenceCan I install eclemma (jacoco) for AxonIvy 5https://answers.axonivy.com/questions/1484/can-i-install-eclemma-jacoco-for-axonivy-5<p>Hello Everybody,</p> <p>Pls give me some guidelines to install eclemma(jacoco), FindBugs, CheckStyle for AxonIvy 5. I need to check the code styles, code coverages,... in axon ivy designer.</p> <p>Thanks &amp; Regards,</p>Hap EmTue, 29 Sep 2015 10:04:46 -0400https://answers.axonivy.com/questions/1484/can-i-install-eclemma-jacoco-for-axonivy-5javaAre the Java-Files within src_dataClasses committed to a VCS?https://answers.axonivy.com/questions/1425/are-the-java-files-within-src_dataclasses-committed-to-a-vcs<p>When editing the Java-Class of a DataClass within the Java-Perspective it seems that the corresponding Java-Code is not committed to a VCS. How does Ivy work here? Are the ivyClass-Files used to generate those on the fly?</p>Nikel WeisTue, 04 Aug 2015 14:52:40 -0400https://answers.axonivy.com/questions/1425/are-the-java-files-within-src_dataclasses-committed-to-a-vcsjavaHow can I get the ClassLoader of a specific PMVhttps://answers.axonivy.com/questions/1391/how-can-i-get-the-classloader-of-a-specific-pmv<p>Hi everyone</p> <p>Is it possible to receive the ClassLoader of a specific Process Model/Process Model Version (if I already have an <code>IProcessModelVersion</code> instance)?</p> <p>Best regards Lars</p>Lars TuchelTue, 07 Jul 2015 14:36:24 -0400https://answers.axonivy.com/questions/1391/how-can-i-get-the-classloader-of-a-specific-pmvjavaReal Time Progress bar with a blockUI doesn't work using primefaces with atmospherehttps://answers.axonivy.com/questions/1126/real-time-progress-bar-with-a-blockui-doesn-t-work-using-primefaces-with-atmosphere<p>I have a button and when I press on it, the method obtains data from the data base and show the records in a datatable. The action takes more than 1 minute and I want to show a progress bar (the time is variable)</p> <p>I found the solution in this page: <a href="http://answers.axonivy.com/questions/16/show-a-real-time-progress-bar-in-a-html-user-dialog">Show a real time progress bar in a Html User Dialog</a></p> <p>The problem is that I show the progress bar, but always is "0%". In the javascript function never enter. And I don't know if I'm doing something wrong.</p> <p>This is my XHTML: (I can't write the simbol 'is less than')</p> <pre><code>h:form id="formAllocate"&gt; p:panel id="panel" header="Realtime ProgressBar"&gt; p:commandButton id="btn" value="Start" actionListener="#{scheduleMB.startLongRunningProcess}"&gt; /p:commandButton&gt; /p:panel&gt; p:blockUI block="panel" trigger="btn"&gt; p:progressBar widgetVar="progressBar" style="width:300px" labelTemplate="{value}%"&gt; /p:progressBar&gt; span id="msg"&gt;&lt;/span&gt; /p:blockUI&gt; /h:form&gt; p:socket channel="/realtime" onMessage="handleProgress"&gt;&lt;/p:socket&gt; script type="text/javascript"&gt; function handleProgress(progressJson) { alert('begin'); var progressData = eval("(" + progressJson + ")"); progressBar.setValue(progressData.progress); $("#msg").text(progressData.msg); } /script&gt; </code></pre> <p>This is my Bean:</p> <pre><code>public void startLongRunningProcess(){ EventBus eventBus = EventBusFactory.getDefault().eventBus(); eventBus.publish("/realtime", "{ 'progress' : 10, 'msg' : 'Extract data'}"); list = getAuxService().findList(userSelected, initDate2, endDate2); } </code></pre> <p>In the web.xml:</p> <pre><code>servlet&gt; servlet-name&gt;Push Servlet&lt;/servlet-name&gt; servlet-class&gt;org.primefaces.push.PushServlet&lt;/servlet-class&gt; load-on-startup&gt;1&lt;/load-on-startup&gt; async-supported&gt;true&lt;/async-supported&gt; /servlet&gt; servlet-mapping&gt; servlet-name&gt;Push Servlet&lt;/servlet-name&gt; url-pattern&gt;/primepush/*&lt;/url-pattern&gt; /servlet-mapping&gt; </code></pre> <p>In my pom.xml I have this dependencies:</p> <pre><code>dependency&gt; groupId&gt;org.atmosphere&lt;/groupId&gt; artifactId&gt;atmosphere-runtime&lt;/artifactId&gt; version&gt;2.2.2&lt;/version&gt; /dependency&gt; dependency&gt; groupId&gt;org.roboguice&lt;/groupId&gt; artifactId&gt;roboguice&lt;/artifactId&gt; version&gt;2.0&lt;/version&gt; /dependency&gt; </code></pre> <p>I'm using primefaces 5.1, spring 3.2.5, hibernate 4.2.7, java 1.7, primefaces extension 3.0.0</p> <p>What I'm doing wrong???</p> <p>Thx for the help and answer.</p>cascamorrisWed, 21 Jan 2015 10:44:11 -0500https://answers.axonivy.com/questions/1126/real-time-progress-bar-with-a-blockui-doesn-t-work-using-primefaces-with-atmosphereprimepushjavaprimefacesIs Java 8 client-side supported with Ivy 5.0 and 5.1 RIA applications?https://answers.axonivy.com/questions/1031/is-java-8-client-side-supported-with-ivy-5-0-and-5-1-ria-applications<p>Several customer ask to remove Java 7 and install Java 8 on their desktops.</p> <p>Is it officially supported with Ivy 5.0/5.1 applications ? Do issues have already been identified?</p>A1234Tue, 11 Nov 2014 14:03:43 -0500https://answers.axonivy.com/questions/1031/is-java-8-client-side-supported-with-ivy-5-0-and-5-1-ria-applicationsjava"Failed to create the Java virtual machine" when trying to start the Axon.ivy Designerhttps://answers.axonivy.com/questions/977/failed-to-create-the-java-virtual-machine-when-trying-to-start-the-axon-ivy-designer<p>When trying to start the new Axon.ivy 5.1 Designer, the following error message appears:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/error.png"></p> <p>Previous versions of the designer has always started correctly. What is the problem here?</p>Barbara BruggerWed, 24 Sep 2014 11:54:22 -0400https://answers.axonivy.com/questions/977/failed-to-create-the-java-virtual-machine-when-trying-to-start-the-axon-ivy-designerdesignerjava