Unexpected Error On Export to HTML

jhantak shared this problem 7 years ago
Solved

I am trying out Justinmind (Version 4.4.1) for my company as a possible tool for creating visuals. I created a project, imported a template, created a page from that templat,e and added a few buttons. When I export the HTML, I'm prompted with an error message "An unexpected error has occured.". No other details are provided. I do not see any log files to check for more details. Has anyone else encountered this problem? If so, what was the root cause/resolution?

Comments (6)

photo
1

Could you post the content of the file logs.log that is in [Documents and settings][your user name]Justinmind4.4.1 folder please?

photo
1

Looks like I cannot attach log files, so I'm pasting the contents of the log file here (I renamed the old log and recreated the problem so the log file only contains the details of the error):


INFO[2011-12-14 07:33:52,022]- START Justinmind Prototyper


INFO[2011-12-14 07:34:02,694]- Open default project


INFO[2011-12-14 07:34:15,366]- Activate Tab: USER_INTERFACE


INFO[2011-12-14 07:34:15,397]- Activate Tab: USER_INTERFACE


INFO[2011-12-14 07:34:25,632]- Open: C:Documents and Settingsj2hantakDesktopJUSTIN-Gateway - Billing Info Portlet.vp


INFO[2011-12-14 07:34:32,101]- Activate Tab: USER_INTERFACE


INFO[2011-12-14 07:34:32,132]- Activate Tab: USER_INTERFACE


INFO[2011-12-14 07:34:38,960]- C:Documents and Settingsj2hantakJustinmind4.4.1


INFO[2011-12-14 07:34:50,476]- =========================================


INFO[2011-12-14 07:34:50,476]- creating generator took 46 ms


INFO[2011-12-14 07:34:50,492]- generating prototype: JUSTIN-Gateway - Billing Info Portlet


INFO[2011-12-14 07:34:50,492]- preprocess prototype


INFO[2011-12-14 07:34:50,508]- processing BrowserItem


INFO[2011-12-14 07:34:50,508]- processing ViewAnnotated


INFO[2011-12-14 07:34:50,508]- processing Data


INFO[2011-12-14 07:34:50,508]- processing Css


INFO[2011-12-14 07:34:50,508]- processing CssIE


INFO[2011-12-14 07:34:50,508]- processing Event


INFO[2011-12-14 07:34:50,570]- context creation took 78


INFO[2011-12-14 07:34:50,570]- starting jetty server


INFO[2011-12-14 07:34:50,570]- working directory: C:Program FilesJustinmindJustinmind Prototyper 4.4.1


INFO[2011-12-14 07:34:50,570]- temp directory: C:/Documents and Settings/j2hantak/Justinmind/4.4.1/temp/


INFO[2011-12-14 07:34:50,570]- template directory: C:/Program Files/Justinmind/Justinmind Prototyper 4.4.1/templates/


INFO[2011-12-14 07:34:50,601]- using port: 20000


INFO[2011-12-14 07:34:50,836]- stopping jetty server


ERROR[2011-12-14 07:34:50,836]- generation failed:


com.justinmind.generator.engine.GenerationException: java.net.SocketException: Unrecognized Windows Sockets error: 10107: connect


at com.justinmind.generator.engine.CodeGenerator.readOutput(CodeGenerator.java:153)


at com.justinmind.generator.engine.CodeGenerator.generate(CodeGenerator.java:118)


at com.justinmind.generator.engine.AbstractGenerator.createOutput(AbstractGenerator.java:153)


at com.justinmind.generator.engine.AbstractGenerator.generate(AbstractGenerator.java:99)


at com.justinmind.generator.engine.AbstractGenerator.startGeneration(AbstractGenerator.java:74)


at com.justinmind.evc.igu.actions.w.run(w.java)


at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 10107: connect


at java.net.PlainSocketImpl.socketConnect(Native Method)


at java.net.PlainSocketImpl.doConnect(Unknown Source)


at java.net.PlainSocketImpl.connectToAddress(Unknown Source)


at java.net.PlainSocketImpl.connect(Unknown Source)


at java.net.SocksSocketImpl.connect(Unknown Source)


at java.net.Socket.connect(Unknown Source)


at java.net.Socket.connect(Unknown Source)


at sun.net.NetworkClient.doConnect(Unknown Source)


