Exception trying to addTarget to DeploymentMBean

Hi -
I am trying to programatically create a JMSConnectionFactoryMBean in WL
6.0 GA.
I have been able to do this, with help from Dimitri. However, I am
running into a problem when trying to add a target for this MBean to
actually deploy it programatically.
Here is the exception I am getting:
javax.management.InvalidAttributeValueException: argument
examples:Name=examplesServer,Location=examplesServer,Type=ServerConfig
invalid for ADMIN MBean examples:Name=TestCF1,Type=JMSConnectionFactory
<<no stack trace available>>
Here is the code:
... get the mbeanHome ...
// get information about existing MBeans
Set connectionFactorySet = mbeanHome.getMBeansByClass
(JMSConnectionFactoryMBean.class);
Iterator cfIterator = connectionFactorySet.iterator();
TargetMBean [] targets = null;
// get the targets from an existing MBean
if (cfIterator.hasNext ())
Object cf = cfIterator.next ();
if (cf instanceof JMSConnectionFactoryMBean)
JMSConnectionFactoryMBean mBean = (JMSConnectionFactoryMBean) cf;
targets = mBean.getTargets ();
Object cfMBean =
mbeanHome.createAdminMBean
("TestCF1", "JMSConnectionFactory");
if (cfMBean instanceof ConfigurationMBean)
JMSConnectionFactoryMBean theJMS = (JMSConnectionFactoryMBean)
cfMBean;
theJMS.setName ("TestCF1");
theJMS.setJNDIName ("TestCF1JNDI");
// add the targets to the new MBean
for (int count = 0; count < targets.length; count++)
try
theJMS.addTarget (targets[count]);
} catch (Exception e2) {
// ********************** THIS IS WHERE THE EXCEPTION OCCURS
e2.printStackTrace();
It seems as though this should work, since I am adding a target which
I received from a valid server context. Does anyone have any ideas?
Thanks in advance.
Peter

Sanjeev -
Yes! This does work. Thanks very much for your help.
Peter
Sanjeev Chopra wrote:
>
Peter,
First, pls see my post today on MBean Types and Naming. (it defines Config
v/s Admin v/s Runtime mbeans)
The problem here is that you are trying to assign a Config mbean as a Target
to a Admin mbean deployment.
Solution:
1. If you know the name of the servers you need to deploy to, just get the
corresponding Admin MBeans and use those as targets ...
e.g. mbeanHome.getMbean("myserver","Server", "mydomain");
2. If you don't know which servers exist, or you want to deploy to, you can
get the server names from the target list you obtained...
e.g. targets.getName() (instead of "myserver" above)
Hope this helps.
Peter Mularien <[email protected]> wrote in message
news:[email protected]...
Hi -
I am trying to programatically create a JMSConnectionFactoryMBean in WL
6.0 GA.
I have been able to do this, with help from Dimitri. However, I am
running into a problem when trying to add a target for this MBean to
actually deploy it programatically.
Here is the exception I am getting:
javax.management.InvalidAttributeValueException: argument
examples:Name=examplesServer,Location=examplesServer,Type=ServerConfig
invalid for ADMIN MBean examples:Name=TestCF1,Type=JMSConnectionFactory
<<no stack trace available>>
Here is the code:
... get the mbeanHome ...
// get information about existing MBeans
Set connectionFactorySet = mbeanHome.getMBeansByClass
(JMSConnectionFactoryMBean.class);
Iterator cfIterator = connectionFactorySet.iterator();
TargetMBean [] targets = null;
// get the targets from an existing MBean
if (cfIterator.hasNext ())
Object cf = cfIterator.next ();
if (cf instanceof JMSConnectionFactoryMBean)
JMSConnectionFactoryMBean mBean = (JMSConnectionFactoryMBean) cf;
targets = mBean.getTargets ();
Object cfMBean =
mbeanHome.createAdminMBean
("TestCF1", "JMSConnectionFactory");
if (cfMBean instanceof ConfigurationMBean)
JMSConnectionFactoryMBean theJMS = (JMSConnectionFactoryMBean)
cfMBean;
theJMS.setName ("TestCF1");
theJMS.setJNDIName ("TestCF1JNDI");
// add the targets to the new MBean
for (int count = 0; count < targets.length; count++)
try
theJMS.addTarget (targets[count]);
} catch (Exception e2) {
// ********************** THIS IS WHERE THE EXCEPTION OCCURS
e2.printStackTrace();
It seems as though this should work, since I am adding a target which
I received from a valid server context. Does anyone have any ideas?
Thanks in advance.
Peter

Similar Messages

  • Overflow Exception trying to bind NaN

    Hello,
    Can somebody help me? I'm just trying to use MapViewer to see the results of a spatial query on an predifined Image Theme. I've done all that's explained in the MapViwer documentation but it seems to be a problem with the Image Theme. Here is the part of the log file where the error appears:
    05/10/26 16:12:41 [oracle.sdovis.ImageTheme, Wed Oct 26 16:12:41 CEST 2005, FINEST] [ImageTheme p] query=SELECT ROWID, raster
    FROM Base_map WHERE MDSYS.SDO_FILTER(raster, MDSYS.SDO_GEOMETRY(2003, 327680, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
    05/10/26 16:12:41 [oracle.sdovis.ImageTheme, Wed Oct 26 16:12:41 CEST 2005, ERROR] java.sql.SQLException: Overflow Exception trying to bind NaN
    at oracle.jdbc.driver.DoubleBinder.bind(OraclePreparedStatement.java:13793)
    at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:2871)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2156)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3334)
    at oracle.sdovis.ImageTheme.loadImagesFromDBCached(ImageTheme.java:390)
    at oracle.sdovis.ImageTheme.prepareData(ImageTheme.java:281)
    at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1300)
    05/10/26 16:12:41 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:12:41 CEST 2005, DEBUG] LoadThemeData running thread: Thread-9
    Thanks for your help.

    Here is the sql file I use (with the fefinition of the predefined image theme):
    DROP TABLE Base_map CASCADE CONSTRAINTS ;
    commit ;
    CREATE TABLE Base_map (
         Base_map_ID NUMBER(15) NOT NULL,
         Image BLOB
    commit ;
    ALTER TABLE Base_map ADD CONSTRAINT PK_Base_map
    PRIMARY KEY (Base_map_ID) ;
    commit ;
    CREATE OR REPLACE DIRECTORY MYDIR as 'c:\Temp\Data' ;
    commit ;
    DECLARE
         l_blob BLOB ;
         l_bfile BFILE ;
    BEGIN
         INSERT INTO Base_map VALUES(1, empty_blob())
         RETURNING Image INTO l_blob ;
         l_bfile := bfilename('MYDIR', 'Base_map.jpg') ;
         dbms_lob.fileopen(l_bfile) ;
         dbms_lob.loadfromfile(l_blob, l_bfile, dbms_lob.getlength(l_bfile)) ;
         dbms_lob.fileclose(l_bfile) ;
         UPDATE Base_map SET Image = l_blob WHERE Base_map_ID = 1 ;
    END ;
    commit ;
    ALTER TABLE Base_map
    ADD (raster MDSYS.SDO_GEOMETRY) ;
    UPDATE Base_map
    SET raster = MDSYS.SDO_GEOMETRY(2003, 327680, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1), MDSYS.SDO_ORDINATE_ARRAY(950,16249.500015000056,305950.06099999999,266250.000015))
    WHERE Base_map_ID = 1 ;
    INSERT INTO USER_SDO_GEOM_METADATA VALUES (
    'Base_map',
    'raster',
    MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X', 950, 305950.06099999999, 0.001), MDSYS.SDO_DIM_ELEMENT('Y', 16249.500015000056, 266250.000015, 0.001)),
    327680) ;
    commit ;
    CREATE INDEX Base_map_raster_index
    ON Base_map(raster)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX ;
    commit ;
    INSERT INTO USER_SDO_THEMES VALUES (
    'BASE_MAP_THEME',
    'Base_map_theme',
    'Base_map',
    'raster',
    '<?xml version="1.0" standalone="yes"?>
         <styling_rules theme_type="image" caching="ALL" image_column="Image" image_format="JPEG">
              <rule >
                   <features style="C.BCK"/>
              </rule>
         </styling_rules>' );
    commit ;
    INSERT INTO USER_SDO_MAPS VALUES (
    'BASE_MAP',
    'Base_map',
    '<?xml version="1.0" standalone="yes"?>
         <map_definition>
              <theme name="BASE_MAP_THEME"/>
         </map_definition>' );
    commit ;
    And here is the complete log file:
    05/10/26 16:11:46 [oracle.lbs.mapserver.oms, INFO] oms servlet document-root path: C:\oracle\product\10.2.0\db_1\lbs\mapviewer\web\
    05/10/26 16:11:46 [oracle.lbs.mapserver.oms, INFO] No init parameter "oms_config". Will use default.
    05/10/26 16:11:46 Oracle Application Server Containers for J2EE 10g (9.0.4.1.0) initialized
    05/10/26 16:11:46 [oracle.lbs.mapserver.core.MapperConfig, INFO] using default config file: C:\oracle\product\10.2.0\db_1\lbs\mapviewer\conf\mapViewerConfig.xml
    05/10/26 16:11:46 [oracle.lbs.mapserver.core.MapperPool, WARN] destroying ALL mapmaker instances.
    05/10/26 16:11:46 [oracle.lbs.mapserver.core.MapperConfig, INFO] setting logging level to finest
    05/10/26 16:11:46 [oracle.lbs.mapserver.core.MapperConfig, Wed Oct 26 16:11:46 CEST 2005, FINEST]
    Allowed IPs:
    Excluded IPs:
    05/10/26 16:11:48 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:11:48 CEST 2005, FINEST] setting style table name to: ALL_SDO_STYLES
    05/10/26 16:11:49 [oracle.sdovis.CacheMgr, Wed Oct 26 16:11:49 CEST 2005, INFO] Setting disk path for cache to: C:\oracle\product\10.2.0\db_1\lbs\mapviewer\cache
    05/10/26 16:11:49 [oracle.sdovis.CacheMgr, Wed Oct 26 16:11:49 CEST 2005, INFO] Java Object Cache opened. Region=SDOVIS_DATA.
    05/10/26 16:11:49 [oracle.sdovis.CacheMgr, Wed Oct 26 16:11:49 CEST 2005, INFO] max_cache_size=32 M, max_disk_cache_size=1024 M.
    05/10/26 16:11:49 [oracle.sdovis.CacheMgr, Wed Oct 26 16:11:49 CEST 2005, INFO] sub region sdovis_subreg_damien_jdbc:oracle:thin:@DGPL_8143:1521:INFRA created in cache.
    05/10/26 16:11:49 [oracle.lbs.mapserver.core.MapperPool, Wed Oct 26 16:11:49 CEST 2005, INFO] added a mapper instance to thepool [data src=INFRA_map_data_source]
    05/10/26 16:11:49 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:11:49 CEST 2005, FINEST] setting style table name to: ALL_SDO_STYLES
    05/10/26 16:11:49 [oracle.lbs.mapserver.core.MapperPool, Wed Oct 26 16:11:49 CEST 2005, INFO] added a mapper instance to thepool [data src=INFRA_map_data_source]
    05/10/26 16:11:50 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:11:50 CEST 2005, FINEST] setting style table name to: ALL_SDO_STYLES
    05/10/26 16:11:50 [oracle.lbs.mapserver.core.MapperPool, Wed Oct 26 16:11:50 CEST 2005, INFO] added a mapper instance to thepool [data src=INFRA_map_data_source]
    05/10/26 16:11:50 [oracle.lbs.mapserver.core.MapperConfig, Wed Oct 26 16:11:50 CEST 2005, INFO] Map Recycling thread started.
    05/10/26 16:11:50 [oracle.lbs.mapserver.oms, Wed Oct 26 16:11:50 CEST 2005, INFO] *** Oracle Map Viewer is successfully started. ***
    05/10/26 16:12:38 [oracle.lbs.mapserver.oms, Wed Oct 26 16:12:38 CEST 2005, FINEST] request.getRemoteUser = null
    05/10/26 16:12:38 [oracle.lbs.mapserver.oms, Wed Oct 26 16:12:38 CEST 2005, FINEST] request= <?xml version="1.0" encoding="UTF-8" ?>
    <map_request datasource="INFRA_map_data_source" basemap="BASE_MAP" antialiasing="TRUE" imagescaling="FALSE" format="GIF_STREAM" bgcolor="#FFFFFF" >
    <themes>
    <theme name="t1">
    <jdbc_query spatial_column ="shape" >
    SELECT shape
    FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
    WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
    AND REL_Site_Adr.Site_ID = Site.Site_ID
    AND Site.Site_ID = Infrastructure.Site_ID
    AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
    AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
    AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
    AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
    AND Discipline.Denomination = 'golf'
    </jdbc_query>
    </theme>
    </themes >
    </map_request>
    05/10/26 16:12:38 [oracle.lbs.mapserver.core.XMLHelper4Mapper, Wed Oct 26 16:12:38 CEST 2005, INFO] no center or box specified in map request.
    05/10/26 16:12:38 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:38 CEST 2005, FINEST] RealWorker.generateMapImage(): MapRequest=MapRequest=
    title=null
    center=null
    size=0.0
    verbose=true
    queryWindow=null
    imageFormat=7
    backgroundColor=java.awt.Color[r=255,g=255,b=255]
    bgImageURL=null
    antialise=true
    deviceSize=java.awt.Dimension[width=500,height=375]
    srs=null
    geoFeatures=null
    mapDefinition= MapDefinition=
    baseMap=BASE_MAP
    mapDataSource=INFRA_map_data_source
    title=null
    theme [0]=
    ThemeDescriptor=
    name=t1
    type=2
    minScale=Infinity
    maxScale=-Infinity
    srid=0
    host=
    sid=
    port=
    user=
    mode=oci8
    query=SELECT shape
    FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
    WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
    AND REL_Site_Adr.Site_ID = Site.Site_ID
    AND Site.Site_ID = Infrastructure.Site_ID
    AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
    AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
    AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
    AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
    AND Discipline.Denomination = 'golf'
    spatialColumn=shape
    renderStyleName=
    labelColumn=
    labelStyleName=
    renderStyleDef=null
    labelStyleDef=null
    localThem=null
    05/10/26 16:12:38 [oracle.lbs.mapserver.core.MapperPool, Wed Oct 26 16:12:38 CEST 2005, DEBUG] getMapper(INFRA_map_data_source) begins...
    05/10/26 16:12:38 [oracle.lbs.mapserver.core.MapperPool, Wed Oct 26 16:12:38 CEST 2005, DEBUG] getMapper() succeeded.
    05/10/26 16:12:39 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:12:39 CEST 2005, FINEST] adding predefined theme [name=BASE_MAP_THEME]
    05/10/26 16:12:39 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:12:39 CEST 2005, FINEST] retriving predefined theme from database.
    05/10/26 16:12:40 [oracle.sdovis.ThemeTable, Wed Oct 26 16:12:40 CEST 2005, FINEST] key_column using default: ROWID
    05/10/26 16:12:40 [oracle.sdovis.ThemeTable, Wed Oct 26 16:12:40 CEST 2005, FINEST] Loading image theme BASE_MAP_THEME[image_column is: Image] [image_resolution is: null].
    05/10/26 16:12:40 [oracle.sdovis.CacheMgr, Wed Oct 26 16:12:40 CEST 2005, INFO] creating an image cache group: sdovis_subreg_damien_jdbc:oracle:thin:@DGPL_8143:1521:INFRA : Base_map_IMAGE_PDT_IMG.
    05/10/26 16:12:40 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:40 CEST 2005, FINEST] adding additional themes...
    05/10/26 16:12:40 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:40 CEST 2005, FINEST] adding a JDBCTheme:
    ThemeDescriptor=
    name=t1
    type=2
    minScale=Infinity
    maxScale=-Infinity
    srid=0
    host=
    sid=
    port=
    user=
    mode=oci8
    query=SELECT shape
    FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
    WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
    AND REL_Site_Adr.Site_ID = Site.Site_ID
    AND Site.Site_ID = Infrastructure.Site_ID
    AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
    AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
    AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
    AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
    AND Discipline.Denomination = 'golf'
    spatialColumn=shape
    renderStyleName=
    labelColumn=
    labelStyleName=
    renderStyleDef=null
    labelStyleDef=null
    localThem=null
    05/10/26 16:12:40 [oracle.lbs.mapserver.core.ConnectionManager, Wed Oct 26 16:12:40 CEST 2005, DEBUG] getting pooled connection [key=DGPL_8143_INFRA_1521_damien_thin]
    05/10/26 16:12:40 [oracle.lbs.mapserver.core.ConnectionManager, Wed Oct 26 16:12:40 CEST 2005, INFO] connection cache on jdbc:oracle:thin:@DGPL_8143:1521:INFRA
    05/10/26 16:12:40 [oracle.lbs.mapserver.core.ConnectionManager, Wed Oct 26 16:12:40 CEST 2005, INFO] adding a OracleConnectionCache:DGPL_8143,INFRA,thin,tcp,damien
    05/10/26 16:12:41 [oracle.sdovis.JDBCTheme, Wed Oct 26 16:12:41 CEST 2005, FINEST] created a new JDBCTheme [name=T1,query=SELECT shape
    FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
    WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
    AND REL_Site_Adr.Site_ID = Site.Site_ID
    AND Site.Site_ID = Infrastructure.Site_ID
    AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
    AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
    AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
    AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
    AND Discipline.Denomination = 'golf',spatialCol=shape, srid=0, featureStyleName=, labelCol=, labelStyleName=, passthrough=false
    05/10/26 16:12:41 [oracle.sdovis.SRS, Wed Oct 26 16:12:41 CEST 2005, INFO] loadding SRS information from MDSYS.cs_srs (srid=327680).
    05/10/26 16:12:41 [oracle.sdovis.SRS, Wed Oct 26 16:12:41 CEST 2005, DEBUG] Registering srs 327680, isGeodetic=false, unit=METER
    05/10/26 16:12:41 [oracle.sdovis.SRS, Wed Oct 26 16:12:41 CEST 2005, FINEST] got srs object for :327680
    05/10/26 16:12:41 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:12:41 CEST 2005, DEBUG] LoadThemeData running thread: Thread-8
    05/10/26 16:12:41 [oracle.sdovis.ImageTheme, Wed Oct 26 16:12:41 CEST 2005, FINEST] [ImageTheme p] query=SELECT ROWID, raster
    FROM Base_map WHERE MDSYS.SDO_FILTER(raster, MDSYS.SDO_GEOMETRY(2003, 327680, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
    05/10/26 16:12:41 [oracle.sdovis.ImageTheme, Wed Oct 26 16:12:41 CEST 2005, ERROR] java.sql.SQLException: Overflow Exception trying to bind NaN
    at oracle.jdbc.driver.DoubleBinder.bind(OraclePreparedStatement.java:13793)
    at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:2871)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2156)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3334)
    at oracle.sdovis.ImageTheme.loadImagesFromDBCached(ImageTheme.java:390)
    at oracle.sdovis.ImageTheme.prepareData(ImageTheme.java:281)
    at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1300)
    05/10/26 16:12:41 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:12:41 CEST 2005, DEBUG] LoadThemeData running thread: Thread-9
    05/10/26 16:12:41 [oracle.sdovis.JDBCTheme, Wed Oct 26 16:12:41 CEST 2005, INFO] [JDBCTheme] query: SELECT shape
    FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
    WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
    AND REL_Site_Adr.Site_ID = Site.Site_ID
    AND Site.Site_ID = Infrastructure.Site_ID
    AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
    AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
    AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
    AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
    AND Discipline.Denomination = 'golf'
    05/10/26 16:12:42 [oracle.sdovis.JDBCTheme, Wed Oct 26 16:12:42 CEST 2005, FINEST] Found mSpatialColumn=shape
    05/10/26 16:12:42 [oracle.sdovis.MapMaker, Wed Oct 26 16:12:42 CEST 2005, FINEST] mbr of all themes: java.awt.geom.Rectangle2D$Double[x=63253.07695,y=112510.49285,w=209918.47070249997,h=51353.527207499996]
    05/10/26 16:12:42 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:12:42 CEST 2005, INFO] **** time spent on loading features: 859ms.
    05/10/26 16:12:42 [oracle.sdovis.RE, Wed Oct 26 16:12:42 CEST 2005, FINEST] rendering image theme: BASE_MAP_THEME
    05/10/26 16:12:42 [oracle.sdovis.ImageRenderer, Wed Oct 26 16:12:42 CEST 2005, DEBUG] format of image theme data: JPEG
    05/10/26 16:12:42 [oracle.sdovis.VectorRenderer, Wed Oct 26 16:12:42 CEST 2005, FINEST] Theme isClickable=false
    05/10/26 16:12:43 [oracle.sdovis.VectorRenderer, Wed Oct 26 16:12:43 CEST 2005, DEBUG] time to render theme T1 with 55 styled features: 1187ms
    05/10/26 16:12:43 [oracle.sdovis.VectorRenderer, Wed Oct 26 16:12:43 CEST 2005, DEBUG] time to label theme T1 with 55 styled features: 0ms
    05/10/26 16:12:43 [oracle.sdovis.DBMapMaker, Wed Oct 26 16:12:43 CEST 2005, INFO] **** time spent on rendering: 1406ms
    05/10/26 16:12:43 [oracle.sdovis.util.GIFMaker, Wed Oct 26 16:12:43 CEST 2005, FINEST] Time spent on quantitizing map image:203ms
    05/10/26 16:12:43 [oracle.sdovis.util.GIFMaker, Wed Oct 26 16:12:43 CEST 2005, FINEST] Time spent on generating GIF image:63ms
    05/10/26 16:12:43 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:43 CEST 2005, FINEST] Timestamp on grabing pixels:1130335963890
    05/10/26 16:12:43 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:43 CEST 2005, FINEST] releasing pooled connectionsused by JDBCThemes
    05/10/26 16:12:43 [oracle.lbs.mapserver.core.MapperPool, Wed Oct 26 16:12:43 CEST 2005, DEBUG] freeMapper() begins...
    05/10/26 16:12:43 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:43 CEST 2005, DEBUG] [RealWorker] preparation time: 2593ms
    05/10/26 16:12:43 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:43 CEST 2005, DEBUG] [RealWorker] querying/rendering time: 2500ms
    05/10/26 16:12:43 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:43 CEST 2005, DEBUG] [RealWorker] packing time: 313ms
    05/10/26 16:12:43 [oracle.lbs.mapserver.core.RealWorker, Wed Oct 26 16:12:43 CEST 2005, DEBUG] [RealWorker] --------------- total time: 5406ms
    ***********************************************************************************************

  • JNDI naming exception: Naming exception trying to connect to:help !!!!!!!!!

    Hi,
    Iam getting this exception and i have no clue what is this exception means.....and how to resolve this Naming Exceptions problem.
    what iam doing is.....Iam trying to deploy a war file from my unix system to a win2000 machine(amasdqyt095).
    This is where and how my script(myscript.sh) looks like:
    java -classpath /xyz/bea/wlserver6.1/lib/weblogic.jar weblogic.deploy -port 7001 -host amasdqyt095 -component myWebApp:myserver update weblogic myWebApp /export/home/applications/xyz.war
    i have created this script at: /xyz/bea/wlserver6.1/config/scripts/myscript.sh
    then i did chmod +x myscript.sh
    and the i did:
    ./myscript.sh
    and then iam getting this exception:
    JNDI naming exception: Naming exception trying to connect to: t3://amasdqyt095:7001 as: system: weblogic
    please help ????
    -sangita

    I had the same problem because the weblogic.jar's version in the server was diferent from my machine (SP2 and SP4). I stops when I updated the server to SP4.
    But now I'm having the same problem in another server, and the versions are ok. If anybody knows something else, please let me know.
    I'm using Weblogic 6.1
    []s
    Leonardo

  • Printer works on every program except trying to print anything from Firefox. Blank pages everytime.

    Using Windows XPproffesional & current Firefox 4.0.1. Printer works on every program except anything from Firefox,.blank page every time. When I hit File>Print; the "Print Frames" section in lower left hand box has no options checked and is unaccessible. Printing works fine in Explorer.

    edmeister; thanks for trying to help. I reset the printer per the instructions you provided and also checked that I wasn't printing to file. Even unistalled Firefox, and installed 3.6; same thing happened. So, I uninstalled 3.6 and reinstalled 4.0; still having same problem. But, can still print in IExplorer?

  • Exception trying to start the JRE Control Panel

    I've run into some persistent problem with seemingly any version of the JRE on my WinXP system. Whenever I try to start the control panel, either from the Windows Control Panel UI, or from the Java system tray icon, I get an exception error:
    java.lang.ArrayIndexOutOfBoundsException: 365
         at com.sun.deploy.panel.UpdatePanel.setText(Unknown Source)
         at com.sun.deploy.panel.UpdatePanel.actionPerformed(Unknown Source)
         at javax.swing.JComboBox.fireActionEvent(Unknown Source)
         at javax.swing.JComboBox.setSelectedItem(Unknown Source)
         at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
         at com.sun.deploy.panel.UpdatePanel.reset(Unknown Source)
         at com.sun.deploy.panel.UpdatePanel.<init>(Unknown Source)
         at com.sun.deploy.panel.ControlPanel.initComponents(Unknown Source)
         at com.sun.deploy.panel.ControlPanel.<init>(Unknown Source)
         at com.sun.deploy.panel.ControlPanel.main(Unknown Source)
    This is what happens on the first attempt after the OS has booted, and subsequent attempts just result in nothing obvious happening (no control panel, no error, nothing).
    I currently have JRE 1.6.0_07-b06 installed, but this seems to be happening with any JRE version I try. I had remnants of older JRE's under C:\Program Files\java, and I went through ensuring that each was removed (if I could get rid of it via Add/Remove Applications, I used that) until I was down to zero other than the MS JVM that is inherently part of Windows. I then installed the current Sun JRE and still have the problem. :-\ So not sure what it is the JRE control panel is trying to do here, nor how to fix it other than reinstalling the OS (and I'm not that desperate, but it really is annoying).
    I figure it's probably something still hanging around in the Registry (<shudder!>) and poking around under HKLM\SOFTWARE\JavaSoft, I see keys for various old versions under the \Java Plug-in, \Java Runtime Environment, and \Java Web Start keys, most of which look like references to directories or files which no longer exist on the system. Any thoughts as to whether I can just safely delete these keys as a sanity check (jeez I wish Sun had steered clear of the Registry)? What I'm wondering is since the JRE control panel (when it works :-) shows you a list of installed JREs it found, I'm wondering if these bogus versions listed in the Registry are causing the ArrayIndexOutOfBoundsException.
    Any ideas are greatly appreciated. Thanks in advance!

    start JRE control panel

  • Type problem - Class Cast Exception - trying to understand

    hello,
    i get a Class cast exception in the following code.
    interface Foo {}
    class Alpha implements Foo {}
    class Beta extends Alpha {}
    class Delta extends Beta {
    public static void main( String[] args ) {
    Beta x = new Beta();
    Beta b = (Beta)(Alpha)x; //fine
    Foo f = (Delta)x; //CCE
    Object ob = new Object();
    String s = new String();
    ob = s; //fine, no need of case
    s = (String)ob; //needs a castI was just thinking, implicitly Delta and Beta both of them IS-A Foo, and assigning x to a type foo shouldnt be a problem(while making it refer to the Delta class) so, what could cause the CCE ?
    I would appreciate if someone could please help me understand this.
    Rgds

    Hi.
    Assigning your "x" to a variable typed Foo is not a problem. The problem is that you are trying to cast an instance of Beta ("x") into type Delta which is not possible. Every Delta is a Beta, but not every Beta will be a Delta!
    Simple as that.
    Bye.

  • "Invalid byte 1 of 1-byte UTF-8 sequence" exception trying to display image

    Hi there!
    Last night I updated my project to open the <wellcome-file>. So I put this in my web.xml file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        id="WebApp_ID"
        version="2.5">
    <context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.jspx</param-value>
    </context-param>
    <welcome-file-list>
        <welcome-file>faces/login.jspx</welcome-file>
    </welcome-file-list>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    [...]Now when I type http://localhost:8080/myproject the login.jspx is opened as expected.
    But after this change, exceptions started to shown when images from my template.jspx is loaded (?).
    Here's a piece of my template.jspx:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <jsp:root
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:r="http://richfaces.org/rich"
         xmlns:a4j="http://richfaces.org/a4j"
         version="2.0">
    <f:facet name="controls">
         <h:panelGroup>
              <h:graphicImage
                   value="../imagens/erro.png"
                   id="hidelink" />
         </h:panelGroup>
    </f:facet>
    [...]And here is the exception:
    SEVERE: Error Rendering View[/imagens/erro.png]
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
         at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    [...]And, of course, the image is not displayed.
    The images from pages that uses template.jspx works fine (even the same image that causes the exception).
    Only images from my template.jspx and pages that I use with <ui:include> throws the exception.
    My directory structure:
    web
    |___templates
    |___imagens
    |___pages
    login.jspxI tried with ISO-8859-1 and UTF-8 as encoding and the problem is the same.
    I need some help. Any help.
    If any more info is needed, please just ask me.
    Thank you in advace!
    I'm using:
    JSF 1.2; Facelets 1.1.14; Richfaces 3.3; Tomcat 6, Java 6
    Yoshimit

    I got the same error. It was because my application's .java files were saved as UTF-8 but the .xhtml files were saved as cp1255 encoding. I have also added a filter to set the charset to each response like described [here |http://www.coderanch.com/t/211549/JSF/java/JSF-Character-Sets-UTF-mainly] .
    PS: I had another error after that which was caused by copying the Richfaces xmlns definitions from a PDf provided by Refcardz. The " symbol turend to something that the SAX parser could not process.
    Hope this helps.
    Pavel Myshkin

  • Exception trying to connect via ConnectionPool

    Hello, i'm trying to connect to an Oracle Database through the ConnectionPool and PooledConnection objects but i get an Exception with the following message:
    org.apache.tomcat.dbcp.dbcp.BasicDataSource
    There's nothing more in the message. What does it mean? I don't use BasicDataSource, but ConnectionPoolDataSource
    Thank you

    I dont think you have configured the dbcp pool of tomcat properly. Kindly post the xml and the code used to fetch the connection.

  • Exception trying to create InitialContext

    I am using the following code for trying to post a message to JMS queue using JDeveloper 11.1.1.5. Sometimes i get exception at the step of creating InitialContext.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL,"t3://xxxx:yyyy");
    env.put(Context.SECURITY_PRINCIPAL,"username");
    env.put(Context.SECURITY_CREDENTIALS,"password");
    Context jndiContext = null;
    try {
    jndiContext = new InitialContext(env);
    } catch (NamingException e) {
    System.out.println("Could not create JNDI API context: " +
    e.toString());
    System.exit(1);
    When i run the above code i get the following exception(seen in log window)
    Could not create JNDI API context: javax.naming.CommunicationException [Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed for an unknown reason: ]
    When i checked the request and response using http analyzer the response is as follows.
    JDeveloper HTTP Analyzer encountered an error retrieving:
    CONNECT https://140.84.233.133:8001 HTTP/1.0
    An exception occurred while retrieving the response for https://140.84.233.133:8001.
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1293)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:65)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:50)
         at oracle.jdevimpl.webservices.tcpmonitor.model.HttpMessageBase.readLine(HttpMessageBase.java:658)
         at oracle.jdevimpl.webservices.tcpmonitor.model.HttpRequest.read(HttpRequest.java:327)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.getResponse(ConnectionHandler.java:405)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.run(ConnectionHandler.java:331)
    Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:1916)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.negotiateSSL(ConnectionHandler.java:707)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.negotiateForwardedSSLConnection(ConnectionHandler.java:672)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.run(ConnectionHandler.java:311)
    I have included weblogic.jar,wlclient.jar files in project libraries. The server is up and its listening port is running fine. Should i make any changes to my project settings?
    Any help is greatly appreciated.
    Thanks
    Sai Ram
    Edited by: 902262 on Mar 20, 2012 9:28 PM
    Edited by: 902262 on Mar 20, 2012 9:45 PM
    Edited by: 902262 on Mar 28, 2012 1:59 AM

    The explanation is probably that the weblogic.jar and wlclient.jar are not meant to be compatible. For a description of different client options, see [WebLogic Server Client Types and Features|http://docs.oracle.com/cd/E17904_01/web.1111/e13717/basics.htm#SACLT126]. I highly recommend using the "thin t3 client" option for most use cases.
    HTH,
    Tom

  • HsqlDB throws exception-- trying to alter the columns from unique- primary

    Hi,
    I am trying to migrate my old DB Schema to a new DB schema and the underlying database is HsqlDB. One of the tables has two of its columns described as UNIQUE in the older schema, whereas they were made PRIMARY in the new schema. I went through the documentation provided by HSQL (http://www.hsqldb.org/doc/guide/ch09.html) and tried to execute the following query to alter the columns:
    stmt.execute("Alter Table user_type_table add primary key (user_type_name,attribute_name)");
    Somehow I get the following exception when I tried to do this:
    java.sql.SQLException: Wrong data type: KEY in statement [Alter Table user_type_table add primary key]
    at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
    at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
    at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source)
    Am i doing something wrong?

    Rich,
    Whichever column(s) you changed to generate the conflicts will be present in the logs anyway. Since, your prebuilt conflict handler is not set up for those columns, you end up with apply errors. You can remove those columns from being part of conflict detection by calling the DBMS_APPLY_ADM.COMPARE_OLD_VALUES procedure. Hope this helps.

  • Exception - Trying to invoke an External Java Function

    Hi,
    Can any one Please Help me out am Stuck up with the following Exception While trying to invoke a External java Function.
    Step 1: Written the attached Java Class from "Oracle WorkFlow's Developers's" guide.
    Ref: http://www.stanford.edu/dept/itss/docs/oracle/10g/workflow.101/b10284/deffa02.htm#stdjfa
    Step 2: In builder created a process and created a Java Function
    <package-name>.<class-name>
    Step 3: Compiled the Java Class,and Created a jar file and included the jar and the required .jar files [which are required to make that class compile free] in the class path.
    Step 4: We modified the wfjvlsnr.bat by including the custom jar file which was created and the dependent jar files in the classpath and ran the Java Agent.
    Step 5: Invoked the Process from client, once the process is invoked we are getting
    Unable to load class gov.oracle.apps.fnd.wf.SampleWF
    java.lang.ClassNotFoundException: gov.oracle.apps.fnd.wf.SampleWF
    Tue Oct 10 14:33:38 GMT+05:30 2006 Enqueuing VAC02/VAC02 gov.oracle.apps.fnd.wf.SampleWF
    null
    Unable to load class gov.oracle.apps.fnd.wf.SampleWF
    : java.lang.ClassNotFoundEx
    ception: gov.oracle.apps.fnd.wf.SampleWF
    Regards
    Varma

    The engine doesn't see your jar file,
    try to change the path where you put your jar file, or try to call it for first in the set classpath

  • Connect Exception trying to connect to rmi registry on a Linux box

    I have prepared the Sun tutroial for RMI, implementing the remote method on a Linux box, and a client on the XP box. Try as I may though, the XP client always comes back with a Connect exception indicating it cannot connect to 127.0.0.1. I am though trying to connect to 192.168.0.4
    The firewalls on both machines are open on port 1099, and if I connect from the client with telnet to port 1099 on the server something happens, (well the CMD box screen goes blank, and I get a cursor).
    I'm struggling here, being both a Java RMI newbie, and likewise for Linux. I have seen suggestions that the hosts files may need modifying on both machines, but I am not sure what I might need to do.
    Any guidance would be appreciated. Thanks in anticipation
    P.S. I have posted this previously, but it seems to have expired. So, sorry for repitition, but I don't seem to be alone with this kind of problem.

    I have made some progress if you can call it that. Doing what you (ejp) suggested with regards to the hostname, and the following helped.
    Elsewhere on these forums I read of a problem where the rmiregistry was not being invoked by the JDK version. I forced this to happen by using an explicit path, then tested my client.
    My client now starts, and does not crash with an exception immediately, instead it runs slowly, and then stops with a NoRouteToHostException, and now it is referncing the correct IP address. I am not sure how to resolve the cause of this exception. Again I have read elsewhere about IPTABLES being the cause of this exception, but I don't know what these are, or how to configure them.
    Can someone guide me a bit more please.
    Thanks

  • Exceptions Trying to Consume Web Service

    My ColdFusion web site consumes ASP.NET web services to
    access some .NET business objects. I am seeing some exceptions
    intermittently. See sample error message below. Note that
    "UploadDocument" is the web method I am trying to invoke.
    The part of the error message "java.net.SocketException:
    Connection reset" leads me to think there may be a comminication
    failure, possibly indicating a DNS problem. I have changed my CF
    code to reference the ASP.NET web service WSDL by IP address but
    this has not solved my problem.
    Error message:
    Could not perform web service invocation "UploadDocument".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString: java.net.SocketException: Connection
    reset faultActor: faultNode: faultDetail: {
    http://xml.apache.org/axis/}stackTrace:java.net.SocketException:
    Connection reset at
    java.net.SocketInputStream.read(SocketInputStream.java:168) at
    java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at
    java.io.BufferedInputStream.read(BufferedInputStream.java:201) at
    org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
    at
    org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
    at
    org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
    org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
    org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at
    org.apache.axis.client.Call.invokeEngine(Call.java:2765) at
    org.apache.axis.clie... </pre> <br>The error occurred
    on line 100.
    My Environment:
    Both the CF and ASP.NET web sites are on the same physical
    server, but different IP addresses.
    ColdFusion: version 7.0.2 Enterprise
    JVM: Sun 1.4.2_15
    OS: Windows 2003 R2, Service Pack 2
    Any help is resolving this issue is appreciated.

    Hi Sanjay
    You can consume webservices in ABAP but its better to use XI in mid to avoid point to point communication. Using XI you can have a central hub for all services you consume or publish
    Check this link as well
    BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
    Thanks
    Gaurav

  • Null Pointer Exception Trying to Read File?

    I get a Null Pointer Exception when I try to perform the read hex2.txt, which i know exists and is in the same folder as this java file. Anyone see where my problem is?
    <code>
    import java.io.*;
    public class BytesToZeros
              int count = 0;
              int[] data;
              public static void main (String[] args)
                        BytesToZeros btz = new BytesToZeros();
              public BytesToZeros()
                        this.readFile();
                        this.writeFile();
              private void readFile ()
                        try
                                  FileInputStream fis = new FileInputStream("hex2.txt");
                                  BufferedInputStream bis = new BufferedInputStream(fis);
                                  boolean eof = false;
                                  while (!eof)
                                            int input = bis.read();
                                            if (input == -1)
                                                 eof = true;
                                            else
                                                 data[count] = input;
                                                 count++;          
                                  bis.close();
                        catch (IOException e)
                                  System.err.println("Error Reading File: " + e.getMessage());
                                  count = 0;
              private void writeFile ()
                        String zeros;
                        try
                                  FileOutputStream fos = new FileOutputStream("hex2.txt");
                                  BufferedOutputStream bos = new BufferedOutputStream(fos);
                                  for (int i=0; i<data.length; i++)
                                            bos.write(0);
                                  bos.close();
                        catch (IOException e)
                                  System.err.println("Error writing file: " + e.getMessage());
    </code>

    Doesn't the stack trace you get show which line it was thrown from?
    That should tell you where the problem is.
    It's weird to do a file read and a file write in the constructor like that. It would make somewhat more sense to do
    public static void main (String[] args) {
      BytesToZeros btz = new BytesToZeros();
      btz.readFile();
      btz.writeFile();
    }Although I realize this is just a test.
    Finally, to quote code use square brackes around the code tags:
    &#91;code]&#91;/code]

  • Exceptions trying to run Junit test thro Jdev. Test uses Application module

    Hi,
    my junit test works through the OraTst frame work. But I want to debug the code and If I try to run the same test through Jdev I am running into a following exception. Can somebody tell me how to fix this issue.
    I am a consumer of the Application module, I have not created it. I am using it by referencing it through the jar file provided by the owner.
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/EMReposDS
    at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1414)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:553)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:409)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8534)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4392)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2388)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareResource(ApplicationPoolImpl.java:3621)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:344)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2200)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3088)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
    at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1494)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1399)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1370)
    -Sidd

    Sidd,
    No idea what OraTst is, but based upon the name of your data source, I'd guess you are an Oracle employee using an internal framework. I understand that there are some internal Oracle forums that you can use.
    John

