GeoRaster theme: no rendered images

I have loaded/validated a georaster. It appears fine in the GeoRasterViewer, and the spatial extent appears fine as a vector theme in Mapviewer. But addGeoRasterTheme in my jsp results in the log warning:
"GeoRaster theme [themename] has no rendered images."
Anyone have experience with the root cause of this warning? Does this indicate a problem with the georaster, or a problem with the request? Any feedback is appreciated.

Here's the log. (the 'exception while getting srid...' is a red flag! Hopefully it will lead to my mistake)
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.lbs.mapserver.oms] request= <?xml version="1.0" standalone="yes"?>
<map_request
datasource="kingcomv"
width="500"
height="400"
bgcolor="#ffffff"
antialiase="false"
format="JPEG_URL">
<center size="10000.0">
<geoFeature>
<geometricProperty typeName="center">
<Point>
<coordinates>1301437.0,300000.0</coordinates>
</Point>
</geometricProperty>
</geoFeature>
</center>
<themes>
<theme name="georFootprint">
<jdbc_query
spatial_column="geometry"
render_style="L.THICKBLUE"
jdbc_srid="41177"
datasource="kingcomv"
asis="false">select a.georaster.spatialextent as geometry from georaster a
</jdbc_query>
</theme>
<theme name="themeGeor" min_scale="Infinity" max_scale="-Infinity">
<jdbc_georaster_query
georaster_table="GEORASTER"
georaster_column="GEORASTER"
raster_table="GEORASTER_RDT1"
jdbc_srid="41177"
datasource="kingcomv"
asis="false">
</jdbc_georaster_query>
</theme>
</themes>
</map_request>
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(kingcomv) begins...
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC Theme:
ThemeDescriptor=
name=georFootprint
type=2
minScale=Infinity
maxScale=-Infinity
srid=41177
host=null
sid=null
port=null
user=null
mode=null
query=select a.georaster.spatialextent as geometry from georaster a
spatialColumn=geometry
renderStyleName=L.THICKBLUE
labelColumn=
labelStyleName=
renderStyleDef=null
labelStyleDef=null
localThem=null
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC GeoRaster Theme:
ThemeDescriptor=
name=themeGeor
type=5
minScale=Infinity
maxScale=-Infinity
srid=41177
localThem=null
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.sdovis.SRS] got srs object for :41177
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=false, unit=U.S. FOOT
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-741
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.theme.grtp] [Master scale] 2400.0 [Scale factor for theme themeGeor] 1.0
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.theme.grtp] [Query] SELECT * FROM ( select grt.GEORASTER from GEORASTER grt where grt.GEORASTER.rasterid = null ) grt WHERE MDSYS.SDO_FILTER(grt.GEORASTER.spatialextent, MDSYS.SDO_GEOMETRY(2003, 41177, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(1295187.0,295000.0,1307687.0,305000.0)), 'querytype=WINDOW') = 'TRUE'
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-742
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.theme.DGTP] [Master scale] 2400.0 [Theme scale factor] 1.0
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.sdovis.theme.grtp] # image loaded: 0
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.sdovis.theme.DGTP] [DynGeomTheme] rewritten query: SELECT * FROM ( select a.georaster.spatialextent as geometry from georaster a ) WHERE MDSYS.SDO_FILTER(geometry, MDSYS.SDO_GEOMETRY(2003, 41177, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(1295187.0,295000.0,1307687.0,305000.0)), 'querytype=WINDOW') = 'TRUE'
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.theme.DGTP] Retrieving geometries...
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.theme.DGTP] Read all geometries.
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.theme.DGTP] [GEORFOOTPRINT] Time spent loading 1 geometries:47ms
Tue May 17 11:11:18 GMT-08:00 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 47ms.
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.sdovis.RE] xfm: 0.04 0.0 0.0 -0.04 -51807.48 12200.0
Tue May 17 11:11:18 GMT-08:00 2005 FINEST [oracle.sdovis.RE] rendering image theme: themeGeor
Tue May 17 11:11:18 GMT-08:00 2005 WARN [oracle.sdovis.ImageRenderer] GeoRaster theme themeGeor has no rendered images.
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme GEORFOOTPRINT with 1 styled features: 0ms
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme GEORFOOTPRINT with 1 styled features: 0ms
Tue May 17 11:11:18 GMT-08:00 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 0ms
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.sdovis.util.JPEGMaker] Time spent on JPEG encoding:15
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 47ms
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 62ms
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 31ms
Tue May 17 11:11:18 GMT-08:00 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 140ms

