掲示板

Liferay Vaadin Portlet JSON Undefined Error in IE

9年前 に Richard Guerrini によって更新されました。

Liferay Vaadin Portlet JSON Undefined Error in IE

New Member 投稿: 19 参加年月日: 13/10/28 最新の投稿
Hello,

I have a Liferay Vaadin Portlet that is working with no issues (or errors) in both Firefox and Chrome. However,
when I use Internet Explorer (Version 11) I get the following error:


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Thu, 6 Nov 2014 17:29:44 UTC


Message: 'JSON' is undefined
Line: 147
Char: 8
Code: 0
URI: http://XXXXXXXXXXXXX/receipt-lookup-portlet/VAADIN/vaadinBootstrap.js


I know for a fact the Portlet was working in IE as well, but as some point (not sure when) it stopped working.
Any ideas?

Thanks!

<vaadin.version>7.3.4</vaadin.version>
<liferay.version>6.0.6</liferay.version>
9年前 に Richard Guerrini によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

New Member 投稿: 19 参加年月日: 13/10/28 最新の投稿
NOTE:

If start the Liferay server on my computer, the portlet displays in IE with no errors. If I deploy the portlet onto the other server, I get the JSON error, even
though I am using the exact same browser (different tabs).

Thanks!
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Looks like you're using the standalone vaadin model. Do you have multiple standalone Vaadin portlets?
9年前 に Richard Guerrini によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

New Member 投稿: 19 参加年月日: 13/10/28 最新の投稿
I am using the standalone version:

Groupd Id: com.vaadin
Artifact ID: maven-archetype-liferay-portlet
Version: 7.4.0.alpha7


So far this is the only Vaadin Portlet, but we intend on adding more.

Thanks!
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Eek! I'd avoid alpha versions if you can help it. Alpha usually means testing for servlets but broken for portlets ;-)
9年前 に Richard Guerrini によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

New Member 投稿: 19 参加年月日: 13/10/28 最新の投稿
I used other non-alpha versions and have the exact same behavior.

Could it be that there are jars on my system that are not present on the other server?
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
I don't think that should matter much...

I guess I'd suggest trying in a servlet first to see if this is just IE11 complaining (all of the Vaadin problems I've had were due to IE)...
9年前 に Richard Guerrini によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

New Member 投稿: 19 参加年月日: 13/10/28 最新の投稿
Keep in mind that it works perfectly well in IE when pulled up from my environment,
That's why I was leaning towards differences in jar files
9年前 に Richard Guerrini によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE (回答)

New Member 投稿: 19 参加年月日: 13/10/28 最新の投稿
Ended up adding the following in my Liferay theme (portal_normal.vm file) and the issue was resolved:

<meta http-equiv="X-UA-Compatible" content="IE=Edge">
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Glad it's working!

Did you have that in your local environment but not in the env you were deploying to? Just trying to understand where the line had to be added environment wise to get resolved.
9年前 に Richard Guerrini によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

New Member 投稿: 19 参加年月日: 13/10/28 最新の投稿
I added it to the env that I was deploying to , but not in my local. I'll have to do more research as to my it is working right now, and if there are any negative effects in the rest of the application.
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Liferay Vaadin Portlet JSON Undefined Error in IE

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Where you may have issues is in older versions of IE if you need to support them...