Quantcast
Channel: Mendix Forum Questions
Viewing all 83469 articles
Browse latest View live

RestServices - Body from form-data POST action

$
0
0

I'm testing a microflow where I submit a file using the POST java function as form-data.

For debug purposes i would like to see what form-data is send in the request, but the RestConsume logging only shows the request without the data.

Is there a way to get this data in the logging?


Refresh object in the browser without using a session

$
0
0

We have a challanging situation where the user has a counter of unread messages. This is saved in the account object and shown in the navigation layout. Because the navigation layout gets cached, the counter is not updated by default very often. This is why we would like to force a refresh of the account object when a new message is created. So that if the user is logged in, the counter will be instantly refreshed. Is this possible?

Things we tried that didn't work:

- Microflow timer widget that checks if the counter needs to be refreshed. This works perfect but breaks the requirement that the user needs to be logged out after 15 minutes of inactivity. Since the microflow timer widget always uses the session, the user will be active forever :)

- Placing the counter in a non-persistent object and refresh it when the message is created

Any idea is most welcome :)

Testing microflow diff tool

$
0
0

Hi everyone, 

We are developing a diff tool for compare different Mendix revisions. Our ambition is to compare many aspects of Mendix application: microflow, domain model, security, form, widget settings,… We believe the tool will be very helpful for Mendix engineers. 

For now, we are focusing on displaying and comparing microflow since it seems to be most wanted. 

 

For text document, there are many available diff tools you can find. However, since Mendix's "code", mostly, is not displayed visually as text so comparing and displaying are not the same. 

In order to make the tool completed, we would like to invite you to join and test the tool with us, give feedback and ideas. 

 

That's why I am wonder if anyone curious and interested in testing the alpha version with us?

If you are, please send me your email at d.bui@schhanoi.com or leave it at the comment so I can send the setup file. 

 

Thanks, 

XML Schema - ref tag not supported in export mappings

$
0
0

I have an XSD file that is generating a warning when I try to create an XML schema in the Modeler.  The error message is as follows:

Type of element 'http://www.---------.com/data/imports/invoice:Tariff': This 'Choice' element is not supported in export mappings.

The XSD file looks like this:

Note the inv namespace highlighted.

Looking at the Tariff element, if I exclude the ref elements highlighted below, I don't get the error message in the modeler:

These ref elements point to other parts of the the same XSD file.

Has anyone encountered this before?  Any pointers about how to work around this?

Thanks!

Mike

XML Schema - Element Not Supported in Export Mappings

$
0
0

I have an XSD schema for an invoice that has several elements that give me errors when trying to create an XML schema in the Modeler.  I've included one example at the end of this posting.  The error message I get is "Type of element 'http://www.company.com/data/imports/invoice:OGA': This 'Choice' element  is not supported in export mappings."  Any pointers about how I can use this schema in the Modeler greatly appreciated.  I need to export data from my Mendix app using this schema.

 

<xs:element name="OGA"><xs:complexType><xs:choice minOccurs="0" maxOccurs="999"><xs:element minOccurs="0" default="0" name="GUID" type="xs:string" /><xs:element minOccurs="0" maxOccurs="10" name="FDADisclaimerFlag"><xs:simpleType><xs:restriction base="xs:boolean" /></xs:simpleType></xs:element><xs:element minOccurs="0" maxOccurs="10" ref="inv:FDA" /><xs:element minOccurs="0" maxOccurs="10" name="DOTDisclaimerFlag"><xs:simpleType><xs:restriction base="xs:boolean" /></xs:simpleType></xs:element><xs:element minOccurs="0" maxOccurs="10" ref="inv:DOT" /><xs:element minOccurs="0" name="EPADisclaimerFlag"><xs:simpleType><xs:restriction base="xs:boolean" /></xs:simpleType></xs:element><xs:element minOccurs="0" maxOccurs="10" ref="inv:EPA" /><xs:element minOccurs="0" maxOccurs="10" name="FCCDisclaimerFlag"><xs:simpleType><xs:restriction base="xs:boolean" /></xs:simpleType></xs:element><xs:element minOccurs="0" maxOccurs="10" ref="inv:FCC" /><xs:element minOccurs="0" name="FWSDisclaimerFlag"><xs:simpleType><xs:restriction base="xs:boolean" /></xs:simpleType></xs:element><xs:element minOccurs="0" maxOccurs="1" ref="inv:FWS" /></xs:choice></xs:complexType></xs:element>

 