at sun.net.www.http.HttpClient.openServer(Unknown Source)


at sun.net.www.http.HttpClient.openServer(Unknown Source)


at sun.net.www.http.HttpClient.(Unknown Source)


at sun.net.www.http.HttpClient.New(Unknown Source)


at sun.net.www.http.HttpClient.New(Unknown Source)


at sun.net.www.protocol.http.HttpURLConnection.g... Source)


at sun.net.www.protocol.http.HttpURLConnection.p... Source)


at sun.net.www.protocol.http.HttpURLConnection.c... Source)


at com.justinmind.generator.engine.CodeGenerator.readOutput(CodeGenerator.java:138)


... 6 more


ERROR[2011-12-14 07:34:50,867]-


com.justinmind.generator.engine.GenerationException: java.net.SocketException: Unrecognized Windows Sockets error: 10107: connect


at com.justinmind.generator.engine.CodeGenerator.readOutput(CodeGenerator.java:153)


at com.justinmind.generator.engine.CodeGenerator.generate(CodeGenerator.java:118)


at com.justinmind.generator.engine.AbstractGenerator.createOutput(AbstractGenerator.java:153)


at com.justinmind.generator.engine.AbstractGenerator.generate(AbstractGenerator.java:99)


at com.justinmind.generator.engine.AbstractGenerator.startGeneration(AbstractGenerator.java:74)


at com.justinmind.evc.igu.actions.w.run(w.java)


at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 10107: connect


at java.net.PlainSocketImpl.socketConnect(Native Method)


at java.net.PlainSocketImpl.doConnect(Unknown Source)


at java.net.PlainSocketImpl.connectToAddress(Unknown Source)


at java.net.PlainSocketImpl.connect(Unknown Source)


at java.net.SocksSocketImpl.connect(Unknown Source)


at java.net.Socket.connect(Unknown Source)


at java.net.Socket.connect(Unknown Source)


at sun.net.NetworkClient.doConnect(Unknown Source)


at sun.net.www.http.HttpClient.openServer(Unknown Source)


at sun.net.www.http.HttpClient.openServer(Unknown Source)


at sun.net.www.http.HttpClient.(Unknown Source)


at sun.net.www.http.HttpClient.New(Unknown Source)


at sun.net.www.http.HttpClient.New(Unknown Source)


at sun.net.www.protocol.http.HttpURLConnection.g... Source)


at sun.net.www.protocol.http.HttpURLConnection.p... Source)


at sun.net.www.protocol.http.HttpURLConnection.c... Source)


at com.justinmind.generator.engine.CodeGenerator.readOutput(CodeGenerator.java:138)


... 6 more

photo
1

Something is blocking the HTML generation, maybe an antivirus. The best workaround is to publish your prototype online in usernote and, once published, select 'actions > download HTML'

photo
1

Victor:


Thank you for the quick response. I set up a UserNote account. While attempting to publish via the JustinMind prototyper tool, I was prompted with a connection issue (Please refer to the stack trace below). My guess is it's something on my company's side which is causing this issue as well. However, I am able to log in to Usernote itself, upload the project, and download the visuals as an HTML file. I will discuss with my project's leadership how to handle the cause of the initial problem.


ERROR[2011-12-14 09:45:23,703]- Error connecting to Usernote.


org.apache.http.conn.ConnectTimeoutException: Connect to www.justinmind.com/www.justinmind.com" rel="nofollow" target="_blank">http://www.justinmind.com/75.101.143.150">www.justinmind.com/www.justinmind.com... timed out


at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:125)


at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)


at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)


at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)


at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)


at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)


at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)


at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)


at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)


at com.justinmind.usernoteclient.UsernoteClient.doForceSignIn(UsernoteClient.java:211)


at com.justinmind.usernoteclient.UsernoteClient.doForceSignIn(UsernoteClient.java:194)


at com.justinmind.usernoteclient.UsernoteClient.doSignIn(UsernoteClient.java:190)


at com.justinmind.evc.operations.actions.UsernoteSignInOperation.doOperation(UsernoteSignInOperation.java)


at com.justinmind.evc.operations.b.run(b.java)


at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

photo
1

I think the problem could be either a proxy server or some firewall/antivirus that is blocking the HTML export

photo
1

Thank you for the additional information. I shall pass this detail along to my colleagues who have been asked to look into this matter.