cfvideoplayer javascript error in IE 7 & 8 - coldfusion

I am using Railo CFVideoPlayer tag with colorbox effect in my project. It is working fine in all browsers except IE (Version 7 & 8).IE 9 is fine. I am getting below JS error line# 11 in /railo-context/swfobject.js.cfm & I am getting only loading symbol.
Message: 'null' is null or not an object
Line: 11
Char: 3894
Code: 0
URI: http://Mysite/railo-context/swfobject.js.cfm

Whats the version you using? Upgrade it to the latest and give it a try again!
Not to forget.. First Uninstall your Flash and then do a re-install.
For more on this topic read this lengthy comments driven page here

Related

Why cant I use a Character length more than 65535 RPGIV

I red the following article and it seems like I should be able to define a variable of type varying that's size limit will be 16mb instead of 65535 characters.
http://www.mcpressonline.com/programming/rpg/v6r1-rpg-enhancements.html
This forum post suggests that it is posible to do this in V6.1.
http://www.code400.com/forum/forum/iseries-programming-languages/rpg-rpgle/11426-character-string-max-length
D BigVarying S a Len(25000000) Varying(4)
When I try to implement this I get the following errors and it seems like I cannot use Len(25000000) Varying(4)
Maybe I don't understand what exactly is meant by V6.1 but I checked on the Green screen using the command DSPSFWRSC and get the following Release V6R1..
I also checked by using I systems navigator and I checked the servers properties and it is : i5/OS version Version 6 Release 1 Modification 0.
The IDE I use to compile is IBM Websphere development studio
Version: 7.0.0
Build id: 20070202_0030
Trying to compile a RPGLE function.
Am I checking the correct version or is there a RPG version and how do you check it.
can you please help me out of my confusion.
V6.1 is your operating system version and you can refer to the V6.1 ILE RPG Language Reference here to see if it's possible. I think what you're looking for is on page 185.
I've just tested this in 7.2 and I am not getting the same errors.
D BigVarying S a Len(25000000) Varying(4)
RNF0501E Length of character item exceeds 16773104; length defaults to 16773104.
RNF0231E Length of varying length character item exceeds 16773100; length defaults to 16773100.
//Dcl-S BigVarying Varchar(25000000);
BigVarying = 'Hello world';
Return;
So, as the (duplicate) error mentions
Length of character item exceeds 16773104; length defaults to 16773104.
If you'd like a bigger length you'll need to update to a newer version of IBM i - but the max length is also 16773104, meaning 25000000 is invalid.
While RPGLE supports 16MB variables from 6.1 forward and you are on 6.1..
You have two problems:
25000000 (23.8MB) is bigger than 16773104 (~16MB)
Websphere Development Studio v7 (WDSc) is older than IBM i 6.1 (your build date is 2007, the article you're referencing came out in 2008). So your IDE doesn't recognize the new keywords and new max size.
Problem #2 isn't a deal breaker, you can simply ignore the errors in the IDE and compile on ther server successfully. If you were using the green screen editor SEU, you'd have to do the same as IBM stopped enhancing SEU at 6.1.

FFmpeg: Failed to create drawbox filter with max thickness

I've switched from FFmpeg version 1.2. to the last 2.5 release. After changing all deprecated methods I ran into a problem with a drawbox filter. In version 1.2 I could define a filled box with the following settings (see FFmpeg Filter Documentation):
strFilterDesc += "drawbox=x=0:y="+height+":w="+width+":h=50:color=0xeeeeee#0.4:t=max,
When I start the application, I receive the following errors:
[Parsed_drawbox_2 # 0x79e9a0] [Eval # 0x7fffb57f8e70] Undefined constant or missing '(' in 'max'
[Parsed_drawbox_2 # 0x75f0a0] Error when evaluating the expression 'max'.
[Parsed_drawtext_1 # 0x759be0] Failed to configure input pad on Parsed_drawbox_2
Can someone give me a hint what I'm doing wrong here? Even with the example of the documentation the same error occurs. Is there an other way to create a filled box?
Edit:
Here's the content of stfFilterDesc:
drawtext=fontfile=./fonts/truetype/freefont/HelveticaNeue.ttf: text='foo': x=5: y=5: shadowx=0: shadowy=0: fontsize=12: fontcolor=0xeeeeee#1.0: box=0: boxcolor=0xeeeeee#0.5, drawbox=x=0:y=490:w=960:h=50:color=0xeeeeee#0.4:t=max, drawtext=fontfile=./fonts/truetype/freefont/HelveticaNeue.ttf: text='foo': x=32:y=(h-text_h-25): fontsize=16: fontcolor=0x333333#1.0: box=0: boxcolor=0xeeeeee#0.4, drawtext=fontfile=./fonts/truetype/freefont/HelveticaNeue.ttf: text='foo': x=32:y=(h-text_h-10): fontsize=14: fontcolor=0x333333#1.0: box=0: boxcolor=0xeeeeee#0.4
You encountered a bug: #4332 – Expression 'max' no longer works with t option in drawbox.
This was fixed today (2015 March 2) with commit 047fd98:
commit 047fd986bf3641ad3dc137746097271c339ee5f0
Author: Michael Niedermayer
Date: Mon Mar 2 02:32:55 2015 +0100
avfilter/vf_drawbox: Fix handling of max values
Fixes Ticket4332
Signed-off-by: Michael Niedermayer
So you will need to compile or get a recent build to take advantage of this bug fix. The various static builds available via the FFmpeg download page are updated regularly.

getRealPath(“/”)- How does the result of this method differ in Tomcat 7 and Tomcat 8

Using this method
getServletContext().getRealPath("/")
returns '\' at the end when i run my project in Tomcat 7 whereas it is not working as such in Tomcat 8.
For example,
In Tomcat 7 it returns as "D:\Tomcat\webapps\project\"
In Tomcat 8 it returns as "D:\Tomcat\webapps\project"
At present the project is in production so, I am unable to change the code in every part(where i use getRealPath("/")). Is there a way/setting in tomcat level to make it resolved.
This issue has been Fixed in trunk for 9.0.x and in 8.0.x for 8.0.19 onwards.
For your reference,
https://bz.apache.org/bugzilla/show_bug.cgi?id=57556

Java 7: Cannot cast from Object to int etc

I'm having a problem running someones code in Eclipse 3.6 (Helios). The code is written with OpenJDK 7. I'm running Windows 7 and I had to install Java 7 for it. I was using Java 6 before. I get 2 kinds of errors running the code:
"Cannot cast from Object to int" (also: double, long, boolean)
"Cannot instantiate the type HashSet<?>"
I read casts like "(int) obj" are only possible in Java 7. In Java 6 it has to be "(Integer) obj" instead. But I set the "JRE System Library" to JRE7 and I still get that error. Is it still somehow using JRE6?
The second problem is caused by "Set set; set = new HashSet<>()". The problem is gone if you replace HashSet<>() with HashSet<String>(). Is this another Java 7 change? And why is it not working with my JRE7? Is my Eclipse too old and only able to run JRE6?
Thanks in advance,
Torben
You're describing new features in the Java 7 compiler.
You need to use the Java 7 compiler, with any version of the JRE.

QTMovie initWithMovie:timeRange:error: fails under 10.7 but not 10.6

I have a QTMovie object created from a file. I check that it's a valid movie with which can be played or written to file nicely.
Then this line fails with error:
Error code: -50 domain: NSOSStatusErrorDomain description: The operation couldn’t be completed. (OSStatus error -50.)
(Read permission?)
It happens when the movie is longer than ~15 seconds (this varies). The timerange is verified to be correct and should not result in this error anyway.
[[QTMovie alloc] initWithMovie:movie timeRange:range error:&error];
The line spawns the 32bit process QTKitServer for a couple of seconds, until it fails.
The error only occurs in Lion but not Snow Leopard.
Any ideas?
Solved it, I used the editing functions of QTMovie, either use deleteSegment: of the old movie or create a new movie and use insertSegmentOfMovie:movie to insert the segment from the old to the new movie. Remember to set the editable attribute to yes :)
[movie setAttribute:[NSNumber numberWithBool:YES]
forKey:QTMovieEditableAttribute];