How to use attribute of type Decimal in PivotDataWidget

$
0
0

Input for my Pivot Table is an entity with 3 attributes: Period, Time and Usage.

Type of attribute Usage = Decimal.

In the configuration of the PivotDataWidget X-Axis attribute = Period and Y-axis attributes = Time.

As Cell Value Attribute I like to select Usage.
However only attributes of type Currency, Date and time, Integer, Long, Enumeration, String are allowed.

(if I change the type of attribute Usage to Integer there is no error and Pivot Table can be created)

Performance in Mendix 6

$
0
0

Hi Team,

 

We observed that Performance in mendix 6(6.7.1) is comparitively slower than that of mendix 4.7.1.

Did anyone else also facing the same issue?

Any pointers would be appreciated.

 

Regards,

Swathi

How to use Chartjs to create reports?

$
0
0

Hi,

In my application I want to create some reports. For that, I used the default reports which are provided by our mendix modeler. Now I don't want that reports. Beacause I am facing an issue with them when I am trying to import the reports. So for that I want to create reports using ChartJs. But I don't know how to use them. I tried to understand from the documentation, but I didn't get anything. So please help me in how to use ChartJs to create reports. I hope I am clear.

 

Thanks,

Venkat.


Joint the Community Expert Meeting : Widget Edition, 1st of June

$
0
0

There are a still a view last seats available, so join us! Get feedback on your own widget code.

Community Expert Meeting : Widget Edition

As MVP widget group, we are organizing a Community Expert Meeting the Widget Edition on June 1st, from 16:00 – 20:00 at the Mendix office Rotterdam. This expert meeting will be focused on widget development beyond the basics. As community, we want to increase our widget development capabilities by sharing knowledge, best practices, and experience.

The following can be expected in this meeting:

  • Code reviews
  • Knowledge and best practice sharing
  • How to approach widget development
  • Technical knowledge
  • Development tools
  • Feedback on your submitted widgets

 

What should you bring to the table?

  • Decent JavaScript knowledge
  • Experience with developing Mendix widgets 
  • One or more Mendix widgets available in a GitHub repository

 

Join us for this first community expert meeting. Limited seats available.

Register Here

See you 1st of June!

Andries Smit

Sharepoint integration with Mendix

$
0
0

Is there any documentation for sharepoint/opentext integration with Mendix? If yes can you please guide/provide me with the links?

Db connector error

$
0
0

Hi im trying to do a simple select statement using db connect tool.

 

jdbc url im using is :   'jdbc:sqlserver://dausql21:50709;DatabaseName=EDW'

 

sql query : 'Select  DateStart from TrackingVariable'

Passowrd and username is correct.

 

i get the following error:

 

 

com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: An error occurred while instantiating action 'ExecuteQuery'
    at Main.Microflow (JavaAction : 'Execute query')

Advanced stacktrace:
    at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: An error occurred while instantiating action 'ExecuteQuery'
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:398)

Caused by: com.mendix.core.CoreRuntimeException: An error occurred while instantiating action 'ExecuteQuery'
    at com.mendix.core.action.ActionFactory.createActionForClass(ActionFactory.scala:80)

Caused by: java.lang.reflect.InvocationTargetException: null
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at com.mendix.core.action.ActionFactory.createActionForClass(ActionFactory.scala:75)
    at com.mendix.core.action.ActionFactory.createJavaAction(ActionFactory.scala:45)
    at com.mendix.core.action.ActionFactory.createUserAction(ActionFactory.scala:40)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:389)
    at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:52)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Caused by: java.lang.NoClassDefFoundError: databaseconnector/impl/JdbcConnector
    at dataextract_stage.actions.ExecuteQuery.<init>(ExecuteQuery.java:102)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at com.mendix.core.action.ActionFactory.createActionForClass(ActionFactory.scala:75)
    at com.mendix.core.action.ActionFactory.createJavaAction(ActionFactory.scala:45)
    at com.mendix.core.action.ActionFactory.createUserAction(ActionFactory.scala:40)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:389)
    at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:52)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Caused by: java.lang.ClassNotFoundException: databaseconnector.impl.JdbcConnector not found by project [124]
    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at dataextract_stage.actions.ExecuteQuery.<init>(ExecuteQuery.java:102)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at com.mendix.core.action.ActionFactory.createActionForClass(ActionFactory.scala:75)
    at com.mendix.core.action.ActionFactory.createJavaAction(ActionFactory.scala:45)
    at com.mendix.core.action.ActionFactory.createUserAction(ActionFactory.scala:40)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:389)
    at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:52)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

 

 

 

