richfaces IE10 "Object doesn't support this property or method" - xhtml

I have this problem just with IE10 while using richfaces everything works fine but i have this exception:
SCRIPT438: Object doesn't support this property or method
framework.pack.js, line 2644 character 1
the line that causes the error is :
LOG.debug("Hidden JSF state fields: "+Q);
anyone knows why this exception occurs? and what can be the solution of it?

I know it's an old topic, but if it wasn't solved (which I doubt), maybe this helps (step 3 contains details about problem in this topic) - http://ruleoftech.com/2013/patching-richfaces-3-3-3-ajax-js-for-ie9
Quote from the above link:
You will also need to change or comment the next line in AJAX.js or JSFAJAX.js (richfaces-ui-3.3.3.Final\framework\impl\src\main\javascript\ajaxjsf)
Replace (line 2119 in AJAX.js, line 1044 in JFSAJAX.js)
LOG.debug("Hidden JSF state fields: "+idsSpan);
to
LOG.debug("Hidden JSF state fields: ");//+idsSpan);
Otherwise you get the following error in IE9:
SCRIPT438: Object doesn't support this property or method
For this line 2648 in framework pack:
LOG.debug("Hidden JSF state fields: "+Q);

Related

Adding custom control to a Nette Form

I am attempting to add a custom control to a nette form, using the example given in the official documentation here.
I am having problems. First off I though I would try to use the example as a starting point. Unfortunately it doesn't work. when using the code provided I get
Notice: Uninitialized string offset: 0 in Composer\vendor\nette\utils\src\Utils\Html.php on line 494
Warning: Illegal offset type in Composer\vendor\nette\utils\src\Utils\Html.php on line 392
and only the label actually renders. Have I missed something obvious here or does the example just not work?

HtmlUnit Doesn't Recognize Valid CSS

