BLOB retrieval problem

I create one function to retrieve PDF file in BLOC column and store the result
in UNIX file to be able to see it with ACROBAT.
see my function
CREATE OR REPLACE FUNCTION GET_PDF_STATEMENT ( p_filename IN VARCHAR2,
     p_request_id IN NUMBER )
     RETURN NUMBER
          IS return_code NUMBER;
temp_blob BLOB;
data_buffer RAW (1);
temp_buffer VARCHAR2(1);
amount BINARY_INTEGER := 1;
position INTEGER := 1;
filehandle utl_file.file_type;
error_number NUMBER;
error_message VARCHAR2(100);
v_error VARCHAR2(100);
directory_statement VARCHAR2(100);
length_count INTEGER;
BEGIN
SELECT statement_pdf_file
INTO temp_blob
FROM nat_statement_pdf
WHERE filename = p_filename
and request_id = p_request_id;
length_count := dbms_lob.getlength(temp_blob);
dbms_output.put_line('Internal LOB size is: ' || length_count);
SELECT directory_path
into directory_statement
from dba_directories
where directory_name = 'STATEMENT_PDF_REPORT_DIR';
filehandle := utl_file.fopen(directory_statement,
          p_filename,'W');
WHILE length_count <> 0 LOOP
dbms_lob.read (temp_blob, amount, position, data_buffer);
temp_buffer := utl_raw.cast_to_varchar2(data_buffer);
utl_file.put (filehandle, temp_buffer);
position := position + 1;
length_count := length_count - 1;
data_buffer := null;
END LOOP;
return_code := 0;
dbms_output.put_line('Exit the loop');
utl_file.fclose(filehandle);
     dbms_output.put_line('Close the file');
return(return_code);
EXCEPTION
WHEN OTHERS THEN
BEGIN
v_error := sqlerrm;
     insert into message_marc ( message) values ( v_error );
     error_number := sqlcode;
insert into message_marc ( message) values ( to_char(error_number) );
return_code := error_number;
     error_message := substr(sqlerrm ,1 ,100);
     dbms_output.put_line('Error #: ' || error_number);
     dbms_output.put_line('Error Message: ' || error_message);
     utl_file.fclose_all;
     commit;
     return(return_code);
END;
END;
I have the problem with file bigger than 32 ; i printed the value of sqlerrm and sqlcode
the results ar sqlerrm = User-defined exception
sqlcode = 1
Ony body can help me
Thanks
Marc

Hi
Call the function without exepction handling and post the error message and the number of the line where the error occures.
Ott Karesz
http://www.trendo-kft.hu

