TextureLoader: Error loading image file
Hello,
I am trying to load a .gif file to texture map a plane. Well I keep running into a problem loading the .gif file. It just does not load. I get a NullPointerException at the TextureLoader theLoader = new TextureLoader(fileName, observer); I have the .gif file in a folder named TextureImages which is in the same directory as the class that tries to load the file. I have loaded the same .gif file in a different simple test program. But in this program I am having no luck. If anyone has the answer. Please Help.
Here is the class that tries to load the .gif file
package roomPackages.shapes;
//----Import statements
import javax.media.j3d.Texture2D;
import java.awt.Component;
import javax.media.j3d.*;
import javax.vecmath.*;
import com.sun.j3d.utils.image.TextureLoader;
public class CabnetFloorKSD extends Shape3D
//----Member objects and varibles
private double WIDTH; //Cabnet width scaled down by 12
private Appearance theAppearance; //The cabnet appearance
private PolygonAttributes poly_attributes; //Polygon attributes "normal vectors"
private static Component observer;
//----Constructor
// ---------------------------------------------------------- CabnetFloorKSD
// This constructor function builds the Shape3D by using the addGeometry
// function to "glue" together all the QuadArrays. Which represent a
// specfic face of the kitchen floor single door cabnet.
public CabnetFloorKSD(double width, Canvas3D theCanvas)
//----Varibles and objects
this.WIDTH = width; //Getting the width value
theAppearance = new Appearance(); //Cabnet appearance
observer = theCanvas;
loadTextureImage();
//----Building the cabnet functions are here
//----Setting the shapes appearance here
}//end CabnetFloorKSD(double width)
// --------------------------------------------------------- loadTexureImage
// This is where the problem is
public void loadTextureImage()
//----Local varibles and objects
String fileName = "TextureImages/OAK.GIF";
//---- This line is where the NullPointerException happens
TextureLoader theLoader = new TextureLoader(fileName, observer);
/*ImageComponent2D theImage = theLoader.getImage();
Texture2D theTexture = new Texture2D(Texture.BASE_LEVEL, Texture.RGB, 128, 128 );
theTexture.setImage(0, theImage);
theAppearance.setTexture(theTexture);
}//end loadTextureImage()
Hi,
Instead of passing string argument to ImageLoader pass (URL,observer)
ImageLoader(new URL("file:./img.gif",observer);
Regards,
shi
Similar Messages
-
Error -11003:Menu-Fail loading Image file
HI:
addMenus XML File:
<Application>
<Menus>
<action type="add">
<Menu Checked="0" Enabled="1" FatherUID="43520" Image="title.bmp" Position="14" String="Menus" Type="2" UniqueID="Menus">
<Menus>
<action type="add">
<Menu Checked="0" Enabled="1" FatherUID="Menus" Image="" Position="0" String="Menu_1" Type="1" UniqueID="Menu_1" />
</action>
</Menus>
</Menu>
</action>
</Menus>
</Application>
when add the Image property , but continue error Error -11003:Menu-Fail loading Image file.
<h2>How to add images by using XML inside a B1DE project ? </h2>
Hope it helps
Jimmy.lHi
在你的xml文件中,image 属性设置错误,应该填写你所加的image的绝对路径
比如:
<Application>
<Menus>
<action type="add">
<Menu Checked="0" Enabled="0" FatherUID="43520" String="MyMenu1" Type="2" UniqueID="MyMenu1" Image="C:/MyPic.bmp">
<Menus>
<action type="add">
<Menu Checked="1" Enabled="0" FatherUID="MyMenu1" String="MySub1" Type="1" UniqueID="MySub1" />
</action>
</Menus>
</Menu>
<Menu Checked="0" Enabled="1" FatherUID="43520" String="MyMenu2" Type="2" UniqueID="MyMenu2" >
<Menus>
<action type="add">
<Menu Checked="0" Enabled="0" Position="0" FatherUID="MyMenu2" String="MySub21" Type="1" UniqueID="MySub21" />
</action>
</Menus>
</Menu>
</action>
</Menus>
</Application> -
I get the message 'Error Loading Image'. No explanation, it is just a jpg photo
Hi, David-
Did you see the error message in Edge Animate or on the webpage when you tried to preview? I would like to point out that a 7MB file for most people on the web would be interminable, and certainly files that large are not supported on tablet devices like the iPad for other publishing needs. I'd wonder what use case most people would have in animating a file that large, as all of the designers we've talked to always work on download optimization for various devices.
That being said, I can look into it.
Thanks,
-Elaine -
Failed to load image file-manager
Hello everybody,
I've recently install ArchLinux (0.6) on my machine. Then do a pacman -Sy and pacman -Su and fresh install xfree86, gnome and gnome-extra but when I run into gnome a window error appears:
error
Failed to load image file-manager
Details: file not found
I can't see mostly of the icons, like the foot of gnome in applications, the icon of file browser, the show desktop ..
what can it be?
well, thanks in advance.
Ps: xscreensaver should be added as a dependency when pacman -S gnome
Ps2: sorry my poor englishBlaasvis wrote:i am aware, this was caused by the gtk2 update
Yes, you're right.
To solve (until a next release) I done:
pacman -Rcd gtk2
pacman -A /var/cache/pacman/pkg/gtk2-2.4.0-1.pkg.tar.gz
And avoid to do pacman -Su ...
Thanks and bye. -
Cfreport & "Error loading image data"
i'm using cf report builder.
I insert in report an image linked to a url
If i execute the report i receive this error
Report data binding error Error loading image data :
http://DOMAIN/PATH/0701.jpg.
the image exists: if i copy the url to my browser, it appears
If i replace link with filesystem path, i receive the same
error
this is the error exception
"Error","jrpp-7","01/29/07","21:13:20","marcappelli_frontend","Report
data binding error Error loading image data :
http://venusia/lavoro/marsportcappelli_it/html/catalogo/2007/0701.jpg.Error
loading byte data :
http://venusia/lavoro/marsportcappelli_it/html/catalogo/2007/0701.jpg
The specific sequence of files included or processed is:
/home/htdocs/clienti/marsportcappelli_it/html/_script/catalogo2007.cfm
coldfusion.runtime.report.Report$ReportDataBindingException:
Report data binding error Error loading image data :
http://venusia/lavoro/marsportcappelli_it/html/catalogo/2007/0701.jpg.
at
coldfusion.runtime.report.Report.runReport(Report.java:303)
at
coldfusion.tagext.lang.ReportTag.doEndTag(ReportTag.java:467)
at
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1909)
at
cfcatalogo20072ecfm389367973.runPage(/home/htdocs/clienti/marsportcappelli_it/html/_scrip t/catalogo2007.cfm:13)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
any ideas?
any help is very appreciates!
thanks
RobI think the new error you saw was due to the cross-schema issue on 10.1.0.2/10.1.0.3 (as described in another thread on creating pyramids).
You should connect as system to grant the permissions. With 10.1.0.2/10.1.0.3, importFrom should be called from the same schema where the GeoRaster tables are defined. (Upgrading to 10.1.0.4 or higher if you want to perform cross-schema operations.)
Other than the connection part, your scripts looked OK. Please make sure that the file with the specified file name does exist and is on the same machine where the database is running. Note that even if the grant_permission call is executed successfully, it does not necessarily mean the following file operations will always succeed. For example, grant_permission can be called successfully on a file that does not even exist. If a file with the specific name is later created, no permissions are granted on the new file. The case with the schema 'GIS' is similar. You need to make sure that the schema 'GIS' and the file do exist before the grant_permission call; and grant_permission can be called repeatedly, if necessary.
Hope this helps. -
"error loading media-file could not be played"-when viewing webcams
When trying to load a webcam, picture loads but will not stream.
The following error message appears "error loading media-file could not be played"
Everything functions when using Google Chrome.
Any help would be much appreciated. The operating system is Vista.Thank you for you reply - much appreciated.
I am a bit confused - if I do not have a player installed, how come that everything is OK when I use Google Chrome as a browser?
Many thanks,
Jimmy -
Error loading *.bin file
i have a certain requirement like if plugin1 is down plugin2 has to be called,
both plugin1 and plugin2 uses same 3rd party api for plugin implementation.But when my plugin1 is down i am getting error with plugin2 like
"Error loading resource file: challenge.bin"
This challenge.bin is in 3rd party api used for plugin1 and plugin2 implementation.
Error loading resource file: challenge.bin
java.lang.NullPointerException
at java.io.FilterInputStream.available(Unknown Source)
at ymsg.network.ChallengeResponseV10.<clinit>(ChallengeResponseV10.java:71)
at ymsg.network.Session.receiveAuth(Session.java:1331)
at ymsg.network.Session$InputThread.process(Session.java:2839)
at ymsg.network.Session$InputThread.run(Session.java:2797)
Did anybody had such problem earlier loding *.bin files earlier.Hussein,
Thanks for your reply.
I already checked these 2 docs from oracle support and verified the compat-db rpm version.My current version of the rpm is higher than the document mentioned version.
FYR,
[root@apps ~]# rpm -qa compat*
compat-db-4.2.52-5.1
compat-readline43-4.3-3
compat-gcc-32-c++-3.2.3-47.3
compat-gcc-34-3.4.6-4
compat-dapl-utils-2.0.25-2.el5
compat-libcom_err-1.0-7
compat-dapl-devel-2.0.25-2.el5
compat-dapl-static-2.0.25-2.el5
compat-glibc-headers-2.3.4-2.26
compat-libstdc++-33-3.2.3-61
compat-gcc-34-g77-3.4.6-4
compat-libstdc++-296-2.96-138
compat-glibc-2.3.4-2.26
compat-dapl-2.0.25-2.el5
compat-gcc-32-3.2.3-47.3
compat-libgcc-296-2.96-138
compat-openldap-2.3.43_2.2.29-12.el5
compat-libf2c-34-3.4.6-4
compat-slang-1.4.9-27.2.2
compat-gcc-34-c++-3.4.6-4
compat-oracle-rhel4-1.0-5
[root@apps ~]#
Please check and suggest me to preceed further.
Vijay. -
I am trying to load a XMLA provider WSDL in creating Adaptive Web Service Model
but I get error loading the file. Where on earth is this log file that is referred to?Hi,
You can check the error by using ErrorLob view
Goto Window->Show view->Other->PDE Runtim->Error Log
Regards,Anilkumar -
I just recently purchased a Tecra M7, but the system does not come with recovery media, just a Recovery partition and a Recovery Disk creator.
However, when I try to run the Recovery Disc Creator, it replies with "Error loading INI file: C:\Program Files\Sonic\RecordNow!\RDC_info.ini".
I opened this file to try to determine the error, but the contents simply refer to a file named CDDVD.ini. I have looked all over the Hard Drive, even mounted the Recovery Partition, but could not find this file.
Searching on Google, I found that this file regularly goes missing, and that without it, the recovery media cannot be created. One person reported Tech Support emailing him the file, another was emailed by another user.
In both cases, the user was immediately able to make the disks. In any case, it seems to be a standard file, referring to "Add_info.ini" (Application and Drivers Disks) and "Rec_info.ini" (OS Recovery Disk), fairly consistent and unchanging through all systems that use this method to build disks.
Please, could someone email me theirs or post it here so we can all see?
If/when I receive this file, once I determine it works I will post it here.
DanielI have talked to Tech Support, and the Tecra M7 w/ XP Tablet Edition does not have Recovery Disks available yet. I was told to check back in a couple of weeks.
-
I am using the sample player in Adobe Access 4_0 SDK to play the encrypted video on FMS 5.0.
1) When trying to play the " http://.../vod/WorldCup.mp4" file and get the error "DRM Error: 3305[ServerConnectionFailed] Load http://.../vod/WorldCup.mp4 "
2) switch TVP mode. try to "Load DRM Metadata" and get the log " Error loading metadata file: Get URL:http://.../vod/WorldCup.mp4.metadata:Error #2048"I am using the sample player in Adobe Access 4_0 SDK to play the encrypted video on FMS 5.0.
1) When trying to play the " http://.../vod/WorldCup.mp4" file and get the error "DRM Error: 3305[ServerConnectionFailed] Load http://.../vod/WorldCup.mp4 "
2) switch TVP mode. try to "Load DRM Metadata" and get the log " Error loading metadata file: Get URL:http://.../vod/WorldCup.mp4.metadata:Error #2048" -
We use mp4 / mv4 type videos. These videos are viewed through a JWPlayer playlist. They work fine using Firefox browser on a MAC, however on MS Windows 7, I get "Error loading media, file could not be played". They also work fine from MS Windows 7 using IE and CHROME browsers. Any idea what might be causing the problem when trying to play them from the Firefox browser on a Windows platform?
I have already tried uninstalling Firefox, deleting my profile and re-installing the latest version.
I logged a support problem with JWPlayer and they indicated that it ma be a browser specific related issue with html5?
Thanks for you help!I would assume an issue with the HTML5 media player.
If those aren't working on Windows then it is possible that the proper codecs aren't installed.
You can try to disable the HTML5 media player and make Firefox use the Flash plugin.
You can do this by setting these two prefs to false on the <b>about:config</b> page:
*media.windows-media-foundation.enabled
*media.directshow.enabled
See also:
Windows Media Feature Pack for Windows 7 N and for Windows 7 KN:
*http://support.microsoft.com/kb/968211 - www.microsoft.com/en-us/download/details.aspx?id=16546 -
Error in pda load image file performanc​e in PDA
hello
i am using Windows CE with labview mobile module 8.6 in evaluation version. When trying to use "pda load imege file.vi" i get an error code 1, regardless of loading a .bmp, .gif or .jpg, of only 80kb (no diference in the color depth i use). I have tryed the same program in the windows mobile 5 emulator with the same error code. When i use "pda load bmp.vi" to load a .bmp, everything is OK. Some hints about this error?
some hints about missing dll are provided here
http://forums.ni.com/ni/board/message?board.id=170&message.id=185995&query.id=129565#M185995 -> can that be my problem? but then, why same error in the emulator?
Aditionally, if .gif or .jpg have to be "flatened" to pixmap for opeation inside my VI , is there any difference (in terms of speed and memory allocation) in loading .gif .jpg or .bmp? i have to operate with the raw pixmap data in "real time", and flatened .bmp images (320x220) do not load and update fast enough... any advice for that?Michiel
acording to the info provided
LabVIEW 8.6 Mobile Module
The
LabVIEW 8.6 Mobile Module includes the necessary Microsoft tools. The
Mobile Module installs ARM Pocket PC and Windows Mobile targets. You
only need to download and install the following additional Microsoft
tools (linked below) if you need x86 emulator targets:
Microsoft eMbedded Visual C++ 4.0
Microsoft eMbedded Visual C++ SP 4 or later
SDK for Windows Mobile 2003-based Pocket PCs
Note: If you are upgrading from version 8.0 or later of the PDA Module, you probably already have the additional tools.
Since
i have an ARM pocket PC, i understand from the above that no extra
software is needed. Anyhow, i will try to install the recomended tools.
About the VI, well, basically not even the library examples work in my
pocket PC, so, you may try those to see if they work on your devices. I
am afraid that the pocket PC i got (it is actually a PNA and not a PDA)
has a reduced version of WINDOWS CE 5.0 installed and that can be the
reason for the error...
regards
regards -
Error -11003 Menu falied loading image file - B1DE - AddMenu.xml
Hi I am using B1DE to develop a add-on.
I ran into error message as above when tried to add the "UI2.bmp" - an image file for the popup menu.
Can someone advise on this ?
<Application>
<Menus>
<action type="add">
<Menu Checked="0" Enabled="1" FatherUID="43520" Image="ui2.bmp" Position="13" String="&Transport System" Type="2" UniqueID="AFON_00">
<Menus>Lai,
While Calling main menu u also apply tha following code
Dim menuitem As SAPbouiCOM.MenuItem
menuitem = v_app.Menus.Item("FAST_Costing")
menuitem.Image = Application.StartupPath & "\Costing.Jpg"
Satisfy reward points,
Regards,
Anitha -
Using Solid Works 2007 and creating a vrml 97 I get a error message from the Load WRL File.
Can anyone help?
Attachments:
error3.JPG 118 KBHi,
can you try to run the attached vi? If it does not run, there might be a problem with the LabVIEW installation. Is the image on the screenshot what I should expect to see?
Thanks,
KostasB
National Instruments
Applications Engineering
Attachments:
ExampleProgram.vi 14 KB
wrl.PNG 79 KB -
Load image file into a LONG RAW column via SQL*Loader
Does anyone know how to load a image file into a LONG RAW column via SQL*Loader?
Thanks
-Hsing-Hua-Are you trying to import the image on the client into Oracle lite, or from the server end into the main oracle database for download to the client?
On our system images are loaded into the the oracle lite database (10g R1 at the moment) on the client (DELL X50 PDA's) into a BLOB (Not LONG RAW) column using Java (relatively standard functionality in Java) as this is what our application software is written in.
From the server end, we do not at the moment load images as such, but we do load the application software into the database for deployment of new versions to the clients (the DMC/DMS updates we have found very unreliable), and the technique should be the same for images. Again the file is imported into a BLOB column.
NOTE a column defined as BLOB on the main Oracle database appears as a LONG VARBINARY on the client Oracle lite database, but the synchronisation process handles the conversion with no problem.
To import into a BLOB column on the server try the following
1) you will need to create a DIRECTORY (CREATE DIRECTORY command) within the database, pointing at a directory on the database server (or accessible from it). This is needed for the file location.
CREATE OR REPLACE DIRECTORY PDA_FILE_UPLOAD AS '/pdaapps/jar/'
NOTE create directory needs to be run as SYSTEM
2) define your table to hold the image and other data. Our tables is
SQL> desc pda_applications
Name Null? Type
ID NOT NULL NUMBER(12)
PDAAT_CODE NOT NULL VARCHAR2(10)
VERSION NOT NULL NUMBER(5,2)
PART_NO NOT NULL NUMBER(3)
FILE_OBJECT BLOB
DEPLOY_APPLICATION_YN NOT NULL VARCHAR2(1)
3) copy the image (or in our case a .jar file) to the database server directory specified in step 1
4) the actual import is done using a DBMB_LOB procedure
PROCEDURE pr_load_file
Module Name : pr_load_file
Description : Main call. Create a new pda_applications record, and import the specified file into it
Version History:
Vers. Author Date Reason
1.0 G Wilkinson 03/02/2006 Initial Version.
(PA_VERSION IN NUMBER
,PA_FILENAME IN VARCHAR2
,PA_PDAAT_CODE IN VARCHAR2
,PA_PART_NO IN NUMBER DEFAULT 1
,PA_DEPLOY IN VARCHAR2 DEFAULT 'Y')
IS
l_FileLocator BFILE;
l_blobLocator BLOB;
l_seq NUMBER;
l_location VARCHAR2(20);
no_params EXCEPTION;
call_fail EXCEPTION;
BEGIN
-- Throw error if required details not present
IF pa_version IS NULL
OR pa_filename IS NULL
OR pa_pdaat_code IS NULL THEN
RAISE no_params;
END IF;
-- Initialize the BLOB locator for writing. Note that we have
-- to import a blob into a table as part of a SELECT FOR UPDATE. This locks the row,
-- and is a requirement for LOADFROMFILE.
SELECT pdaa_id_seq.nextval
INTO l_seq
FROM dual;
-- First create the application record (file is imported by update, not insert
INSERT INTO pda_applications
(ID,PDAAT_CODE,VERSION,PART_NO,FILE_OBJECT,DEPLOY_APPLICATION_YN)
VALUES (l_seq,pa_pdaat_code,pa_version,pa_part_no,EMPTY_BLOB(),pa_deploy);
-- Lock record for update to import the file
SELECT file_object INTO l_blobLocator
FROM pda_applications
WHERE id=l_seq
FOR UPDATE;
-- Initialize the BFILE locator for reading.
l_FileLocator := BFILENAME('PDA_FILE_UPLOAD', pa_filename);
DBMS_LOB.FILEOPEN(l_FileLocator, DBMS_LOB.FILE_READONLY);
-- Load the entire file into the character LOB.
-- This is necessary so that we have the data in
-- character rather than RAW variables.
DBMS_LOB.LOADFROMFILE(l_blobLocator, l_FileLocator
,DBMS_LOB.GETLENGTH(l_FileLocator)
,src_offset => 1);
-- Clean up.
DBMS_LOB.FILECLOSE(l_FileLocator);
-- Create download records for each user associated with the application for sending to the PDA's
-- to install the software
IF pa_deploy = 'Y' then
IF fn_deploy (pa_pdaa_id => l_seq
,pa_pdaat_code => pa_pdaat_code) != 'SUCCESS' THEN
RAISE call_fail;
END IF;
END IF;
EXCEPTION
WHEN no_params THEN
pkg_appm.pr_log_message( pa_mdl_name => g_module_name
, pa_mdl_version => fn_get_body_version
, pa_error_code => SQLCODE
, pa_location => l_location
, pa_text => 'Missing parameters'
, pa_severity => 'E'
WHEN OTHERS THEN
DBMS_LOB.FILECLOSE(l_FileLocator);
pkg_appm.pr_log_message( pa_mdl_name => g_module_name
, pa_mdl_version => fn_get_body_version
, pa_error_code => SQLCODE
, pa_location => l_location
, pa_text => SQLERRM
, pa_severity => 'E'
END pr_load_file;
I hope this may be of some help
Maybe you are looking for
-
Can't open pdf files-get error message
I'm trying to open pdf files from a CD, but when I do I get this message in Adobe Reader: "Adobe Reader could not open part1.pdf because it is either not a supported file type or because the file has become corrupted." I've tried other copies of the
-
Xmms doesn't work anymore...
I was usying xmms without problems till yesterday, today i've tried to start it and i've got: [qwerty@CiciulO ~]$ xmms *** glibc detected *** double free or corruption (out): 0xb6f4a5a4 *** Aborted
-
Hi! I am trying to use Dynamic SQL in my report, when I tried compile I am getting the following error message. Please can anyone tell me what I have to do. STATEMENT: dbms_sql.parse(v_cursorid, sel_str, dbms_sql.v7); ERROR: dbms_sql.parse(v_cursorid
-
Soundblaster Live! CT4620 - what driver to install for Windows XP P
Please can someone help me? I've upgraded from Windows 98SE to Windows XP Pro and need to install a driver for my Soundblaster Li've! CT4620. I tried to install one driver and it says "The Windows operating system is not supported" and the install ex
-
hi, IAm getting error message 'sender & reciever should be different' in BD64 when i create MODEL VIEW. There is one logical system erp800 which is assigned to client 800. I have created RFC connection in which the destination & target system are s