Questions Tagged With environmenthttps://answers.axonivy.com/tags/environment/?type=rssquestions tagged <span class="tag">environment</span>enMon, 29 Jun 2020 04:14:40 -0400Switching the environment to a new physical hardwarehttps://answers.axonivy.com/questions/4621/switching-the-environment-to-a-new-physical-hardware<p>Hi Ivy team, </p> <p>We are facing the challenge, that our customer will switch the PROD-Enviornment to a new physical hardware within the next few month. </p> <p>We used ivy business data, task data and case data for storing the user data. We also create some folder inside the application folder and keep some pdf, image, doc file.....</p> <p>The question is - How can we switch the database from the old environment to the new one? - Can we export the DB from the old ivy instance and import it to the new one? - Is there any document / guide on how to do that?</p> <p>Thank you!</p>khanh11166Mon, 29 Jun 2020 04:14:40 -0400https://answers.axonivy.com/questions/4621/switching-the-environment-to-a-new-physical-hardwareengineenvironmentswitchmigrationWhat is the right way to check the OS where ivy is running?https://answers.axonivy.com/questions/2662/what-is-the-right-way-to-check-the-os-where-ivy-is-running<p>Hello Ivy Team,</p> <p>I`m wandering what is the best practice(if any) to check what is the operating system where Ivy is currently running (i.e. Windows 10, Windows Server 2012, Linux, MacOS, etc..)</p> <p>Best Regards, Yordan Yunchov</p>Stelt0Fri, 02 Jun 2017 03:11:20 -0400https://answers.axonivy.com/questions/2662/what-is-the-right-way-to-check-the-os-where-ivy-is-runningengineenvironmentivyscriptdesignerJython Console for my projectshttps://answers.axonivy.com/questions/1054/jython-console-for-my-projects<p>Is there a way to use the jython standalone console application with my Project classes? My Project classes can be used unless they have some kind of Ivy-context. When I try to create an instance of a 'Dao', it tells me that Ivy could not be initialized... (Ivy.persistence().get...)</p> <pre><code>java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class ch.ivyteam.ivy.environment.Ivy </code></pre> <p>Is there a way to setup this correctly?</p>beatjostWed, 26 Nov 2014 10:41:31 -0500https://answers.axonivy.com/questions/1054/jython-console-for-my-projectsenvironmentHow can Junit access to Ivy environment without EnvironmentNotAvailableExceptionhttps://answers.axonivy.com/questions/617/how-can-junit-access-to-ivy-environment-without-environmentnotavailableexception<p>Hello everybody I have two projects, one is A and one is A_Test. And i try to run JUnit Test case from project A_Test to test some functionalities of A. Here is a portion of code Project A</p> <pre><code>public CalendarEventRequest(){ this.organizer = **Ivy.var().get("xabs_calendarEvent_organizer").toString();** Calendar c = new GregorianCalendar(Ivy.session().getContentLocale()); this.timezone= c.getTimeZone(); } </code></pre> <p>Test case</p> <pre><code>@Test public void testCreateCalendarEvent002() throws Exception { CalendarEventRequest request = new CalendarEventRequest(); CalendarEventResult result = CalendarUtil.createCalendarEvent(request); assertNotNull(result); } </code></pre> <p>And JUnit threw this exception:</p> <pre><code> ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible. Current thread: Thread[main,5,main] at ch.ivyteam.ivy.environment.Ivy.getEnvironmentData(Ivy.java:455) at ch.ivyteam.ivy.environment.Ivy.var(Ivy.java:272) at ch.soreco.customers.xabs.bean.CalendarEventRequest.&lt;init&gt;(CalendarEventRequest.java:26) at ch.soreco.customers.xabs.bean.CalendarUtilTest.createRequestForOneDay(CalendarUtilTest.java:75) at ch.soreco.customers.xabs.bean.CalendarUtilTest.testCreateCalendarEvent002(CalendarUtilTest.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) </code></pre> <p>anyone can help me?</p>trungdvMon, 07 Apr 2014 09:34:02 -0400https://answers.axonivy.com/questions/617/how-can-junit-access-to-ivy-environment-without-environmentnotavailableexceptionenvironmentunit-testdesignerivyChange application environment on loginhttps://answers.axonivy.com/questions/235/change-application-environment-on-login<p>Hi there</p> <p>is it possible to change the used environment for an user by api? Means we implement some logic in the login process which detects the postfix of a user. If it matches _test we should use the test environment if not we use the default which is set in application configuration.</p> <p>Thanks for the fish, Sven</p>skilchenmannWed, 08 Jan 2014 09:50:20 -0500https://answers.axonivy.com/questions/235/change-application-environment-on-loginenvironmentapi