db connector error

$
0
0

Hi guys

 

I trying to run asimple query using db connector from appstore :

 

I get the following error

------------------------------------------

An error has occurred while handling the request. [User 'MxAdmin' with session id 'd3758add-c144-4856-bb0f-9e053cb630e7' and roles 'Administrator']

--------

com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Could not initialize class javax.xml.bind.DatatypeConverterImpl
    at Comms.test (JavaAction : 'Execute query')

Advanced stacktrace:
    at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Could not initialize class javax.xml.bind.DatatypeConverterImpl
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:398)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Could not initialize class javax.xml.bind.DatatypeConverterImpl
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:176)

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Could not initialize class javax.xml.bind.DatatypeConverterImpl
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:40)

Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Could not initialize class javax.xml.bind.DatatypeConverterImpl
    at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:528)
    at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:118)
    at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:94)
    at databaseconnector.impl.JdbcConnectionManager.getConnection(JdbcConnectionManager.java:50)
    at databaseconnector.impl.JdbcConnector.executeQuery(JdbcConnector.java:80)
    at databaseconnector.impl.JdbcConnector.executeQuery(JdbcConnector.java:70)
    at databaseconnector.actions.ExecuteQuery.executeAction(ExecuteQuery.java:81)
    at databaseconnector.actions.ExecuteQuery.executeAction(ExecuteQuery.java:58)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:52)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Caused by: java.lang.NoClassDefFoundError: Could not initialize class javax.xml.bind.DatatypeConverterImpl
    at javax.xml.bind.DatatypeConverter.initConverter(DatatypeConverter.java:155)
    at javax.xml.bind.DatatypeConverter.parseHexBinary(DatatypeConverter.java:371)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:2874)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:2361)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:44)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:2347)
    at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:6276)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1794)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1405)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1069)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:905)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:452)
    at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1014)
    at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:95)
    at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:101)
    at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:316)
    at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:518)
    at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:118)
    at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:94)
    at databaseconnector.impl.JdbcConnectionManager.getConnection(JdbcConnectionManager.java:50)
    at databaseconnector.impl.JdbcConnector.executeQuery(JdbcConnector.java:80)
    at databaseconnector.impl.JdbcConnector.executeQuery(JdbcConnector.java:70)
    at databaseconnector.actions.ExecuteQuery.executeAction(ExecuteQuery.java:81)
    at databaseconnector.actions.ExecuteQuery.executeAction(ExecuteQuery.java:58)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:52)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
 

 

fileupload saveDocument cancel?

$
0
0

I'm currently creating a widget and i'm using the saveDocument function 

https://apidocs.mendix.com/7/client/mx.data.html#.saveDocument

 

I have a few questions.

- is it possible to cancel the function after you start it? (when saving big files)

- is it possible for it to not commit the files to the database right away so it's still possible to cancel the files after they are already uploaded?

(example: you upload something commit, go back upload nother few files and then cancel, you still want the previous committed files but not the canceld files)

 

Triggering a refresh in the client of another user

$
0
0

I've just spent some time trying to find a solution to an interesting problem a colleague of mine had (See this post: https://forum.mendixcloud.com/link/questions/87166).

In summary; we want to trigger a refresh of an object in the client of user A1 based of an action in the client of user A2. A microflow-timer or some similar polling mechanism is out of the question, as this interferes with the session-timeout after 10 minutes of inactivity (a requirement from a security standpoint).

Normally you'd probably resolve this using websockets (or a similar setup), but alas, Mendix gives us very limited control in this regard.

However, I figured I might have a workaround. We tried the following:

1) Create a 'notificationCounter' object that we want to refresh, and associate it to user-session for each logged-in user

2) Create a simple java-action that retrieves all active user-sessions, and for each session retrieves the associated notificationCounter object

3) Update and refresh all notificationCounter objects

My hope was that as we retrieved the specific in-memory instance of the notificationCounter for each user-session, the refresh would cause Mendix to send the refresh order to the correct client.

I gave it high odds this wouldn't work (though it was worth a try), and indeed it did not. We did get the correct notificationCounter object for the user-sessions (GUID as the same), but not only did the refresh have no effect in the other client, the change we made to the object (changed the count) was also not applied to the instance of object in the other user-session. 