Similar Messages

  • Can't preview the georaster theme in mapbuilder

    I create a raster table and I can see the raster image in GeoRasterViewer.Then I create a raster theme in mapbuilder, but can't preview it in mapbuilder.The error message is:
    2008-9-8 8:53:50 oracle.sdovis.DBMapMaker clear
    Message: clearing internal theme list and cache
    2008-9-8 8:53:50 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    Message: GeoRaster load Exception:
    oracle.spatial.georaster.GeoRasterException: Can not find a GeoRaster object with specified rdt and rid.
         at oracle.spatial.georaster.JGeoRaster.validateConn(JGeoRaster.java:605)
         at oracle.sdovis.theme.GeoRasterThemeProducer$JGeoRasterGTP.<init>(GeoRasterThemeProducer.java:2016)
         at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:683)
         at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
         at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:74)
    2008-9-8 8:53:50 oracle.sdovis.LoadThemeData run
    Message: Exception fetching data for theme GEORASTER_TABLE.
    Message:GeoRaster load Exception: Can not find a GeoRaster object with specified rdt and rid.
    Description:
         at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1098)
         at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
         at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:74)
    2008-9-8 8:53:50 oracle.sdovis.DBMapMaker renderEm
    Message: **** time spent on loading features: 0ms.
    2008-9-8 8:53:50 oracle.sdovis.ImageRenderer renderGeoRasterTheme
    Warn: GeoRaster theme GEORASTER_TABLE has no rendered images.
    2008-9-8 8:53:50 oracle.sdovis.DBMapMaker renderEm
    Message: **** time spent on rendering: 15ms
    What should I do?
    Thanks for your help!
    a-Li

    hi Joao,
    Yes, I used import image tool in mapbuilder.Now it's ok when i added the orai18n.jar.But there's some new problem:
    2008-9-10 9:11:05 oracle.sdovis.DBMapMaker clear
    Message: clearing internal theme list and cache
    2008-9-10 9:11:05 oracle.sdovis.theme.GeoRasterThemeProducer isDataWithinScale
    Message: Screen resolution: 0.3082191780821918
    2008-9-10 9:11:05 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    Warn: Query window is out of GeoRaster area, for raster Id 22.0
    2008-9-10 9:11:05 oracle.sdovis.DBMapMaker renderEm
    Message: **** time spent on loading features: 79ms.
    2008-9-10 9:11:05 oracle.sdovis.ImageRenderer renderGeoRasterTheme
    Warn: GeoRaster theme 123 has no rendered images.
    2008-9-10 9:11:05 oracle.sdovis.ScaleBarRenderer findRange
    Warn: cannot find a suitable range for scalebar.
    2008-9-10 9:11:05 oracle.sdovis.ScaleBarRenderer renderScaleBar
    Warn: cannot render scale bar.
    2008-9-10 9:11:05 oracle.sdovis.DBMapMaker renderEm
    Message: **** time spent on rendering: 0ms
    How did I set the scale?or there're some other problems?
    Thanks for your help
    a-Li

  • Unable to preview georaster theme

    I'm trying to ingest geotiff files into oracle. They go in okay, and I can create a GeoRaster theme in map builder without error. Whenever I try to preview this theme, I get
    MAPVIEWER-01005: No spatial data to render
    I've tried it with landsat and awifs geotiff files. Same result.
    I'm using MapViewer 10.1.3.3. The Oracle instance is 11.1.0.7. I'm ingesting the files with gdal 1.6.0. The command line looks like this
    *$ gdal_translate -of georaster L71168037_03720051219_B10.TIF georaster:spatial/XXXXXXXX@cadre,testraster,raster*
    (The instance name is cadre.)
    The MapBuilder message window contains this (not a cut and paste--sorry for typos):
    INFO: Loading SRS information from MDSYS.cs_sys (srid=32638)
    FEB 12, 2009 12:37:23 PM oracle sdovis.theme.GeoRasterThemeProducer.prepareData
    WARNING: JGeoRaster.getRasterImage returned null image.
    FEB 12, 2009 12:37:23 PM oracle.sdovis.theme.GeoRasterThemeProducer.performImageProcessing
    INFO: Unable to perform automatic linear stretch on image.
    FEB 12, 2009 12:37:23 PM oracle.sdovis.MapMaker.buildDataMBR
    WARNING: null MBR resulted from buildDataMBR
    And the window where I'm running mapbuilder says:
    Feb 12, 2009 12:36:54 PM oracle.mapviewer.builder.style.StyleManager loadStyles
    INFO: Loading styles for user: spatial ...
    java.sql.SQLException: ORA-06550: line 7, column 1:
    PLS-00201: identifier 'DBMS_LOB' must be declared
    ORA-06550: line 7, column 1:
    PL/SQL: Statement ignored
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:944)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3482)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3839)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1085)
    at oracle.spatial.georaster.JRaster.getRasterSubset(JRaster.java:635)
    at oracle.spatial.georaster.image.GeoRasterImage.getRasterImage(GeoRasterImage.java:605)
    at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1039)
    at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
    at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
    java.lang.NullPointerException
    at oracle.spatial.georaster.JRaster.getRasterSubset(JRaster.java:718)
    at oracle.spatial.georaster.image.GeoRasterImage.getRasterImage(GeoRasterImage.java:605)
    at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1039)
    at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
    at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
    Sorry if I'm giving too much information, but here's the info from the file I've ingested:
    *$ gdalinfo L71168037_03720051219_B10.TIF*
    Driver: GTiff/GeoTIFF
    Files: L71168037_03720051219_B10.TIF
    Size is 8581, 7621
    Coordinate System is:
    PROJCS\["unnamed",
    GEOGCS\["WGS 84",
    DATUM\["WGS_1984",
    SPHEROID\["WGS 84",6378137,298.2572235629972,
    AUTHORITY\["EPSG","7030"]],
    AUTHORITY\["EPSG","6326"]],
    PRIMEM\["Greenwich",0],
    UNIT\["degree",0.0174532925199433],
    AUTHORITY\["EPSG","4326"]],
    PROJECTION\["Transverse_Mercator"],
    PARAMETER\["latitude_of_origin",0],
    PARAMETER\["central_meridian",45],
    PARAMETER\["scale_factor",0.9996],
    PARAMETER\["false_easting",500000],
    PARAMETER\["false_northing",0],
    UNIT\["unknown",1],
    AUTHORITY\["EPSG","32638"]]
    Origin = (388739.999999999941792,3779100.000000000000000)
    Pixel Size = (28.500000000000000,-28.500000000000000)
    Metadata:
    AREA_OR_POINT=Point
    TIFFTAG_XRESOLUTION=0
    TIFFTAG_YRESOLUTION=0
    TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
    Image Structure Metadata:
    INTERLEAVE=BAND
    Corner Coordinates:
    Upper Left  (  388740.000, 3779100.000) ( 43d47'35.37"E, 34d 8'48.78"N)
    Lower Left  (  388740.000, 3561901.500) ( 43d49'10.95"E, 32d11'17.34"N)
    Upper Right (  633298.500, 3779100.000) ( 46d26'44.99"E, 34d 8'39.48"N)
    Lower Right (  633298.500, 3561901.500) ( 46d24'50.50"E, 32d11'8.71"N)
    Center      (  511019.250, 3670500.750) ( 45d 7'5.49"E, 33d10'23.73"N)
    Band 1 Block=8581x1 Type=Byte, ColorInterp=Gray

    I not only posted that last response twice, I didn't run both queries you posted. Sorry. Try, try again.
    And, by the way, I'm hoping there's a script somewhere I can run to fix this?
    Also, I run two instances of Oracle. One is a production instance, and we 'hardened' it security-wise. Could this have invalidated these objects?
    SQL> select substr(comp_id,1,15) comp_id,
    2 substr(comp_name,1,30) comp_name,
    3 substr(version,1,10) version,
    4 status
    5 from dba_server_registry where comp_name = 'Spatial';
    COMP_ID COMP_NAME VERSION STATUS
    ========================================
    SDO Spatial 11.1.0.7.0 INVALID
    And
    SQL> select substr(owner,1,12) owner,
    2 substr(object_name,1,30) object,
    3 substr(object_type,1,30) type, status
    4 from dba_objects
    5 where owner = 'MDSYS'
    6 and status='INVALID';
    OWNER OBJECT TYPE STATUS
    ===============================================
    MDSYS /3fdbc3df_IdentifyExtraInfo JAVA CLASS INVALID
    MDSYS /ec9d805_InitExtraInfo JAVA CLASS INVALID
    MDSYS /cd63cce4_MapViewerAddJDBCThem JAVA CLASS INVALID
    MDSYS /359b82c8_MapViewerAddPThemeTa JAVA CLASS INVALID
    MDSYS /25ac10c_MapViewerGetMapURLTag JAVA CLASS INVALID
    MDSYS /fb42204a_MapViewerGetParamTag JAVA CLASS INVALID
    MDSYS /84620c3_MapViewerIdentifyTag JAVA CLASS INVALID
    MDSYS /97885f76_MapViewerImportBaseM JAVA CLASS INVALID
    MDSYS /1b397a58_MapViewerInitTag JAVA CLASS INVALID
    MDSYS /2a0d9e3d_MapViewerRunTag JAVA CLASS INVALID
    MDSYS /9931cdeb_MapViewerSetParamTag JAVA CLASS INVALID
    OWNER OBJECT TYPE STATUS
    =============================================
    MDSYS /115cb7d9_MapViewerShowLegendT JAVA CLASS INVALID
    MDSYS /4435ca0a_MapViewerTagUtil JAVA CLASS INVALID
    MDSYS /166c8a35_ShowLegendExtraInfo JAVA CLASS INVALID
    MDSYS /c3173d7c_MVPortletPO JAVA CLASS INVALID
    MDSYS oracle/lbs/mapclient/ClientMsg JAVA CLASS INVALID
    MDSYS /1105938e_ClientMsg_ar JAVA CLASS INVALID
    MDSYS /3fe00d73_ClientMsg_cs JAVA CLASS INVALID
    MDSYS /88ba0556_ClientMsg_da JAVA CLASS INVALID
    MDSYS /c8cca64c_ClientMsg_de JAVA CLASS INVALID
    MDSYS /fc5edda9_ClientMsg_es JAVA CLASS INVALID
    MDSYS /6fedd518_ClientMsg_el JAVA CLASS INVALID
    OWNER OBJECT TYPE STATUS
    ===========================================
    MDSYS /2ea33307_ClientMsg_fi JAVA CLASS INVALID
    MDSYS /25b6256e_ClientMsg_fr JAVA CLASS INVALID
    MDSYS /7b7dd3f3_ClientMsg_hu JAVA CLASS INVALID
    MDSYS /cbc34517_ClientMsg_it JAVA CLASS INVALID
    MDSYS /3d07ed75_ClientMsg_iw JAVA CLASS INVALID
    MDSYS /3dbb56d6_ClientMsg_ja JAVA CLASS INVALID
    MDSYS /a7fb0f1_ClientMsg_ko JAVA CLASS INVALID
    MDSYS /1f32e51e_ClientMsg_nl JAVA CLASS INVALID
    MDSYS /455e2627_ClientMsg_no JAVA CLASS INVALID
    MDSYS /ec43ea2a_ClientMsg_pl JAVA CLASS INVALID
    MDSYS /e983a2ef_ClientMsg_pt JAVA CLASS INVALID
    OWNER OBJECT TYPE STATUS
    ==============================================
    MDSYS /fc555aa4_ClientMsg_pt_BR JAVA CLASS INVALID
    MDSYS /ff215f92_ClientMsg_ro JAVA CLASS INVALID
    MDSYS /198b7f68_ClientMsg_ru JAVA CLASS INVALID
    MDSYS /468b530b_ClientMsg_sk JAVA CLASS INVALID
    MDSYS /6e67ebd0_ClientMsg_sv JAVA CLASS INVALID
    MDSYS /a794fdb9_ClientMsg_th JAVA CLASS INVALID
    MDSYS /5c797e88_ClientMsg_tr JAVA CLASS INVALID
    MDSYS /f58b0ffd_ClientMsg_zh_CN JAVA CLASS INVALID
    MDSYS /c0645d9d_ClientMsg_zh_TW JAVA CLASS INVALID
    MDSYS /eac938b1_Ver10131_B061023 JAVA CLASS INVALID
    MDSYS /1cfbbcff_MapBounds JAVA CLASS INVALID
    OWNER OBJECT TYPE STATUS
    ==============================================
    MDSYS /e37abbd8_TruetypeFont JAVA CLASS INVALID
    MDSYS /891c7305_TextStyleModel JAVA CLASS INVALID
    MDSYS /a47ff4b0_AbstractStyleModel JAVA CLASS INVALID
    MDSYS /fd388f9b_MarkerStyleModel JAVA CLASS INVALID
    MDSYS /126ee50f_ColorStyleModel JAVA CLASS INVALID
    MDSYS /45a6c65f_StyleUtils JAVA CLASS INVALID
    MDSYS /ebe11a12_LineStyleModel JAVA CLASS INVALID
    MDSYS /c41844c6_AreaStyleModel JAVA CLASS INVALID
    MDSYS oracle/mapviewer/share/Field JAVA CLASS INVALID
    MDSYS /3b87ff37_ScaleBar JAVA CLASS INVALID
    MDSYS /e72381d6_NSDataSet JAVA CLASS INVALID
    OWNER OBJECT TYPE STATUS
    ===========================================
    MDSYS /676eab57_NSRow JAVA CLASS INVALID
    MDSYS /244fde58_NSDataProvider JAVA CLASS INVALID
    MDSYS /f51e879b_LabelingHintsKey JAVA CLASS INVALID
    MDSYS /897bd41a_LabelingHints JAVA CLASS INVALID
    MDSYS /de726ff6_MapSourceAdapter JAVA CLASS INVALID
    MDSYS /e18b9b8e_TileDefinition JAVA CLASS INVALID
    MDSYS /fa85fa23_BarChartStyleModel JAVA CLASS INVALID
    MDSYS /2fd90ce9_BarInfo JAVA CLASS INVALID
    MDSYS /7da99f02_CollectionStyleModel JAVA CLASS INVALID
    MDSYS /de3c3d45_CollectionStyleModel JAVA CLASS INVALID
    MDSYS /61238d9a_AbstractBucketStyleM JAVA CLASS INVALID
    OWNER OBJECT TYPE STATUS
    ============================================
    MDSYS /8792a484_BucketSeries JAVA CLASS INVALID
    MDSYS /21f094a3_Bucket JAVA CLASS INVALID
    MDSYS /40e17b77_PieChartStyleModel JAVA CLASS INVALID
    MDSYS /dfd71d8_PieSliceInfo JAVA CLASS INVALID
    MDSYS /54c831b0_DotDensityStyleModel JAVA CLASS INVALID
    MDSYS /96a86368_VariableMarkerStyleM JAVA CLASS INVALID
    MDSYS /7642d75e_BucketStyleModel JAVA CLASS INVALID
    MDSYS /556d65b3_CollectionBucket JAVA CLASS INVALID
    MDSYS /dce48bb2_RangedBucket JAVA CLASS INVALID
    MDSYS /b7ed8ec5_ColorSchemeStyleMode JAVA CLASS INVALID
    MDSYS /e97b1229_ArrayParameter JAVA CLASS INVALID
    OWNER OBJECT TYPE STATUS
    =============================================
    MDSYS /381d0faa_ThemeModifiers JAVA CLASS INVALID
    MDSYS oracle/mapviewer/share/Legend JAVA CLASS INVALID
    MDSYS /70bbe1c2_GeometryFeature JAVA CLASS INVALID
    MDSYS /271138ee_Geometry JAVA CLASS INVALID
    MDSYS /51ad44c3_MapProperties JAVA CLASS INVALID
    MDSYS /c7bb1acb_DynamicFeatureList JAVA CLASS INVALID
    MDSYS /335d9b81_DynamicStyleList JAVA CLASS INVALID
    MDSYS /1c4752d4_ThemeList JAVA CLASS INVALID
    85 rows selected.

  • Dynamically defined GeoRaster theme using WMS parameter values

    Hi everyone,
    In addition to dynamically defining a GeoRaster theme using SQL (which is documented by Oracle), is it possible to somehow access the WMS values of parameters in the WMS query which is accessing the theme? For example, can I grab the BBOX values from the WMS REQUEST and use that in my dynamic SQL statement?
    My goal for doing this is to select the most appropriate pyramid level of the raster imagery given the map scale of the WMS request.
    My other question is when using a GeoRaster theme containing a SQL statement, will the MapViewer WMS engine still automatically select imagery from all and any relevant georaster image that has a portion within the BBOX of the query?
    Cheers,
    MH

    A Georaster object can have pyramid levels, and in MapViewer you can define a pyramid level for a theme. If you define this parameter, then for any zoom level that you render, MapViewer will read the pixels for this pyramid level. Depending on the zoom level, you may be loading unecessary data due to the screen resolution. If you do not define the pyramid level, MapViewer will calculate the actual screen resolution given the query and device windows, and will load the pixels for the pyramid level that is closest to the actual screen resolution, resulting on a better performance.

  • Error - Rendered Image is NULL

    Hello !
    I am trying to work on animated objects. I have imported XMII Dynamic Graphics from sdn website and imported the same in my project.
    Now when I am tyring to use HorizLEDMeter or any of its object I am getting the error as  "Rendered Image is null".
    Can anyone please tell me what can be the solution for this ??
    Thanks.

    Please use the latest service pack. I was facing the same problem and after application of service pack, the problem was resolved
    Regards,
    Musarrat

  • How to change the bar chart rendering image format in SSRS

    Hello all,
    I am working with SQL Server 2008 R2 and I have a SSRS bar chart report, when the report got rendered over online or if the take Export (PDF and PPT), the image is in png format always, which is taking too much of time to execute the report in case of large
    data.
    Can, It be possible that the rendered image is in jpeg format instead of png.
    If Yes, please share the appropriate steps to follow:
    Thanks in advance
    Pankaj Kumar Yadav-

    Hi Pankaj067,
    According to your description, you want to change the bar chart rendering image format as JPEG format when previewing the report or exporting to a PDF file .
    In Reporting Services, the chart rendering image format is PNG by default. It’s a by-design behavior. And it doesn’t open any API for us to change the image type when exporting a chart to a format. So in your scenario, your requirement can’t be achieved
    in Reporting Services currently. I would recommend you submit a feature request to Microsoft at this site:
    https://connect.microsoft.com/SQLServer. So that we can try to modify and expand the product features based on your needs.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Help needed in rendering images...ThAnkS

    I have 2 classes for rendering images. When i run the application, the images kept flashing, may i know how could i actually have 1 image appearing instead of many images flashing? In other words, i would like in a way similar to mosaic rendering process...Thanks alot
    import javax.swing.ImageIcon;
    import javax.swing.JApplet;
    import javax.swing.JComponent;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.BufferedInputStream;
    * TumbleItem.java requires these files:
    * SwingWorker.java
    * all the images in the images/tumble directory
    * (or, if specified in the applet tag, another directory [dir]
    * with images named T1.gif ... Tx.gif, where x is the total
    * number of images [nimgs])
    * the appropriate code to specify that the applet be executed,
    * such as the HTML code in TumbleItem.html or TumbleItem.atag,
    * or the JNLP code in TumbleItem.jnlp
    public class TumbleItem extends JApplet
    implements ActionListener {
    int loopslot = -1; //the current frame number
    String dir; //the directory relative to the codebase
    //from which the images are loaded
    javax.swing.Timer timer;
    //the timer animating the images
    int pause; //the length of the pause between revs
    int offset; //how much to offset between loops
    int off; //the current offset
    int speed; //animation speed
    int nimgs; //number of images to animate
    int width; //width of the applet's content pane
    Animator animator; //the applet's content pane
    ImageIcon imgs[]; //the images
    int maxWidth; //width of widest image
    boolean finishedLoading = false;
    JLabel statusLabel;
    static Color[] labelColor = { Color.black, Color.black,
    Color.black, Color.black,
    Color.black, Color.black,
    Color.white, Color.white,
    Color.white, Color.white };
    //Called by init.
    protected void loadAppletParameters() {
    //Get the applet parameters.
    String at = getParameter("img");
    dir = (at != null) ? at : "images/tumble";
    at = getParameter("pause");
    pause = (at != null) ? Integer.valueOf(at).intValue() : 1900;
    at = getParameter("offset");
    offset = (at != null) ? Integer.valueOf(at).intValue() : 0;
    at = getParameter("speed");
    speed = (at != null) ? (1000 / Integer.valueOf(at).intValue()) : 100;
    at = getParameter("nimgs");
    nimgs = (at != null) ? Integer.valueOf(at).intValue() : 16;
    at = getParameter("maxwidth");
    maxWidth = (at != null) ? Integer.valueOf(at).intValue() : 0;
    * Create the GUI. For thread safety, this method should
    * be invoked from the event-dispatching thread.
    private void createGUI() {
    //Animate from right to left if offset is negative.
    width = getSize().width;
    if (offset < 0) {
    off = width - maxWidth;
    //Custom component to draw the current image
    //at a particular offset.
    animator = new Animator();
    animator.setOpaque(true);
    animator.setBackground(Color.white);
    setContentPane(animator);
    //Put a "Loading Images..." label in the middle of
    //the content pane. To center the label's text in
    //the applet, put it in the center part of a
    //BorderLayout-controlled container, and center-align
    //the label's text.
    statusLabel = new JLabel("Loading Images...",
    JLabel.CENTER);
    statusLabel.setForeground(labelColor[0]);
    animator.add(statusLabel, BorderLayout.CENTER);
    //Called when this applet is loaded into the browser.
    public void init() {
    loadAppletParameters();
    //Execute a job on the event-dispatching thread:
    //creating this applet's GUI.
    try {
    javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
    public void run() {
    createGUI();
    } catch (Exception e) {
    System.err.println("createGUI didn't successfully complete");
    //Set up the timer that will perform the animation.
    timer = new javax.swing.Timer(speed, this);
    timer.setInitialDelay(pause);
    timer.setCoalesce(false);
    timer.start(); //Start the animation.
    //Loading the images can take quite a while, so to
    //avoid staying in init() (and thus not being able
    //to show the "Loading Images..." label) we'll
    //load the images in a SwingWorker thread.
    imgs = new ImageIcon[nimgs];
    final SwingWorker worker = new SwingWorker() {
    public Object construct() {
    //Images are numbered 1 to nimgs,
    //but fill array from 0 to nimgs-1.
    for (int i = 0; i < nimgs; i++) {
    imgs[i] = loadImage(i+1);
    finishedLoading = true;
    return imgs;
    //Executes in the event-dispatching thread.
    public void finished() {
    //Remove the "Loading images" label.
    animator.removeAll();
    loopslot = -1;
    worker.start();
    //The component that actually presents the GUI.
    public class Animator extends JPanel {
    public Animator() {
    super(new BorderLayout());
    protected void paintComponent(Graphics g) {
    super.paintComponent(g);
    if (finishedLoading &&
    (loopslot > -1) && (loopslot < nimgs)) {
    if (imgs != null && imgs[loopslot] != null) {
    imgs[loopslot].paintIcon(this, g, off, 0);
    //Update the the loopslot (frame number) and the offset.
    //If it's the last frame, restart the timer to get a long
    //pause between loops.
    public void actionPerformed(ActionEvent e) {
    loopslot++;
    if (!finishedLoading) {
    int colorIndex = loopslot % labelColor.length;
    try {
    statusLabel.setForeground(labelColor[colorIndex]);
    } catch (NullPointerException exc) {}
    return;
    if (loopslot >= nimgs) {
    loopslot = 0;
    off += offset;
    if (off < 0) {
    off = width - maxWidth;
    } else if (off + maxWidth > width) {
    off = 0;
    animator.repaint();
    if (loopslot == nimgs - 1) {
    timer.restart();
    //Called to start the applet's execution.
    public void start() {
    if (finishedLoading && (nimgs > 1)) {
    timer.restart();
    //Called to stop (temporarily or permanently) the applet's execution.
    public void stop() {
    timer.stop();
    protected ImageIcon loadImage(int imageNum) {
    String path = dir + "/Image" + imageNum + ".jpg";
    int MAX_IMAGE_SIZE = 2400; //Change this to the size of
    //your biggest image, in bytes.
    int count = 0;
    BufferedInputStream imgStream = new BufferedInputStream(
    this.getClass().getResourceAsStream(path));
    if (imgStream != null) {
    byte buf[] = new byte[MAX_IMAGE_SIZE];
    try {
    count = imgStream.read(buf);
    imgStream.close();
    } catch (java.io.IOException ioe) {
    System.err.println("Couldn't read stream from file: " + path);
    return null;
    if (count <= 0) {
    System.err.println("Empty file: " + path);
    return null;
    return new ImageIcon(Toolkit.getDefaultToolkit().createImage(buf));
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    public String getAppletInfo() {
    return "Title: TumbleItem v1.2, 23 Jul 1997\n"
    + "Author: Interactive Mosaic\n"
    + "A simple Item class to play an image loop.";
    public String[][] getParameterInfo() {
    String[][] info = {
    {"img", "string", "the directory containing the images to loop"},
    {"pause", "int", "pause between complete loops; default is 3900"},
    {"offset", "int", "offset of each image to simulate left (-) or "
    + "right (+) motion; default is 0 (no motion)"},
    {"speed", "int", "the speed at which the frames are looped; "
    + "default is 100"},
    {"nimgs", "int", "the number of images to be looped; default is 16"},
    {"maxwidth", "int", "the maximum width of any image in the loop; "
    + "default is 0"}
    return info;
    import javax.swing.SwingUtilities;
    public abstract class SwingWorker {
    private Object value; // see getValue(), setValue()
    * Class to maintain reference to current worker thread
    * under separate synchronization control.
    private static class ThreadVar {
    private Thread thread;
    ThreadVar(Thread t) { thread = t; }
    synchronized Thread get() { return thread; }
    synchronized void clear() { thread = null; }
    private ThreadVar threadVar;
    * Get the value produced by the worker thread, or null if it
    * hasn't been constructed yet.
    protected synchronized Object getValue() {
    return value;
    * Set the value produced by worker thread
    private synchronized void setValue(Object x) {
    value = x;
    * Compute the value to be returned by the <code>get</code> method.
    public abstract Object construct();
    * Called on the event dispatching thread (not on the worker thread)
    * after the <code>construct</code> method has returned.
    public void finished() {
    * A new method that interrupts the worker thread. Call this method
    * to force the worker to stop what it's doing.
    public void interrupt() {
    Thread t = threadVar.get();
    if (t != null) {
    t.interrupt();
    threadVar.clear();
    * Return the value created by the <code>construct</code> method.
    * Returns null if either the constructing thread or the current
    * thread was interrupted before a value was produced.
    * @return the value created by the <code>construct</code> method
    public Object get() {
    while (true) { 
    Thread t = threadVar.get();
    if (t == null) {
    return getValue();
    try {
    t.join();
    catch (InterruptedException e) {
    Thread.currentThread().interrupt(); // propagate
    return null;
    * Start a thread that will call the <code>construct</code> method
    * and then exit.
    public SwingWorker() {
    final Runnable doFinished = new Runnable() {
    public void run() { finished(); }
    Runnable doConstruct = new Runnable() {
    public void run() {
    try {
    setValue(construct());
    finally {
    threadVar.clear();
    SwingUtilities.invokeLater(doFinished);
    Thread t = new Thread(doConstruct);
    threadVar = new ThreadVar(t);
    * Start the worker thread.
    public void start() {
    Thread t = threadVar.get();
    if (t != null) {
    t.start();
    }

    I have 2 classes for rendering images. When i run the application, the images kept flashing, may i know how could i actually have 1 image appearing instead of many images flashing? In other words, i would like in a way similar to mosaic rendering process...Thanks alot
    import javax.swing.ImageIcon;
    import javax.swing.JApplet;
    import javax.swing.JComponent;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.BufferedInputStream;
    * TumbleItem.java requires these files:
    * SwingWorker.java
    * all the images in the images/tumble directory
    * (or, if specified in the applet tag, another directory [dir]
    * with images named T1.gif ... Tx.gif, where x is the total
    * number of images [nimgs])
    * the appropriate code to specify that the applet be executed,
    * such as the HTML code in TumbleItem.html or TumbleItem.atag,
    * or the JNLP code in TumbleItem.jnlp
    public class TumbleItem extends JApplet
    implements ActionListener {
    int loopslot = -1; //the current frame number
    String dir; //the directory relative to the codebase
    //from which the images are loaded
    javax.swing.Timer timer;
    //the timer animating the images
    int pause; //the length of the pause between revs
    int offset; //how much to offset between loops
    int off; //the current offset
    int speed; //animation speed
    int nimgs; //number of images to animate
    int width; //width of the applet's content pane
    Animator animator; //the applet's content pane
    ImageIcon imgs[]; //the images
    int maxWidth; //width of widest image
    boolean finishedLoading = false;
    JLabel statusLabel;
    static Color[] labelColor = { Color.black, Color.black,
    Color.black, Color.black,
    Color.black, Color.black,
    Color.white, Color.white,
    Color.white, Color.white };
    //Called by init.
    protected void loadAppletParameters() {
    //Get the applet parameters.
    String at = getParameter("img");
    dir = (at != null) ? at : "images/tumble";
    at = getParameter("pause");
    pause = (at != null) ? Integer.valueOf(at).intValue() : 1900;
    at = getParameter("offset");
    offset = (at != null) ? Integer.valueOf(at).intValue() : 0;
    at = getParameter("speed");
    speed = (at != null) ? (1000 / Integer.valueOf(at).intValue()) : 100;
    at = getParameter("nimgs");
    nimgs = (at != null) ? Integer.valueOf(at).intValue() : 16;
    at = getParameter("maxwidth");
    maxWidth = (at != null) ? Integer.valueOf(at).intValue() : 0;
    * Create the GUI. For thread safety, this method should
    * be invoked from the event-dispatching thread.
    private void createGUI() {
    //Animate from right to left if offset is negative.
    width = getSize().width;
    if (offset < 0) {
    off = width - maxWidth;
    //Custom component to draw the current image
    //at a particular offset.
    animator = new Animator();
    animator.setOpaque(true);
    animator.setBackground(Color.white);
    setContentPane(animator);
    //Put a "Loading Images..." label in the middle of
    //the content pane. To center the label's text in
    //the applet, put it in the center part of a
    //BorderLayout-controlled container, and center-align
    //the label's text.
    statusLabel = new JLabel("Loading Images...",
    JLabel.CENTER);
    statusLabel.setForeground(labelColor[0]);
    animator.add(statusLabel, BorderLayout.CENTER);
    //Called when this applet is loaded into the browser.
    public void init() {
    loadAppletParameters();
    //Execute a job on the event-dispatching thread:
    //creating this applet's GUI.
    try {
    javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
    public void run() {
    createGUI();
    } catch (Exception e) {
    System.err.println("createGUI didn't successfully complete");
    //Set up the timer that will perform the animation.
    timer = new javax.swing.Timer(speed, this);
    timer.setInitialDelay(pause);
    timer.setCoalesce(false);
    timer.start(); //Start the animation.
    //Loading the images can take quite a while, so to
    //avoid staying in init() (and thus not being able
    //to show the "Loading Images..." label) we'll
    //load the images in a SwingWorker thread.
    imgs = new ImageIcon[nimgs];
    final SwingWorker worker = new SwingWorker() {
    public Object construct() {
    //Images are numbered 1 to nimgs,
    //but fill array from 0 to nimgs-1.
    for (int i = 0; i < nimgs; i++) {
    imgs[i] = loadImage(i+1);
    finishedLoading = true;
    return imgs;
    //Executes in the event-dispatching thread.
    public void finished() {
    //Remove the "Loading images" label.
    animator.removeAll();
    loopslot = -1;
    worker.start();
    //The component that actually presents the GUI.
    public class Animator extends JPanel {
    public Animator() {
    super(new BorderLayout());
    protected void paintComponent(Graphics g) {
    super.paintComponent(g);
    if (finishedLoading &&
    (loopslot > -1) && (loopslot < nimgs)) {
    if (imgs != null && imgs[loopslot] != null) {
    imgs[loopslot].paintIcon(this, g, off, 0);
    //Update the the loopslot (frame number) and the offset.
    //If it's the last frame, restart the timer to get a long
    //pause between loops.
    public void actionPerformed(ActionEvent e) {
    loopslot++;
    if (!finishedLoading) {
    int colorIndex = loopslot % labelColor.length;
    try {
    statusLabel.setForeground(labelColor[colorIndex]);
    } catch (NullPointerException exc) {}
    return;
    if (loopslot >= nimgs) {
    loopslot = 0;
    off += offset;
    if (off < 0) {
    off = width - maxWidth;
    } else if (off + maxWidth > width) {
    off = 0;
    animator.repaint();
    if (loopslot == nimgs - 1) {
    timer.restart();
    //Called to start the applet's execution.
    public void start() {
    if (finishedLoading && (nimgs > 1)) {
    timer.restart();
    //Called to stop (temporarily or permanently) the applet's execution.
    public void stop() {
    timer.stop();
    protected ImageIcon loadImage(int imageNum) {
    String path = dir + "/Image" + imageNum + ".jpg";
    int MAX_IMAGE_SIZE = 2400; //Change this to the size of
    //your biggest image, in bytes.
    int count = 0;
    BufferedInputStream imgStream = new BufferedInputStream(
    this.getClass().getResourceAsStream(path));
    if (imgStream != null) {
    byte buf[] = new byte[MAX_IMAGE_SIZE];
    try {
    count = imgStream.read(buf);
    imgStream.close();
    } catch (java.io.IOException ioe) {
    System.err.println("Couldn't read stream from file: " + path);
    return null;
    if (count <= 0) {
    System.err.println("Empty file: " + path);
    return null;
    return new ImageIcon(Toolkit.getDefaultToolkit().createImage(buf));
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    public String getAppletInfo() {
    return "Title: TumbleItem v1.2, 23 Jul 1997\n"
    + "Author: Interactive Mosaic\n"
    + "A simple Item class to play an image loop.";
    public String[][] getParameterInfo() {
    String[][] info = {
    {"img", "string", "the directory containing the images to loop"},
    {"pause", "int", "pause between complete loops; default is 3900"},
    {"offset", "int", "offset of each image to simulate left (-) or "
    + "right (+) motion; default is 0 (no motion)"},
    {"speed", "int", "the speed at which the frames are looped; "
    + "default is 100"},
    {"nimgs", "int", "the number of images to be looped; default is 16"},
    {"maxwidth", "int", "the maximum width of any image in the loop; "
    + "default is 0"}
    return info;
    import javax.swing.SwingUtilities;
    public abstract class SwingWorker {
    private Object value; // see getValue(), setValue()
    * Class to maintain reference to current worker thread
    * under separate synchronization control.
    private static class ThreadVar {
    private Thread thread;
    ThreadVar(Thread t) { thread = t; }
    synchronized Thread get() { return thread; }
    synchronized void clear() { thread = null; }
    private ThreadVar threadVar;
    * Get the value produced by the worker thread, or null if it
    * hasn't been constructed yet.
    protected synchronized Object getValue() {
    return value;
    * Set the value produced by worker thread
    private synchronized void setValue(Object x) {
    value = x;
    * Compute the value to be returned by the <code>get</code> method.
    public abstract Object construct();
    * Called on the event dispatching thread (not on the worker thread)
    * after the <code>construct</code> method has returned.
    public void finished() {
    * A new method that interrupts the worker thread. Call this method
    * to force the worker to stop what it's doing.
    public void interrupt() {
    Thread t = threadVar.get();
    if (t != null) {
    t.interrupt();
    threadVar.clear();
    * Return the value created by the <code>construct</code> method.
    * Returns null if either the constructing thread or the current
    * thread was interrupted before a value was produced.
    * @return the value created by the <code>construct</code> method
    public Object get() {
    while (true) { 
    Thread t = threadVar.get();
    if (t == null) {
    return getValue();
    try {
    t.join();
    catch (InterruptedException e) {
    Thread.currentThread().interrupt(); // propagate
    return null;
    * Start a thread that will call the <code>construct</code> method
    * and then exit.
    public SwingWorker() {
    final Runnable doFinished = new Runnable() {
    public void run() { finished(); }
    Runnable doConstruct = new Runnable() {
    public void run() {
    try {
    setValue(construct());
    finally {
    threadVar.clear();
    SwingUtilities.invokeLater(doFinished);
    Thread t = new Thread(doConstruct);
    threadVar = new ThreadVar(t);
    * Start the worker thread.
    public void start() {
    Thread t = threadVar.get();
    if (t != null) {
    t.start();
    }

  • Rendering Image in JPanel

    Hi,
    I am completely new to java imaging and I am planning to build a small image viewer application (something similar to the comic book reader).
    After some search and following the discussion here [http://forum.java.sun.com/thread.jspa?forumID=20&threadID=362429|http://forum.java.sun.com/thread.jspa?forumID=20&threadID=362429] , I have main app consists of JFrame with SplitPane which consists a ScrollPane. In separate class, I have JPanel class. I am trying to add the JPanel in ScrollPane when application starts. JPane is responsible for fetching and rendering image but something went wrong and it is giving me a NullPointer Exceptions. So far I was able to figure out that it is causing by the "paintComponent" method but no idea why. I am looking for a nice suggestions and guidance on this topic (especially something like why it didn't work and various ways to do things). "For Dummies" style suggestions are highly appreciated.
    Follwing are my two classes:
    ===============================
    =======================
    Separate JPanel Class
    =======================
    * JPanelCanvas.java
    * Created on July 17, 2008, 4:16 PM
    package org.zeenet.bookreader;
    * @author  Deepak K. Shrestha
    import java.awt.*;
    import java.awt.image.*;
    import javax.imageio.*;
    import java.io.*;
    public class JPanelCanvas extends javax.swing.JPanel {
        BufferedImage prevImg, currImg, nextImg = null;
        Graphics g;
        /** Creates new form JPanelCanvas */
        public JPanelCanvas() {
            initComponents();
            getImage();
            setSize();
            paintComponent(g); //<<<<-- so far this is causing the trouble <<<<
        //fetch image from file
        public void getImage() {
           try {
               currImg = ImageIO.read(new File("D:\\TEMPORARY\\logo.JPG"));
           } catch (IOException e) {
        public void setSize() {
            if (currImg == null) {
                 this.setPreferredSize(new Dimension (100,100));
            } else {
               this.setPreferredSize(new Dimension(currImg.getWidth(null), currImg.getHeight(null)));
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.drawImage(currImg, 0, 0, null);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
            this.setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 400, Short.MAX_VALUE)
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 300, Short.MAX_VALUE)
        }// </editor-fold>                       
        // Variables declaration - do not modify                    
        // End of variables declaration                  
    }==========================
    Main application
    ==========================
    * JFrameReader.java
    * Created on July 16, 2008, 3:16 PM
    package org.zeenet.bookreader;
    import javax.swing.*;
    * @author  Deepak K. Shrestha
    public class JFrameReader extends javax.swing.JFrame {
        /** Creates new form JFrameReader */
        public JFrameReader() {
            initComponents();
            setExtendedState(JFrameReader.MAXIMIZED_BOTH); //maximize application
            jScrollPaneCanvas.add(new JPanelCanvas()); //<<<<---attached the JPanel here <<<<<<<<<
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            jLayeredPane1 = new javax.swing.JLayeredPane();
            jSplitPane1 = new javax.swing.JSplitPane();
            jScrollPaneCanvas = new javax.swing.JScrollPane();
            jScrollPaneList = new javax.swing.JScrollPane();
            jListItem = new javax.swing.JList();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("zeeBookReader");
            jSplitPane1.setRightComponent(jScrollPaneCanvas);
            jListItem.setModel(new javax.swing.AbstractListModel() {
                String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
                public int getSize() { return strings.length; }
                public Object getElementAt(int i) { return strings; }
    jScrollPaneList.setViewportView(jListItem);
    jSplitPane1.setLeftComponent(jScrollPaneList);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
    .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
    .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
    pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new JFrameReader().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JList jListItem;
    private javax.swing.JScrollPane jScrollPaneCanvas;
    private javax.swing.JScrollPane jScrollPaneList;
    private javax.swing.JSplitPane jSplitPane1;
    // End of variables declaration
    =======================
    By the way I am using Netbeans and all swing components are created using GUI editor.
    Trying to build this app gives me following error:
    ===========================================
    init:
    deps-jar:
    compile:
    run:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at javax.swing.JComponent.paintComponent(JComponent.java:766)
    at org.zeenet.bookreader.JPanelCanvas.paintComponent(JPanelCanvas.java:54)
    at org.zeenet.bookreader.JPanelCanvas.<init>(JPanelCanvas.java:30)
    at org.zeenet.bookreader.JFrameReader.<init>(JFrameReader.java:22)
    at org.zeenet.bookreader.JFrameReader$2.run(JFrameReader.java:80)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    BUILD STOPPED (total time: 10 seconds)
    ===============================================
    Thanks

    You should not call paintComponent explicitly (especially with a null Graphics object).
    It is called internally when the component needs to repaint itself.
    Read this: [Performing Custom Painting|http://java.sun.com/docs/books/tutorial/uiswing/painting/]

  • Rendered images are not appearing on the webpage. works fine on IE. All plugins appear to be present includeing Adobe Flash

    rendered images are not appearing on the webpage. works fine on IE. All plugins appear to be present including Adobe Flash

    If that only happens on a specific page or domain then make sure that you do not block images on that domain.
    See [[Images or animations do not show]]
    *A way to see which images are blocked is to click the favicon (<i>Site Identification</i> icon) on the left side of the location bar.
    *A click on the "More Information" button will open the Security tab of the "Page Info" window (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of that "Tools > Page Info" window.
    *Select the first image link and scroll down though the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    *You can see the permissions for the domain in the current tab in Tools > Page Info > Permissions
    *You can see all image exceptions in Tools > Options > Content: Load Images > Exceptions

  • Theme Designer - source image location

    Hi,
         I'm working on a NW740 upgrade project, and have run into what is probably a theme designer 101 problem with creating a user theme based on the sap_goldreflection theme for ABAP WD. Previously when I've worked on portal theming I have been able to use the SAP standard images by accessing the theme download zip file, in NW740 theme designer the images used must be on the NW740 server, but how do I access them?
         Another issue I have is identifying the relevant CSS parameter ID for changing in the expert tab. I have completed about 80% of the changes that are required, but have some changes to make where the parameter isn't obvious. Is there any freeware available to give the CSS Parameter for an element under the pointer? (it would be nice if this was in-built in the theme designer, or am I missing something obvious)
    Thanks      

    Hi Samuli,
    Thanks for your reply, not sure if I'm missing something that's really simple. Importing a new image into the theme designer is easy. But if  I want to change the colour of say the radio buttons, because the standard colours go against corporate branding, in the past I would have gone to the image in the Portal theme export .zip files, change the colours and then import this updated image. I want to keep the same shape and size of image as the remaining unchanged radio buttons, I'm from an ABAP/functional/portal admin background rather than a graphics background, so looking to not have to design the images from scratch.

  • Rendering images based on BLOB columns

    Hello
    I'm using JDevelpor 10G ..
    I want to render image from BLOB column , and its the first time working with servlet , I read this article
    http://www.pascalalma.net/2008/04/22/oracle-adf-medior-rendering-images-based-on-blob-columns/
    and I want to ask some questions ??
    - How can I check that the servlet is run .. I use this to call the servlet "" Do not laugh .. I am really new "
    <af:objectImage source="/render_image?img_id=#{row.ImageId}"/>
    You should read the article to understand my question
    rgds

    done , my problem was with mapping
    If you have any problem with this case I can help
    contact me
    [email protected]

  • Create Xcursor Theme with SVG Images?

    Is it possible to create an xcursor theme with SVG images instead of PNG images?
    An unproductive Google search is making me guess that the answer is "No." Also, I've downloaded a few from the AUR, and none of them use SVG images (unless they're being used as examples). Does anyone know if this is possible?

    view > edit slide master
    delete all the slide masters except the master you want to use
    File > Save Theme and add to theme chooser
    select the default theme when opening Keynote:    Keynote preferences > General > For new documents; select use theme > change theme

  • Updated to LR 5.4, images now importing extremely slow. After importing and rendering images are still very slow to go through and develop. No issues in LR 5.3 which was very fast.

    After importing and rendering images are still very slow to go through and develop. No issues in LR 5.3 which was very fast. Canon,Nikon, Leica and Fuji files all rendering slow. iMac 2.9 ghz 16gb RAM OSX 10.8.5. Catalogs and images are kept on external drives. Drives running fine. Really need a fix on this since I'm norally imported and processing at least 4,000 images per LR Catalog. Is there way to revert back to 5.3? I can't use 5.4 is its current state. Thanks.

    Download LR 5.3 and install it
    By the way, lots of people have this complaint about LR 5.4, and the advice I give is to use LR 5.3 unless you need one of the new camera models supported by LR 5.4

  • How to open a GeoRaster Theme on Mapviewer?

    Hello,
    I would like to open a Georaster theme on DEMO map. I'm using MVDEMO datasource, so all settings are set to default values.
    In MapBuilder, "Themes > GeoRaster Themes > WORLD_RASTER" is defined as demo data and I can preview it too.
    The XML is like below,
    <?xml version="1.0" standalone="yes"?>
    <styling_rules theme_type="georaster" raster_id="1" raster_table="RDT_WORLD_RASTER">
    </styling_rules>
    I have tried to open this Raster Theme like standart Geometry theme and also as JDBC theme , but it didnt work.
    So, I need your assistance to open GeoRaster theme on the map.
    Thanks,
    MK

    Hi,
    Thanks for your help but I do not want to create a basemap, isnt it possible to make a theme with GeoRaster data?
    I want to show the GeoRaster theme on my basemap as theme.
    Thanks,
    MK

  • Treat JPEG files next to raw files as seperate files still imports and displays them as seperate images

    Hi, I am taking RAW + JPEG files on a Nikon D810. The RAW files are saving to a CF (primary slot) and JPEGs to an Eye-Fi card (secondry slot). When I am importing into Lightroom 5 directly from the camera, even though I have 'Treat JPEG files next to raw files as seperate files' UNchecked in preferences, it still imports and displays them as seperate images. I am trying to import the JPEG as a sidecar file only to the RAW file as I have read about but this is not happening, any ideas why? Thanks

    Well in Lightroom they are apart from each other before the actual import, all the JPGs list first then all the NEF files next. The same actual photo as the NEF or as the JPEG both have the same file name apart from the .JPG or .NEF so that is not the problem. The NEFs go to the CF card and the JPGs go to the EyeFi SD card, I think you are onto the issue but I'm not sure what I need to do to fix it. I guess I need to change a setting on the D810 itself. There really doesn't seem to be any other settings apart from the RAW + JPEG vs only one or the other and allocating which card is primary for the RAWs and which card is secondry for the JPEGs. I really need the JPEGs to go to the EyeFi SD (secondary) for live iPad image viewing and not to the same primary card (CF) as the NEFs (RAWs) go. This does seem to be a typical setup so I would think it has been encountered before.
    Thanks for your help any other advise is appreciated.

Maybe you are looking for

  • My apple tv just blew up!  What is with that?

    I was changing radio stations on my Apple TV using the regular Apple TV remote when I heard a pop and parts of the Apple TV were falling off the shelf!  What happened and why?  Will Apple replace it or do I have to buy a new one?  I believe it is pas

  • Acrobat Professional Runtime Error, Citrix Environment

    Hello, A user receives the following error: Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe This application has requested the Runtime to terminate it in an unusual way. Please conta

  • Which is the best Method for Restoring a Backup in a Secured manner?

    Dear Legends, I got a requirement/scenario to restore a backup of Oracle 11gR2 database. Imagine that I'm not aware of the database files and how the backup was taken by someone else. Now I would like to restore it, let me know how and securely the b

  • BANK CHAIN for a Vendor

    Hi All, Can some one explain me the BANK CHAIN process for a Vendor Master Record?? This is kind of Emergency.

  • Corel Graphics Suite features not found in Photoshop/Illustrator?

    I only recently started using Photoshop, mostly because I couldn't afford it, and for years I have been using Corel Graphics Suite (Draw & Photo Paint) for all my editing. Now, through school, I am learning my way through Illustrator and Photoshop, h