Posts Tagged ‘error’
Momentary Video Capture Blinking *minor* Bug and D3D error
After the CS199 meeting, I managed to work on the JMF’s frame rate which resulted to better output. I tinkered a little bit on the Java3D util files on NyARToolkit because I’m trying to optimize its frame rate and how it projects “inside” the video captured. I unfortunately did not save a copy of my working file so when I got home, my program’s video capture kept blinking (much like double buffering or continuous refreshing). Since it kept getting the same blinking bug on Bootcamp, I restarted to MacOS and used VMWare. When I ran the code, JMF’s capture device did not start and the program ended with the following errors:
DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = Win32GraphicsDevice[screen=0] canvas = javax.media.j3d.Canvas3D[canvas0,0,0,640x480]
[Java3D]: Using D3DDEVTYPE_REF mode.
[Java3D] Warning : Fail to create hardware D3D Device, switch to use reference rasterizer. – D3DERR_DEVICELOST
There aren’t a lot of information about this error when I googled it. However, I managed to solve it when one reply to a thread suggested that upgrading my Video Card Drivers will make it work. Since I’m using VMWare, I can definitely omit the idea that the problem lies with the hardware drivers. So I reinstalled DirectX since this was where the original problem occurred. Then, it worked! Finally.
getAuthUrl Error
We’re getting an error refactoring the whole app so multiple users can log in and get tokens at the same time. Here’s an exerpt of the stack trace:
java.lang.NullPointerException at com.projectrix.oauth.model.impl.GoogleDocs.getAuthUrl(GoogleDocs.java:49) at com.projectrix.controller.OAuthController.authorize(OAuthController.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
And this is what line 77 of OAuthController.java looks like:
authUrl = provider.getAuthUrl();
The getAuthURL method is where oauthParameters (consumerKey, consumerSecret and scope) are set and the OAuthHmacSha1Signer, GoogleOAuthHelper and the oauth_callback are instantiated. This is also where oauthHelper, oauth_callback and oauthParameters are given values by calling in getUnauthorizedRequestToken for oauthHelper, by appending StringBuilder values for oauth_callback and by calling in setOAuthCallback for oauthParameters. The method returns an approvalPageUrl (authUrl) string which was acquired by oauthHelper.createUserAuthorizationUrl(oauthParameters). The tutorials are found here.
What do I do? Maybe we’re looking at the wrong place. *Investigating now* =)
366 lines of … errors!!
LOL!! C’mon!! That’s the longest error I ever had! When I copy-pasted it to OpenOffice, Times New Roman size 12, I end up with an 11-page document! Woaahhh!!

Wanted: More Help
With the help of Maam Ada, Guillard and Google Search, my partner and I came up with different solutions to solve our problem with AbsoluteLayout. After trying every solution that we come across the Internet, we are still having errors
We are now doing and redoing things in order to fix these.
org.netbeans.lib.awtextra.AbsoluteLayout does not exist
For unknown reasons when I run KineSpell (SunSpot Package), NetBeans cannot see the class Absolute Layout, while it can on other programs.
I think I just have to add the class path again..
Read the rest of this entry »