留言板
Liferay Vaadin Portlet JSON Undefined Error in IE
Richard Guerrini,修改在9 年前。
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:
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>
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>
Richard Guerrini,修改在9 年前。
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!
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!
David H Nebinger,修改在9 年前。
RE: Liferay Vaadin Portlet JSON Undefined Error in IE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Looks like you're using the standalone vaadin model. Do you have multiple standalone Vaadin portlets?
Richard Guerrini,修改在9 年前。
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!
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!
David H Nebinger,修改在9 年前。
RE: Liferay Vaadin Portlet JSON Undefined Error in IE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Eek! I'd avoid alpha versions if you can help it. Alpha usually means testing for servlets but broken for portlets ;-)
Richard Guerrini,修改在9 年前。
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?
Could it be that there are jars on my system that are not present on the other server?
David H Nebinger,修改在9 年前。
RE: Liferay Vaadin Portlet JSON Undefined Error in IE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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)...
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)...
Richard Guerrini,修改在9 年前。
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
That's why I was leaning towards differences in jar files
Richard Guerrini,修改在9 年前。
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">
David H Nebinger,修改在9 年前。
RE: Liferay Vaadin Portlet JSON Undefined Error in IE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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.
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.
Richard Guerrini,修改在9 年前。
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.
David H Nebinger,修改在9 年前。
RE: Liferay Vaadin Portlet JSON Undefined Error in IE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Where you may have issues is in older versions of IE if you need to support them...