Similar Messages

  • CMP EJB CLOB/BLOB retrieval issues from Oracle through JBoss

    I have some EJB 2.0 CMP Entity Beans, deployed on a JBoss 3.07 application server.
    In some of my beans I have Strings that I would like to map to a CLOB in my database as the Strings could easily be more than 4000 characters, and some byte arrays that I would like to map to a BLOB in my database to store files.
    When I use PostgreSQL as my datastore in JBoss I can store and retrieve data from my CLOBs and BLOBs just fine.
    However when I use an Oracle 9i (9.0.1) database for my datastore, I can write the information to the CLOB/BLOB fields (I can see it when I manually check the tables), but for some reason I cannot retrieve the information when I load my beans. The fields that map to the CLOB/BLOB are null, and eventually resave themselves overwriting the data in the database.
    When I test using LONG RAW as a type it works perfectly, but LONG RAW is not a standard SQL type. I do not want to convert my beans to BMP, and also do not want to have any Oracle specific code in my beans to store retrieve my information. I need my beans to be completely database independant.
    Does anyone have any ideas what could be causing my retrieval problem and what I could do to fix it?

    I solved my problem.
    I am using XDoclet to generate my bean interfaces and xml files etc., and it generates the jbosscmp-jdbc.xml file for me.
    I forgot to add @jboss tags to my beans so that the jbosscmp-jdbc.xml file includes tags to overwrite the default cmp mapping (string to varchar) to be from string to clob for those specific long string fields that i want.

  • Uploading image stored in blob & retrieving to disk

    Hi there...
    Any help will be much appreciated !!!
    I have the following to tasks that I needhelp figuring out:
    I'm using the intermedia WebAgent and interface with
    a jsppage.
    1. I have a table with a field that store images. The field
    isdeclared as blob datatype. My task is to upload images to the
    database from a client side and store it in to server db in this field.
    The examples thatI've got from technet are using fields declared
    as ordImage.
    Can you give me example on how to do this when the db field is a blob ?
    2. On the other problem, I need to retrieve an image from the same field,
    but be able tostore it directly to a local disk at client side.
    Again, the examples I haveis on displaying the image directly on
    the web page.
    Can you give meexample or way how to retrieve the image and store it
    directly to the disk?
    Thanks..
    null

    Some usefull code examples are available @ :
    http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
    and
    http://technet.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java
    hope these help

  • Blob mapping problem

    Hi,
    I have some problems with blob mapping.
    I map a Serializable field in a BLOB column (in MySQL 4.1 w/ latest Kodo
    version) using following metadata:
    <field name="metadata" persistence-modifier="persistent">
    <extension vendor-name="kodo" key="type" value="Object"/>
    <!-- extension vendor-name="kodo" key="jdbc-size" value="-1"/ -->
    </field>
    <field name="metadata">
    <jdbc-field-map type="blob" column="METADATA"/>
    </field>
    Making the object persistent works well. The generated SQL is
    INSERT INTO ATTRIBUTE_TYPE (METADATA, NAME, POID)
    VALUES (?, ?, ?)
    [params=(InputStream) java.io.ByteArrayInputStream@1c9b9ca, (String)
    IntegerNew3, (long) 250] [reused=0]
    Problems occur when I try to load the object. I get a ClassCastException
    (see below). For information:
    - I have saved the blob to my hard disk, and read it using
    ObjectInputStream, and it works fine. So, the object is correctly stored.
    - I have set the field in my Java class to java.lang.Object (instead of
    my class implementing Serializable), and then it works fine too.
    SELECT t0.POID, t0.NAME
    FROM ATTRIBUTE_TYPE t0
    WHERE (t0.NAME = ?)
    [params=(String) IntegerNew3] [reused=0]
    5578 TRACE [main] kodo.jdbc.SQL - <t 4219289, conn 4729123> [15 ms]
    executing prepstmnt 2614099
    SELECT t0.METADATA
    FROM ATTRIBUTE_TYPE t0
    WHERE t0.POID = ?
    [params=(long) 250] [reused=0]
    Exception in thread "main" kodo.util.GeneralException:
    java.lang.ClassCastException: [B
         at kodo.runtime.StateManagerImpl.loadFields(StateManagerImpl.java:3155)
         at kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:3227)
         at kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:1368)
         at
    be.banksys.tams.model.base.AttributeType.jdoGetmetadata(AttributeType.java)
         at
    be.banksys.tams.model.base.AttributeType.getMetadata(AttributeType.java:50)
         at be.banksys.tams.model.base.Essai.main(Essai.java:55)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    NestedThrowablesStackTrace:
    java.lang.ClassCastException: [B
         at
    be.banksys.tams.model.base.AttributeType.jdoReplaceField(AttributeType.java)
         at kodo.runtime.StateManagerImpl.replaceField(StateManagerImpl.java:3256)
         at
    kodo.runtime.StateManagerImpl.storeObjectField(StateManagerImpl.java:2640)
         at kodo.runtime.StateManagerImpl.storeObject(StateManagerImpl.java:2624)
         at kodo.jdbc.meta.BlobFieldMapping.load(BlobFieldMapping.java:231)
         at
    kodo.jdbc.runtime.JDBCStoreManager.loadMappings(JDBCStoreManager.java:1019)
         at
    kodo.jdbc.runtime.JDBCStoreManager.loadMappings(JDBCStoreManager.java:970)
         at kodo.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:510)
         at
    kodo.runtime.DelegatingStoreManager.load(DelegatingStoreManager.java:133)
         at kodo.runtime.ROPStoreManager.load(ROPStoreManager.java:79)
         at kodo.runtime.StateManagerImpl.loadFields(StateManagerImpl.java:3128)
         at kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:3227)
         at kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:1368)
         at
    be.banksys.tams.model.base.AttributeType.jdoGetmetadata(AttributeType.java)
         at
    be.banksys.tams.model.base.AttributeType.getMetadata(AttributeType.java:50)
         at be.banksys.tams.model.base.Essai.main(Essai.java:55)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    Regards,
    J-F

    Patrick Linskey wrote:
    Hi,
    This is a known issue with MySQL, and Kodo 3.3.3 has a workaround for it
    -- set the DBDictionary DriverDeserializesBlobs property to false:
    kodo.jdbc.DBDictionary: DriverDeserializesBlobs=false
    -PatrickDon't take it bad, but then why don't you put it in the MySQL known issues
    in the documentation. It is a pity to waste hours on a known problem.
    J-F

  • Persist document in BLOB column problem

    Hi all,
    I'm having problem with persisting document in BLOB column.
    Using debuger I checked that document.doc contains correctly uploaded file before persist. There are other attributes of document and they are persisted correctly, but when I check blob size in database it size is 1byte which is incorrect.
    After I persist second file, first one get his correct size value, and size of second one is 1byte.
    If I stop weblogic server, second value will never be populated. If I only restart application without restarting server, and then upload third document, size of second one will be corrected.
    Oracle JDeveloper 11g R1 11.1.1.2.0
    Oracle DataBase 10gR2
    Using ADF 11g RC & EJB
    I set id manually.
    Entity Document.java:...
    @Entity
    @NamedQueries({
      @NamedQuery(name = "Document.findAll", query = "select o from Document o")
    public class Document implements Serializable {
        @Id
        private Long id;
        @Lob
        private byte[] doc;
        private String title;
        private String type;
    }Here is persistence.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
                 version="1.0">
      <persistence-unit name="Model">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <jta-data-source>jdbc/FileUDS</jta-data-source>
        <class>fu.model.entity.Document</class>
        <properties>
          <property name="eclipselink.target-server" value="WebLogic_10"/>
          <property name="javax.persistence.jtaDataSource" value="jdbc/FileUDS"/>
        </properties>
      </persistence-unit>
    </persistence>Here is sample project with DDL for document table:[url http://uploading.com/files/52m65757/TestFileUpload.zip]TestFileUpload.zip

    Finest log when it doesn't work:
    [EL Finest]: 2010-09-22 15:01:12.732--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin deploying Persistence Unit Model; state Predeployed; factoryCount 1
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin weaver class transformer processing class [fu.model.entity.Dummy].
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Weaved persistence (PersistenceEntity) [fu.model.entity.Dummy].
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Weaved change tracking (ChangeTracker) [fu.model.entity.Dummy].
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Weaved fetch groups (FetchGroupTracker) [fu.model.entity.Dummy].
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End weaver class transformer processing class [fu.model.entity.Dummy].
    [EL Finer]: 2010-09-22 15:01:12.794--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Could not initialize Validation Factory. Encountered following exception: java.lang.NoClassDefFoundError: javax/validation/Validation
    [EL Finest]: 2010-09-22 15:01:12.81--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.target-server; value=WebLogic_10; translated value=org.eclipse.persistence.platform.server.wls.WebLogic_10_Platform
    [EL Finest]: 2010-09-22 15:01:12.81--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2010-09-22 15:01:12.81--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2010-09-22 15:01:12.81--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.target-database; value=Oracle10g; translated value=org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Finest]: 2010-09-22 15:01:12.826--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=javax.persistence.jtaDataSource; value=jdbc/OracleTextDS
    [EL Finest]: 2010-09-22 15:01:12.841--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.cache.shared.default; value=false; translated value=false
    [EL Finest]: 2010-09-22 15:01:12.841--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.jdbc.native-sql; value=true
    [EL Info]: 2010-09-22 15:01:12.873--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--EclipseLink, version: Eclipse Persistence Services - 1.2.0.v20091016-r5565
    [EL Info]: 2010-09-22 15:01:12.873--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Server: WebLogic Server 10.3.2.0  Tue Oct 20 12:16:15 PDT 2009 1267925
    [EL Config]: 2010-09-22 15:01:12.888--ServerSession(32436700)--Connection(25502890)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/OracleTextDS
    [EL Config]: 2010-09-22 15:01:12.951--ServerSession(32436700)--Connection(31684552)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Connected: jdbc:oracle:thin:@itimserver:1521:omnidb
         User: OTEXT
         Database: Oracle  Version: Oracle Database 10g Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver  Version: 11.1.0.7.0-Production
    [EL Config]: 2010-09-22 15:01:12.966--ServerSession(32436700)--Connection(13432760)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/OracleTextDS
    [EL Config]: 2010-09-22 15:01:12.966--ServerSession(32436700)--Connection(10190221)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Connected: jdbc:oracle:thin:@itimserver:1521:omnidb
         User: OTEXT
         Database: Oracle  Version: Oracle Database 10g Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver  Version: 11.1.0.7.0-Production
    [EL Info]: 2010-09-22 15:01:13.576--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model login successful
    [EL Finest]: 2010-09-22 15:01:13.591--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The applicationName for the MBean attached to session [file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model] is [TestFileUpload]
    [EL Finest]: 2010-09-22 15:01:13.591--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The moduleName for the MBean attached to session [file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model] is [TestFileUpload-ViewController-context-root]
    [EL Finest]: 2010-09-22 15:01:13.591--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End deploying Persistence Unit Model; state Deployed; factoryCount 1
    [EL Finer]: 2010-09-22 15:01:13.623--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client acquired
    [EL Finer]: 2010-09-22 15:01:13.623--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX binding to tx mgr, status=STATUS_ACTIVE
    [EL Finest]: 2010-09-22 15:01:13.623--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--PERSIST operation called on: fu.model.entity.Document@d52347.
    [EL Finer]: 2010-09-22 15:01:13.638--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beforeCompletion callback, status=STATUS_ACTIVE
    [EL Finer]: 2010-09-22 15:01:13.638--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--begin unit of work commit
    [EL Finer]: 2010-09-22 15:01:13.654--ClientSession(22623994)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beginTransaction, status=STATUS_ACTIVE
    [EL Finest]: 2010-09-22 15:01:13.669--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query InsertObjectQuery(fu.model.entity.Document@d52347)
    [EL Finest]: 2010-09-22 15:01:13.685--ClientSession(22623994)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool
    [EL Fine]: 2010-09-22 15:01:13.685--ClientSession(22623994)--Connection(6662457)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--INSERT INTO DOCUMENT (ID, TITLE, DOC, TYPE) VALUES (?, ?, ?, ?)
         bind => [106, Oracle Text 106, [B@b48094, DOC]
    [EL Fine]: 2010-09-22 15:01:13.732--ClientSession(22623994)--Connection(6662457)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--SELECT DOC FROM DOCUMENT WHERE (ID = ?) FOR UPDATE
         bind => [106]
    [EL Finest]: 2010-09-22 15:01:13.873--ClientSession(22623994)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Writing BLOB value(size = 152,064 bytes) through the locator to the table field: DOC
    [EL Finer]: 2010-09-22 15:01:13.888--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX afterCompletion callback, status=COMMITTED
    [EL Finer]: 2010-09-22 15:01:13.888--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--end unit of work commit
    [EL Finer]: 2010-09-22 15:01:13.888--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--release unit of work
    [EL Finer]: 2010-09-22 15:01:13.888--ClientSession(22623994)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client releasedFinest log when it works:
    [EL Finest]: 2010-09-22 15:09:29.741--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin deploying Persistence Unit Model; state Predeployed; factoryCount 1
    [EL Finer]: 2010-09-22 15:09:29.787--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Could not initialize Validation Factory. Encountered following exception: java.lang.NoClassDefFoundError: javax/validation/Validation
    [EL Finest]: 2010-09-22 15:09:29.803--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.target-server; value=WebLogic_10; translated value=org.eclipse.persistence.platform.server.wls.WebLogic_10_Platform
    [EL Finest]: 2010-09-22 15:09:29.803--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2010-09-22 15:09:29.803--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2010-09-22 15:09:29.803--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.target-database; value=Oracle10g; translated value=org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Finest]: 2010-09-22 15:09:29.834--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=javax.persistence.jtaDataSource; value=jdbc/OracleTextDS
    [EL Finest]: 2010-09-22 15:09:29.834--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.cache.shared.default; value=false; translated value=false
    [EL Finest]: 2010-09-22 15:09:29.834--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.jdbc.native-sql; value=true
    [EL Info]: 2010-09-22 15:09:29.866--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--EclipseLink, version: Eclipse Persistence Services - 1.2.0.v20091016-r5565
    [EL Info]: 2010-09-22 15:09:29.866--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Server: WebLogic Server 10.3.2.0  Tue Oct 20 12:16:15 PDT 2009 1267925
    [EL Config]: 2010-09-22 15:09:29.881--ServerSession(29669964)--Connection(16935504)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/OracleTextDS
    [EL Config]: 2010-09-22 15:09:29.944--ServerSession(29669964)--Connection(32957960)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Connected: jdbc:oracle:thin:@itimserver:1521:omnidb
         User: OTEXT
         Database: Oracle  Version: Oracle Database 10g Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver  Version: 11.1.0.7.0-Production
    [EL Config]: 2010-09-22 15:09:29.944--ServerSession(29669964)--Connection(7874461)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/OracleTextDS
    [EL Config]: 2010-09-22 15:09:29.944--ServerSession(29669964)--Connection(7387593)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Connected: jdbc:oracle:thin:@itimserver:1521:omnidb
         User: OTEXT
         Database: Oracle  Version: Oracle Database 10g Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver  Version: 11.1.0.7.0-Production
    [EL Info]: 2010-09-22 15:09:30.428--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model login successful
    [EL Finest]: 2010-09-22 15:09:30.444--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The applicationName for the MBean attached to session [file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model] is [TestFileUpload]
    [EL Finest]: 2010-09-22 15:09:30.444--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The moduleName for the MBean attached to session [file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model] is [TestFileUpload-ViewController-context-root]
    [EL Finest]: 2010-09-22 15:09:30.444--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End deploying Persistence Unit Model; state Deployed; factoryCount 1
    [EL Finer]: 2010-09-22 15:09:30.475--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client acquired
    [EL Finer]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX binding to tx mgr, status=STATUS_ACTIVE
    [EL Finest]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--PERSIST operation called on: fu.model.entity.Document@1b12136.
    [EL Finest]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--PERSIST operation called on: fu.model.entity.Dummy@1fc0ac1.
    [EL Finer]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beforeCompletion callback, status=STATUS_ACTIVE
    [EL Finer]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--begin unit of work commit
    [EL Finer]: 2010-09-22 15:09:30.506--ClientSession(3813659)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beginTransaction, status=STATUS_ACTIVE
    [EL Finest]: 2010-09-22 15:09:30.537--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query InsertObjectQuery(fu.model.entity.Document@1b12136)
    [EL Finest]: 2010-09-22 15:09:30.553--ClientSession(3813659)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool
    [EL Fine]: 2010-09-22 15:09:30.553--ClientSession(3813659)--Connection(31488401)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--INSERT INTO DOCUMENT (ID, TITLE, DOC, TYPE) VALUES (?, ?, ?, ?)
         bind => [107, Oracle Text 107, [B@88e6ad, DOC]
    [EL Fine]: 2010-09-22 15:09:30.584--ClientSession(3813659)--Connection(31488401)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--SELECT DOC FROM DOCUMENT WHERE (ID = ?) FOR UPDATE
         bind => [107]
    [EL Finest]: 2010-09-22 15:09:30.725--ClientSession(3813659)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Writing BLOB value(size = 152,064 bytes) through the locator to the table field: DOC
    [EL Finest]: 2010-09-22 15:09:30.725--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query InsertObjectQuery(fu.model.entity.Dummy@1fc0ac1)
    [EL Fine]: 2010-09-22 15:09:30.725--ClientSession(3813659)--Connection(31488401)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--INSERT INTO DUMMY (ID, DUMMYCOLUMN, DOCUMENT_ID) VALUES (?, ?, ?)
         bind => [107, null, null]
    [EL Finer]: 2010-09-22 15:09:30.772--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX afterCompletion callback, status=COMMITTED
    [EL Finer]: 2010-09-22 15:09:30.772--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--end unit of work commit
    [EL Finer]: 2010-09-22 15:09:30.772--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--release unit of work
    [EL Finer]: 2010-09-22 15:09:30.772--ClientSession(3813659)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client releasedRegards,
    Alexandar

  • Oracle blob class problem

    Hello again.
    I have the following code:
    java.sql.ResultSet resultSetForUpdate = stat.executeQuery("select picture from some_table where some_id=" + someId + " for update");
    java.sql.Blob blob = resultSetForUpdate.getBlob(1);
    // here is some code that types the class of the blob
    logger.info("blob class is: "+blob.getClass());
    now the problem is that the class returned with blob.getClass is different on 2 portals... on 1 portal I get oracle.sql.BLOB (this is the expected result) but on the other I get com.inqmy.services.dbpool.remote.RemoteBlobImpl
    does anyone have any idea why this is happening and how can I do so that I always get the oracle.sql.BLOB class?
    more information: both portal installations are ep6 sp2 with (I think) identical patch levels (35 if I remember correctly). the database they access is the same one. the dbpool definitions (in visual administrator) look similar.
    thanks in advance.
    silviu.

    Thanks for taking the time to look at this.
    No, it is the same driver on both servers. The driver is the oracle driver oracle.jdbc.OracleDriver provided by Oracle themselves.
    This is not it...
    Could there be some path problem? The server on which it works fine is a windows machine, whereas the server where it doesnt work is a solaris machine, I think (not windows for sure).
    Message was edited by: Silviu Lipovan Oanca

  • Blob interface problem

    hi all,
    im facing an stylist problem when inserting blob into oracle dbms. im trying in a very simple way like this :
    stmt.executeUpdate("insert into picture values('sample1.gif',empty_blob())");
    ResultSet rs= stmt.executeQuery("select * from picture where name='sample1.gif' for update");
              rs.next();
              oracle.sql.BLOB blob=(oracle.sql.BLOB)rs.getBlob(2);
              FileInputStream in= new FileInputStream(filename);
              OutputStream os=blob.getBinaryOutputStream();
              int data;
              while((data=in.read())!=-1){
                             os.write(data);
         in.close();
         os.close();
    this code is ok but i have an allergy about standerizing my coding so im trying to use the following code :
    stmt.executeUpdate("insert into picture values('sample1.gif',empty_blob())");
    ResultSet rs= stmt.executeQuery("select * from picture where name='sample1.gif' for update");
              rs.next();
              java.sql.Blob blob=rs.getBlob(2);
              FileInputStream in= new FileInputStream(filename);
              OutputStream os=blob.setBinaryStream(1);
              int data;
              while((data=in.read())!=-1){
                             os.write(data);
         in.close();
         os.close();
    but the problem is setBinaryStream(int pos) is not implemented by oracle.sql.BLOB class. my oracle version is 9.0.1.0.1. when i run it,it shows an exception like abtract method error. is there any way not to use the oracle.sql.BLOB for inserting blob into oracle database ?

    I can't give a definitive answer but I've observed the same problem.
    The ability to get an outputstream to a Clob was only introduced in JDBC 3.0.
    Chapter 5 of Oracle's JDBC Developer's Guide and Reference http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/jdbc30ov.htm#1004903 mentions that only some JDBC 3.0 features are implemented; none of the mentioned features include the API calls for streaming to a Clob.
    T

  • Creating RESTful Web Service for BLOB retrieval

    Hi,
    Just got RESTful web services working in Apex 4.2.1 with new Listener 2.1.
    I have now been asked to create a RESTful web service by which photos in BLOB column can be retrieved upon providing the ID for that photo. Can this be done using the Creating RESTful Service Module of Apex 4.2.1? Looking at the Apex 4.2 documentation, I would assume this can be done, but has anyone used this with BLOB data?
    Thanks,
    Pat

    Hi Pat,
    Yes this can be done using RESTful Services - you just need to ensure the query used is in the required format. To obtain a BLOB for a given ID, you would need create a Resource template and handler with the following settings:
    Resource Template Settings:
    URI template: emppic/{id}
    Resource Handler Settings:
    Source query: select mimetype, product_image from demo_product_info where product_id = :id..where the format of the SQL query is SELECT 'content_type', blob_column FROM . . ., as mentioned in Rick Greenwald's Cloud White paper "RESTful Web Services for the Oracle Database Cloud", under the "SQL Source Type" section (see www.oracle.com/technetwork/database/database-cloud/public/restful-wp-1844130.pdf ):
    where 'content_type' is a string passed to the browser to be used to identify the incoming data, and the column to identify the source of the data being sent back. This data is sent back untouched by the Oracle Database Cloud Service. The Media Resource Source Type is typically used for media objects, such as images, where the data will be directly handled by the recipient making the call.The MIMETYPE column in the sample query above holds the necessary setting for the 'content_type' i.e. 'image/jpeg'. The value of ID is then passed in as a parameter when calling the service e.g. emppic/1234. The item level help text would be more helpful if it included additional information, and this is something we intend on addressing in a future release.
    I hope this example helps.
    Regards,
    Hilary

  • Random record retrieval problem

    At this point I'm sort of desperate as this has been going on
    for a few weeks now. I missed this part of the forum an dposted the
    problem here:
    thread
    If anyone can help I would very much apprecfiate that!

    tragik,
    ahh... the sql part should have read: ORDER BY
    '#CreateUUID()#'
    None the less it did not work. I think the reason is that the
    CreateUUID part is only run once, when the page is fetch and not
    every time a record is retrieved. Hence, the value of the unique
    hex number is always the same during the whoole sql statement
    execution in the database. Correct me if I'm wrong...

  • BEA 10 WSRP digitial cert retrieval problem

    Hello,
    We are running two BEA portal applications within the same domain and are connecting the two using WSRP (local proxy). Not long ago we ran into a problem where our remote portlet classes were not able to retrieve the user's digital certificate through:
    X509Certificate[] certs = (X509Certificate[])
    servletReq.getAttribute(
    "javax.servlet.request.X509Certificate");
    This code works fine in a non-WSRP environment. The response from BEA was that this was specifically stripped from the request object prior to sending it to the producer. This answer came from a BEA trouble ticket and from the following BEA forum thread: http://forums.bea.com/thread.jspa?threadID=5700000376
    So, as far as getting the cert in the producer portlet class goes, we moved to use BEA's Custom Data Transfer mechanism and all is well.
    However..... we are seeing the same problem with servlets. In the case of the remote portlets, there was no "javax.servlet.request.X509Certificate" request attribute to recieve. In the case of the servlets, it does exist but the retrieved X509Certificate[] object has 0 certs. It is not "null", but rather is a good object with just 0 items.
    So, we fixed the problem for how a remote portlet class can retrieve the user's digistal certificate, but now how can we retrieve the cert in a remote servlet?
    Thanks - peter

    Peter,
    Yes the /<web-app>/resource? URL is the resource proxy servlet.
    We understand the issues with WSRP and JSR-168. The good news is WSRP
    2.0 and JSR-286 will address some of these issues. See: serveResource
    and clientAttributes. In addition, we are working with the committees to
    standardize things like Custom Data Transfer.
    In your particular case it would be dangerous to set
    "javax.servlet.request.X509Certificate" on a request which did not
    receive that particular certificate. So, at best you might be able to
    write a servlet which worked with all WSRP consumers.
    Good Luck,
    Nate
    Peter Len wrote:
    Nate,
    Thanks for the reply. Well, I am not sure specifically about if we are using the consumer's resource proxy servlet. The URL that gets generated in our Producer for calling our servlet starts like:
    https://ri.ic.mcdonaldbradley.com:443/PortalWAR/resource?_windowLabel=T2400557971208964511199&wsrp-urlType=resource........
    so it looks like a resource servlet. I would assume that adding a ResourceHeaderFilter is something that is done by the consumer, not the producer, just like the Custom Transfer backing file resides on the consumer. We don't own the consumer portal, however, and so having them add stuff like this might be problematic. In any case, it would seem that if they did add something like that, the producer's servlet would have to change how it was looking for the cert object (servletReq.getAttribute(
    "javax.servlet.request.X509Certificate")).
    The problem I am seeing is that our portal-neutral JSR-168 portlets are starting to become BEA-specific JSR-168 portlets because we have to change our code to handle BEA classes (ex SimpleStateHolder) for a BEA solution to a BEA WSRP implementation issue. Not sure, for example, if other portals would still send the user certificate in a WSRP request object, which is something that BEA did not want to do.
    In any case, I will have to do more research into how to implement a ResourceHeaderFilter solution.
    Thanks - Peter

  • Excel Retrieve problem using Default Aliases

    Using version 5.0.2 patch 14 on Windows 2000 client.When option "use aliases" is selected in Excel, we have started experiencing inconsistant and unreliable retrieves.Example:After first retrieve and zoom on Parent, display is:Parent__Child A__Child B__Child CRetrieve again, results:Parent__Child A__Child C__Child CLost the retrieve for Child B.Missing rows and zeros are NOT selected.Has anyone experienced this issue?

    Thanks for the reply, Sergey. I have solved my problem using different approach.
    First suggestion is ok and helpful which after I forgot to add in when I post this thread.  Second suggestion would result on this:
    <Styles>
        <Style ss:ID="" ss:Name="Normal"> --- Attribute ID would be empty
          <Alignment ss:Vertical="Bottom" />
          <Font />
          <Interior />
          <NumberFormat />
          <Protection />
        </Style>
      </Styles>
    I modified previous approach and here is my code:
    [code]
    xmlTextWriter.WriteStartElement("Styles");
    xmlTextWriter.WriteStartElement(string.Empty, "Style", sheet);
    xmlTextWriter.WriteAttributeString("ID", sheet, "Default");
    xmlTextWriter.WriteAttributeString("Name", sheet, "Normal");
    xmlTextWriter.WriteStartElement("Alignment");
    xmlTextWriter.WriteAttributeString("Vertical", sheet, "Bottom");
    xmlTextWriter.WriteEndElement();//End Alignment
    xmlTextWriter.WriteStartElement("Font");
    xmlTextWriter.WriteEndElement();//End Font
    xmlTextWriter.WriteStartElement("Interior");
    xmlTextWriter.WriteEndElement();//End Interior
    xmlTextWriter.WriteStartElement("NumberFormat");
    xmlTextWriter.WriteEndElement();//End NumberFormat
    xmlTextWriter.WriteStartElement("Protection");
    xmlTextWriter.WriteEndElement();//End Protection
    xmlTextWriter.WriteEndElement();//End Style
    xmlTextWriter.WriteEndElement();//End Styles
    xmlTextWriter.WriteStartElement(string.Empty,"WorkSheet", sheet);
    xmlTextWriter.WriteAttributeString(string.Empty,"Name", sheet, "Sheet1");
    xmlTextWriter.WriteStartElement(string.Empty, "Table", sheet);
    xmlTextWriter.WriteAttributeString("ExpandedColumnCount", sheet, "2");
    xmlTextWriter.WriteAttributeString("ExpandedRowcount", sheet, "2");
    xmlTextWriter.WriteAttributeString("FullColumns", excel, "3");
    xmlTextWriter.WriteAttributeString("FullRows", excel, "1");//To be modified
    [/code]

  • Indic Langauge Search and Retrieval Problem

    I went to www.guruji.com. Generated a Gujarati string "Guruji". I copied it to clipboard.
    Next, I went to Microsoft Word 2007 and pasted that string into a document. Also, I pasted that string in Find in Microsoft Word. I could find the string. I also selected the string and copied it to clipboard. I got the same string.
    Next, I generated two PDF fiies using Microsoft Word's own PDF generator and other with doPDF 7.1. I do not have access to Acrobat.
    I could not search the Gujarati text in both files though it looked the same as in Microsoft Word.
    When I copied the text from the PDF files to clipboard I got garbage.
    I suspect that PDF generators may be a problem. But I am not sure.
    As a side comment, Adobe Reader search text-box cuts bottom pixel row from Gujarati 'u's. FoxIt does not.

    I am using portal 6.0 and have content that is
    delivered by roles. The role membership is determined
    by groups or attributes in a separately maintained
    LDAP directory. And then through scripts the Role in
    the Portal is updated to match the information in
    that separate directory.
    The problem that I am seeing is in the use of the
    AMRole object. The following code where 'role' is a
    valid AMRole object:
    Set userDNs = role.getUserDNs();Throws the following exception:
    Unable to get members::LDAP Error:The search
    found more than the maximum number of
    results.I have tried doing an ldapsearch from the command
    line and I can retrieve all 1326 member's DNs that
    way. I have checked the portal's directory server
    setting for maximum results allowed to be returned
    and it is way more than 1326., which is confirmed by
    the command line search.
    Any idea why the AMRole getUserDNs method is having a
    problem while command line is not? This code works on
    roles with fewer members.fewer members mean less than 100?? There is a sizelimit constraint configurable by IS admin in the adminconsole service, this is by default 100, tune this value . also if you look at the DS access logthat would show the error code and the number of entries resturned. the error code is 4

  • Retrieval Problem !

    hi -
    I have some doubt regarding some retrieving data.
    Here is my table data :
    id1 id2 name
    35 30 java
    35 31 c
    36 32 cpp
    36 33 vc
    37 34 abc
    35 tool
    36 temp
    37 mydir
    here is the logic :
    if id2 equals to id1 , then i can get retrive the results.
    if id1 is null , i can retrieve results too
    but if id2 is not equal to id1 ( values are not there in id1 , eg, 34 ) , i could not able to retrieve the results.
    how can i get the results of 34 .
    i guess , u guys understood the problem.
    thanks in advance.
    - bregoty

    Here is code for your referrence.
    import java.util.*;
    parentId id          name
    35           30          java
    35           31          c
    35           32          cpp
    37           33          vc
    37           34          abc
    null      35          tool
    null      36          temp
    null      37          mydir
    public class Example
         public static void main(String[] args)
              HashMap itemMap = new HashMap();
    HashMap parentNullMap = new HashMap();
              Item it = null;
    /* parentId , id and name values coming from the
    he database and that will be stored.
                 Hashmap having counter and Item object .*/
              for (int i=0;i<10;i++)
                   String parentId = resultSet.getString(1);
                   String id = resultSet.getString(2);
                   String name = resultSet.getString(3);
                   it = new Item();
                   it.setParentId(parentId);
                   it.setId(id);
                   it.setName(name);
                   itemMap.put(String.valueOf(i),it);
    // saving id values into the Map if parentId is
    is null
                   if (parentId == null)
                        parentNullMap.put(parentId,id);// YOUR parentNullMap will only have one value--the key will be "null", the value will be whatever "id" comes last.
    // Item it1 = new Item(); // Unnecessary initialization--just declare value:
    Item it1;
    for (int i=0;i<parentNullMap.size();i++ ) // will be at most 1, as explained above.
    String pnm = parentNullMap.get(String.valueOf(i)); // You didn't use String representations of int as keys.
              for (int j=0;j<itemMap.size() ;j++ )
    it1 = (Item)itemMap.get(String.valueOf(j))
    // if id is equals to parentId
    if (pnm.equals(it1.getId()))
    // will get the results if it equals
    // need to get the results if it is not
    if it is not there in parentId column .
    // i mean i need to get the record of
    the record of 36.
    Make parentNullMap a HashSet. Put the id values into it. Use an Iterator to loop through it.

  • E71 automatic retrieval problems

    Just bought the Nokia E71 but having problems with the email automatic retrieval. I have done all the required settings for it but it does not automatically retrieve. I had an E61i until now and the auto frretrieval worked fine so I know what it's about...any advice??? one thing is that when I go into the email setting and the auto retrieval section ans then come back out it starts to retrieve automatically but only that once...all other times I have to manually retrieve...I am using Eircom Net email system in Ireland...please advise

    17-Dec-2008 01:44 AM
    emgphoto wrote:
    Just bought the Nokia E71 but having problems with the email automatic retrieval. I have done all the required settings for it but it does not automatically retrieve. I had an E61i until now and the auto frretrieval worked fine so I know what it's about...any advice??? one thing is that when I go into the email setting and the auto retrieval section ans then come back out it starts to retrieve automatically but only that once...all other times I have to manually retrieve...I am using Eircom Net email system in Ireland...please advise
    I also moved from an e61i to and E71 but didn't have any problems moving my mail accounts. I have three on the phone (MFE, POP3, and IMAP4). All work fine.
    Can you connect manually to the Eircom Net email service?
    What settings are you using for the "Access point in use" under the "Connection settings"? I've never had any luck getting this to work using WIFI and have all 3 accounts setup to use my ATT 3G Connection.
    Also, check your "Retrieval settings" and "Automatic Retrieval" configuration to make sure they are correct.

  • Retrieving problems.  No data

    When I retrieve, there are no numbers. Nothing, just blank cells. One minute, I'm retreiving just fine, the next there is nothing. We've re-installed the Excel Add-in 2-3 times. You can zoom and everything. It acts like the data is there, but the cells where the #'s are is blank.
    The admin logged in as his ID and it's the same thing. I can go to a different PC and retrieve the same just fine, so it's PC specific.
    Any ideas?

    I just ran into a similar problem, but actually figured it out. When I was trying to retrieve actual balances in Excel, no values were being populated within the cells. After going through my headers, I realized that one of the members did not have the " ' " apostrophe in front of it. In the spreadsheet I have built I have the years in a drop down box, but in my case the year did not have the apostrophe in front of it. Once I made the change, I was able to pull current balances.

Maybe you are looking for

  • Maximum open_cusors exceed error in oracle

    I am returning resultset object from many of my functions.After I run a few programmes i get "maximum no of cursors exceeded in oracle" error. I am not closing Statement obj also i am not closing reultset obj.Which one is to be closed to remove the a

  • Couldn't upload

    Hi, Pls fin the error in this program. I am unable to upload. Regards, Karthik Program ID       : ZRFC_RUSHORDER Transaction Code : Z* Description      : RFC For Sales Process using        Transaction Method calling                    3 Transactions

  • Urgent - Messages in "To Be delivered" status

    Hi XI ers, We have around 150 messages in "To Be delivered" status. Tried resending a couple of them but no sucess. When tried to resend a message, it gives message 2 Audit log entries in MDT (Message Display Tool). The first entry is "Try to fail th

  • 10.4.6 Update Moved or Deleted Files. HELP

    I did the update and restarted my computer. When it came back on all the files and links on my desktop were gone and the link with the house was almost empty. I still have most pics, music, and docs but those few things are really bothering me. I hav

  • ITunes Import/Convert Error "-39"

    Hello, I recently moved my iTunes library to a NAS device (DLink DNS-321), and at the same time, upgraded to iTunes 8. Since then, I've been having the following problem: 1. I have a folder with valid WMA files; using iTunes, I select "Add Folder to