Maybe you are looking for

  • Short dump - No more storage space available for extending an internal tabl

    Hi All, I have requirement in which my program generates a text file on my presentation server. Here my problem is, this requirement can not be executed in back ground, it should be done in foreground only. When I execute in foreground, if the data r

  • Powered USB 2.0 on 12" 1.33GHz PBG4

    Anyone know for sure whether the ports on the 12" PBG4 are truly powered USB2.0 ports? Here's my evidence that it is not: I have a 40GB USB 2.0 LaCie Porsche laptop-size external HDD that runs on bus power (it has a dongle that supplies power that us

  • 3d parsing error

    When  we try to open our solid models converted to pdf we are getting this error "A 3d parsing error has occured". Thes files all worked before and now everyone is having problems. Loaded version 9.5.5. and 11.

  • Sceduling a background Job Dynamically

    Hi all, Is it possible to schedule a job by dynamically. I have to schedule a job to run a program based on the entries. suppose, itab contains 400 plus entries. I have to schedule a job for every 100 entries. and once the first job is finish then on

  • "Cleaning Validation Process Scenario" in SAP PM/QM for Pharma Industry

    Dear Gurus, I have a client requirement in the Pharma Industry. The scenario needs to be mapped in SAP for which I need your help. The scenario is that the company is making medicines (tablets/capsules). Whenever, there is a changeover of the product