So, I just started using HtmlUnit (literally just now), and I've already run into an error. I have some simple code:
fun getPage() { val page: Page = WebClient().getPage("http://htmlunit.sourceforge.net") }
However, it throws an extremely long error:
WARNING: CSS error: 'http://htmlunit.sourceforge.net/css/apache-maven-fluido-1.5.min.css' [9:90176] Error in declaration. '*' is not allowed as first char of a property.
Jan 24, 2018 4:14:58 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error
WARNING: CSS error: 'http://htmlunit.sourceforge.net/css/apache-maven-fluido-1.5.min.css' [9:91151] Error in declaration. '*' is not allowed as first char of a property.
Jan 24, 2018 4:14:59 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'text/javascript'.
Jan 24, 2018 4:15:00 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
//continues the above sequence a lot, and then ends with:
SEVERE: runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: :x).] sourceName=[http://htmlunit.sourceforge.net/js/apache-maven-fluido-1.5.min.js] line=[25] lineSource=[null] lineOffset=[0]
I looked at the link provided by the error, and it seems to contain a lot of asterisks inside of their CSS. 194, to be exact (including asterisks used in the commented area). I also experimented with loading other web pages, and it appears to be that it has issues understanding that the CSS of web-pages is valid.
Am I doing something wrong, or should I just tell it to ignore CSS? (I'm not sure if that's possible, but I would prefer it.)
At first regarding the css warning
it is a warning
see star hack for more info about this
if you still think this is valid css please open an CSSParser issue and i will have a look
Second: An invalid or illegal selector was specified....
This is really common if you are testing pages with HtmlUnit. The background is that many javascript libs (like sizzle used by jQuery) doing some checks to figure out what features are supported by your browser. And the output you see is the result of one of this checks. This one tries to figure out, if the javascript select method is able to work with a special kind of css-selectors. There is a try-catch around this selector usage in the javascript code and if the selector fails (in fact this happens in many browsers) the features is not available and the lib falls back to some other way to do the selection. The reason for seeing this in the error log is part of HtmlUnit history. This lib was initially designed for web testing and based on this the lib logs every javascript exception at the moment the exception is thrown (even if the exception is catched/handled later on). So you can more or less ignore this; the HtmlUnit does not stop working because of this.

How to remove the 'WARNING: CSS Error parsing':

There is a warning everytime I run the program, I don't know where the problem is because at [1, 19] of all of my css files I have a comment. I tried to fix this by removing the comment and it made no difference. Please help.
WARNING: CSS Error parsing '*{-fx-font-family: ;}: Unexpected token ';' at [1,19]
[]1
In javaFx you can use CSS with two ways : you can customise your fxml file by using scene builder or by according a css file.I had the same problem ,when the JavaFX CSS parser encounters a syntax error, a warning message is emitted which conveys as much information as is available to help resolve the error. For example
WARNING: com.sun.javafx.css.parser.CSSParser declaration Expected
'' while parsing '-fx-background-color' at ?[1,49]
The cryptic '?[1,49]' pertains to the location of the error. The
format of the location string is
[line, position]
If the error is found while parsing a file, the file URL will be given. If the error is from an inline style (as in the example above), the URL is given as a question mark. The line and position give an offset into the file or string where the token begins. Please note that the line and position may not be accurate in releases prior to JavaFX 2.2.
Applications needing to detect errors from the parser can add a listener to the errors property of com.sun.javafx.css.StyleManager. This is not public API and is subject to change.
I think you add a value by using scene builder and you are adding ; to your value and this is not acceptable in scene builder you need to remove ;.
To resolve your problem ,go to your fxml file in your IDE ,i think you are using Netbeans and click right button of mouse --> edit , you can find your warning.

Unable to get rendered content error in SDL Tridion

I would like to know the scenarios in which "Unable to get rendered content" error might occur in SDL Tridion. We use VBScript for templating and I get a few scenarios as listed below in my event logs. But I am not able to make head or tail of it.
Scenario 1:
Unable to get rendered content of Page (tcm:48-215280-64).
Error 5 occurred while rendering the Component Presentation (SMS gruppe:Artikkel):
Invalid procedure call or argument: 'RemoveChild' (source:
.RemoveChild .selectSingleNode("tcm).
Scenario 2:
Unable to get rendered content of Component (tcm:57-215271).
No data found. [ETA_ITEMS, U]
Cannot insert the value NULL into column 'ITEM_ID', table 'Tridion_cm_2011.dbo.ITEM_ASSOCIATIONS'; column does not allow nulls. INSERT fails.
The statement has been terminated.
Scenario 3:
Unable to get rendered content of Page (tcm:52-213774-64).
Error 1017 occurred while rendering the Page: Expected 'Then' (source:
If Rendermode() != "PreviewDynamic" Then).
Scenario 4:
Unable to retrieve rendered data from Component Presentation.
Error 3004 occurred while rendering the Component Presentation (Nytt dagstilbud iPhone 4S:Artikkel):
Write to file failed. (source:
.SaveToFile strTempFile, conSaveCreateOverWrite).
Scenario 5:
Unable to get rendered content of Page (tcm:48-215164-64).
Error 3004 occurred while rendering the Component Presentation (Ring inn julen med Comoyo:Artikkel):
Write to file failed. (source:
.SaveToFile strTempFile, conSaveCreateOverWrite).
Scenario 6:
Unable to get rendered content of Page (tcm:48-215164-64).
Invalid value for property 'BinaryContent'. Unable to open uploaded file: C:\Windows\TEMP\tcm-48-215158square940.jpg.
It would be helpful if any of you could give me any clue as of where the problem might possibly be so that I could have a lead. Thanks a lot in advance!
Scenario 1 looks like a VBScript syntax error, so most likely a typo in your template code. Scenario 2 looks a bit more problematic, because its a database error. Scenario 3, 4, 5 and 6 all look like standard VBScript syntax errors again.
Some examples, Scenario 3:
If Rendermode() != "PreviewDynamic" Then
Has a syntax error and it mentions Expected 'Then' so we know the error is somewhere before the Then statement. Taking a closer look, you have parentesis behind the variable RenderMode, which is incorrect, it should be:
If RenderMode != "PreviewDynamic" Then

Flex: errors in generated *WatcherSetupUtil?

If the planets are not correctly aligned when I run a Flex 3.5 build, the .swf produced immidiatly throws a null-object error from the _MyAppWatercherSetupUtil:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at _MyAppWatcherSetupUtil/setup()
at MyApp/initialize()[/Users/wolever/my_app/MyApp.mxml:0]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2131]
at mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3400]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3223]
at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3069]
Is there anything I can do about this?
I've tried debugging it, but it seems like the Flex framework goes out of its way to make sure it's impossible to debug into the generated codeā€¦
I just upgraded an old Flex 3 app to Flex 4.6 and had the same problem. What worked for me was a project clean. So far so good.
--Keith
I was struggeling today with a WatcherSetupUil/setup() TypeError: Error #1009: Cannot access a property or method of a null object reference.
For me it looks there is a strong connection to databinding. For me it looks this happens if you do not take care of the rules that Flex asks for. I found a resource online I upload here: "Flex data binding pitfalls: 10 common misuses and mistakes." After changing - in my case especially error 6 - Using the wrong bindable event name - took the WatcherSetupUtil away.
Perhaps this is helpful for you too :-).
http://www.adobe.com/devnet/flex/articles/databinding_pitfalls.html
It would be interesting to have a glimpse at generated code for "setup" method for your MyAppWatcherSetupUtil class
Just an idea - did you try to set the compiler flag -keep? Like this you may have a look how your class looks like.

Resources