Example: We have two sessions running on the same local server. A1 and A2. A1 will add a new notification, that should lead to an update of the notificationCount in A2. We retrieve both sessions as described above, update the notificationCount with a 'refresh in client'. We start a test microflow in A2 that retrieves notificationCount over the session association. Though we see that in A1, the 'count' attribute of the notificationCount instance with GUID X has been updated to 5, the same notificationCount instance we see in the debugger for A2 still reads 4. 

 

My question is purely out of theoretical interest (practical ideas to the other thread please), as it made me realise how little I understand of how Mendix handles these kind of interactions.

Why are we seeing this behavior?

On websockets / client-server interaction: Why does the above not initiate a refresh of the given object in the appropriate client?

On sessions / memory: Why does the above change in instance X of an object by user A1 not lead to a change in that same instance X for user A2? 

 

 

 

 

Deeplink with Safari private mode (both iphone and mac)

$
0
0

It looks like deeplinks don't work when Safari is in private mode.

Can anyone please confirm and make sure it will be fixed?


Custom login page with "Remember me" functionality

$
0
0

Hello everyone!

I'm trying to create a custom login page with a "remember me" option for a mobile app that I'm building. To that effect, I'd like to know if any of you have accomplished this in the past. Specifically, here's the info I'm looking for:

  1. What do I need to do in order to customize the login page (where should I look)
  2. How can I hook into the default mendix login behavior (for post-processing after a user sucessfully authenticates)
  3. What would it take to implement the "remember me" functionality on a mobile app (and not require a user to login everytime they open the app)

 

I'm assuming that the lack of such rudimentary functionality in the mendix modeler is symptomatic of other (possibly more elegant) approaches? If so, could someone please point me in the right direction. TIA!

Mendix SDK failed to open new online working copy

$
0
0

Hi everyone,

 

We are trying to use Mendix SDK to open a Mendix application. Everything works fine in Mendix <=7.1.0

However, when we open Mendix application in Mx7.3.0, there is error:

"Failed to open new online working copy e48axxxxc for project"

 

We already upgrade Mendix modelsdk -> 3.3.0 platformsdk-> 2.0.0

Do you know how to fix this issue?

 

Best regards,

 

DataBase replication module question

$
0
0

Hi guys ,

 

Im trying to get data from an external DB on a 2012 sql server environment

I know that this module only caters for ms 2005 and 2008

 

Is there any way i can manipulate the execute query to parse the schema and get my data into my app

 

this is query thats fails becasue it does not have the schema attached :

 

SELECT  [mainTable].[ReplyID] AS [ReplyID] ,  [mainTable].[EventID] AS [EventID] ,  [mainTable].[InsertDate] AS [InsertDate] ,  [mainTable].[ReceivedDateTime] AS [ReceivedDateTime] ,  [mainTable].[NumFrom] AS [NumFrom] ,  [mainTable].[UpdateDate] AS [UpdateDate] ,  [mainTable].[ReceivedData] AS [ReceivedData] ,  [mainTable].[SentCustomerID] AS [SentCustomerID] ,  [mainTable].[SentID] AS [SenAtID] ,  [mainTable].[SMSPortalUser] AS [SMSPortalUser]  FROM [SMSReply] AS [mainTable]

 

return invalid object SmsReply

 

The query should be like this

 

SELECT  [mainTable].[ReplyID] AS [ReplyID] ,  [mainTable].[EventID] AS [EventID] ,  [mainTable].[InsertDate] AS [InsertDate] ,  [mainTable].[ReceivedDateTime] AS [ReceivedDateTime] ,  [mainTable].[NumFrom] AS [NumFrom] ,  [mainTable].[UpdateDate] AS [UpdateDate] ,  [mainTable].[ReceivedData] AS [ReceivedData] ,  [mainTable].[SentCustomerID] AS [SentCustomerID] ,  [mainTable].[SentID] AS [SenAtID] ,  [mainTable].[SMSPortalUser] AS [SMSPortalUser]  FROM [api].[SMSReply] AS [mainTable]

 

note 'API' schema

 

Any ideas?

 

 

Unable to connect mssql through db replication

$
0
0

I am trying to connect mssql through db replication,but it is showing invalid port no,though i had given the correct port no

Shopping cart

$
0
0

Hi Mendix Users,

I recently started using Mendix and I'm working on a shopping cart for our ordersystem. My current shoppingcartpage uses the orderline database as its datasource.

My problem is that all existing orderlines are displayed in this page, but I only want to display the orderline of the current user. 

How can I solve this problem?

Viewing all 83469 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>