BLOB access in servlet crash.. HELP !!!

Linux Mandrake 7.02 / Sun SDK 1.2.2 SE / Tomcat 3.1 / Oracle 8.0.5 / JDBC 1.2.X
I've got a table which have a LOB column.
I want to retrieve this LOB.
When I do it in a java program, all is well, I get the image in the LOB.
When I put the code in a servlet (ran in Tomcat), Oracle crash with error :
ORA-03115: unsupported network datatype or representation
I checked CLASSPATH for the two runs, all seems ok ...
I don't understand the meaning of this error
Please HELP !!!

[http://forums.sun.com/thread.jspa?threadID=5350426]
Crossposting without notification is very rude. Please stick to one topic.

Similar Messages

  • Problem with Accessing Deployed Servlets Please help, very urgent.

    Inspite of going through lots of Docs. I am not able to access the JSP which is deployed using JDeveloper 3.2 in the browser? What should be the URL and where should I place the JSP and the related files in the Apache Server (Specific directory)?
    Please help, this is very Urgent.
    Could I get some sites where I can get detailed description of how to deploy and access Servlets and JSPS using JDeveloper 3.2 for OAS 9i?
    Thanks in advance,
    Regards,
    Kavita.
    null

    Hi Kativa,
    In answer to your first question: In most apache installs, you want to place all your JSPs under the Apache/htdocs directory. This htdocs directory becomes the root directory of your HTTP request, so, for example, to access the file
    Apache/htdocs/mydir/myJSP.jsp
    you'd point your browser to
    server:port/mydir/myJSP.jsp]http://server:port/mydir/myJSP.jsp
    As to your second question: Do you mean Oracle 9iAS? If so, look at this HOWTO: http://technet.oracle.com:89/ubb/Forum2/HTML/006398.html
    JDeveloper 3.2 does not support deployment to OAS (the predecessor to iAS), but there was no OAS 9i.
    null

  • Servlet crashes TOMCAT

    I am experimenting with buffered images in a servlet. This "Hello World" servlet crashes TOMCAT.
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Java HotSpot(TM) Client VM (build 1.4.1, mixed mode)
    JAVA_OPTS '-Xmx512m -Djava.awt.headless=true'
    ----servlet begins----
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.image.*;
    import Acme.JPM.Encoders.GifEncoder;
    public class MijnPollServlet extends HttpServlet
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    doPost(req,res);
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    BufferedImage image=
    new BufferedImage(100,100, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = image.createGraphics();
    g2.setColor(Color.blue);
    g2.fillRect(25,25,50,50);
    g2.drawString("Hello World!", 10, 10);
    ServletOutputStream out = res.getOutputStream(); // binary output!
    res.setContentType("image/gif");
    GifEncoder encoder = new GifEncoder(image, out);
    encoder.encode();
    ----servlet ends----
    If I run the servlet with the "g2.drawString("Hello World!", 10, 10);"
    commented out there is no problem.
    Is there something I am missing here?
    Thank you,
    -William

    The whole Tomcat crashes, and no exception
    displayed.
    Do I have to write the log file, or it's kept by
    Tomcat itself?yes, tomcat writes a log file, you find it in the tomcat dir. but it's just very highlevel. Having a look in it could help.
    Is there a way to write a log file by myself?sure. you could get the log file from tomcat by getting it from the ServletContext:
    ServletContext = getServletContext();
    ServletContext.log("text to log");
    When I view the output window in Forte, it doesn't
    even write that Tomcat crashed.
    I use Tomcat that is installed with the last version
    of Forte(Sun 1 Studio, update 1), I guess it's the
    last version of Tomcat also.No. The lastest is 4.1.12 and i guess it's 4.0.4 with forte.
    Get Tomcat standalone from jakarta.apache.org and try to run your servlet with the standalone tomcat. this could help since i also expirenced problems sometimes with the forte-integrated tomcat.

  • How to connect to MS Access from servlet uploaded in TOMCAT server

    Hi,
    I want to access MS Access from servlet .I use TOMCAT server.I want to know what should i do.How to get drivers and how to set class path for them.
    Please help me in finding the solution
    thanks and Regards

    HI,
    try this
    <Code>
    response.setContentType(CONTENT_TYPE);
         PrintWriter out = response.getWriter();
         java.sql.DatabaseMetaData dm = null;
         java.sql.ResultSet rs = null;
         try
              Class.forName("sun,jdbc.odbc.JdbcOdbcDriver");
              Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:dsnName","","");
              dm = con.getMetaData();
              out.println("<html>");
              out.println("<head><title>Servlet1</title></head>");
              out.println("<body bgcolor=\"lightblue\">");
              if(con!=null){
                   dm = con.getMetaData();
                   out.println("<B><br>Driver Information</B>");
                   out.println("\n\t<br><br>Driver Name: "+ dm.getDriverName());
                   out.println("\n\t<br>Driver Version: "+ dm.getDriverVersion ());
                   out.println("\n\t<br>Database Information ");
                   out.println("\n\t<br>Database Name: "+ dm.getDatabaseProductName());
                   out.println("\n\t<br>Database Version: "+ dm.getDatabaseProductVersion());
                   out.println("\n\t<br><br>Avalilable Catalogs ");
                   rs = dm.getCatalogs();
                   while(rs.next()){
                             out.println("<br>\tcatalog: "+ rs.getString(1));
                   out.println("\n\t<br><br>conURL =" + conURL);
                   out.println("\n\t<br><br>Title = Database");
                   rs.close();
                   rs = null;
                   con.close();
              }else {
                   out.println("Error: No active Connection");
         }catch(ClassNotFoundException e) {
              out.println("Coudn't laod the database driver: " + e.getMessage());
         } catch(SQLException e) {     
              out.println("SQLException caught: " + e.getMessage());
              try {
                   if (con != null)
                        con.close();
                   if (rs != null)
                        rs.close();
              catch (SQLException ignored) {}
              finally {
                   try {
                             if (con != null)
                                  con.close();
                             if (rs != null)
                                  rs.close();
                        catch (SQLException ignored) {}
    </Code>
    Sachin

  • I need help in resolving a problem that prevents me from accessing the iTunes store.  Message reads " iTunes cannot contact the iTunes store" and also says that my laptop is no longer authorized to access my account.  Help!

    I need help in resolving a problem that prevents me from accessing the iTunes store.  Message reads " iTunes cannot contact the iTunes store" and also says that my laptop is no longer authorized to access my account.  Help!

    Go up to the top of your screen on iTunes and click on 'Store'.  Then go down to 'Authorize This Computer'.  That should cover part of it unless you've already authorized a bunch of other computers to use your account.  If that's the case, you'll have to go to one of those computers and click the button just below it to 'deauthorize your account' from that computer.  If you're not able to access the store, check your internet connection to make sure you are connected.  Hope this helps.. good luck!     

  • My ipod touch(4th gen) just recently had the iOS 5 update.bu for some reason about 80% of my music collection appears with no album artwork and doesnt play any songs.basically it has my music on their but wont let me access it? please help!

    My ipod touch(4th gen) just recently had the iOS 5 update.bu for some reason about 80% of my music collection appears with no album artwork and doesnt play any songs.basically it has my music on their but wont let me access it? please help!

    i have the same problem but i have ios 5.01. how do you unsync? please help, thanks

  • Accessing a servlet from another class

    Not to confuse anyone too much, but here's the scenario.
    I have a servlet that calles other Java classes which perform various functions. Now can I have one of these classes access the servlet directly, without setting up a socket based connection. What I mean is can I just simply call its methods and have access to the HttpServletResponse/HttpServletRequest objects?
    Usually the servlet gets accessed via an HTTP client where then servlet will call classes it needs to access, where here I have a class accessing the servlet directly.
    I do not have the capability of running servlets at the moment so I cannot just do a quick and dirty test to see how it would be done.
    Any input would be appreciated.

    If you have a servlet that contains methods that
    aren't related to the processing of a request (except
    for initialization) then those methods are in the
    wrong place. I don't know where they should be
    instead, that depends on your design. Perhaps you
    should post some details about what you are trying to
    do here.Currently I have not written code for what I am attempting.
    What I am attempting is quite an unorthodox approach of getting server information via a servlet. However unlike your standard servlet the servlet will be accessed via a java class, rather than being invoked from a URL.
    If I had to use psuedo-code I would put it like this:
    class A{
    public void accessHeaders(){
    // access servlet HttpRequest object.
    // use the object.
    // display header info...etc.
    // main prog.
    class Test {
    public static void main(String[] a){
    A a = new A();
    a.accessHeaders();
    The servlet will be a generic servlet which overrides a doGet().
    That's right an app accessing a servlet. I have done this but using the java.net package but I don't want to use that in this case. Can I implicitely call the servlet?
    Now the more I think about doing something like this the more I feel that it cannot be done this way.
    I am new to servlets so I don't know all the ways they can be used.

  • How To Access Photoshop CS3 Crash Log

    How do I access Photoshop CS3 Crash Logs?

    Open Console and then, if the toolbar is not visible, choose *View > Show Toolbar*.
    Press the Logs button and then navigate to ~/Library/Logs > CrashReporter or /Library/Logs > Crash Reporter and choose the Photoshop report.

  • How to access  j2ee servlet directly?

    Hi All,
    I have a question about Doc 333862.1
    My customer wants to follow test case in the CAUSE section.
    He wants to call SimpleServlet with bellow URL.
    http://hostname:port/j2ee/servlet/SimpleServlet
    When I execute it in our test instance, I can't access j2ee servlet directly and faced bellow HTTP 403 Forbidden warning.
    "You don't have permission to access /j2ee on this server."
    How to access the SimpleServlet?
    If you have any solution or advice, please give me the feedback freely.
    Regards,

    <i>how to create a new project of type J2EE -> EJB Module Project.</i>
    First of all u need to have NWDS.
    There go to File -> New -> Project -> Select J2EE -> Select EJB Module Project
    <i>any prerequisites required to create this apart from the java gui</i>
    None. U may create the project here in NWDS and can deploy on XI server.
    <i>all in all i want to find how to access J2EE explorer.</i>
    J2EE Explorer can be seen under Windows -> Show View -> J2EE Explorer
    Regards,
    Prateek

  • How to access a servlet using a blackberry?

    hello guys
    I have an application that runs on a blackberry and is supposed to access a Servlet on a Tomcat web server. My question is: Should I configure first Tomcat to be able to handle WAP request? If "Yes", how can I do that?
    Or maybe I don't have to do nothing at all

    http://www.blackberry.com/developers/journal/nov_2003/calling_all_networks.shtml#wanauh
    HTH
    Phani Koka

  • Access to javascript training help?

    There is a developer section of the Adobe site that has some information I need but when I tried to log into it and it said "Insufficient privileges (HTTP 403 error)You are not authorized to view this content"
    Does anyone know how I might gain access to this area? https://partners.adobe.com/asn/developer/training/acrobat/javascript/main.html

    Just create a new Adobe ID
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 10 Nov 2011 09:54:02 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Access to javascript training help?
    Access to javascript training help?
    created by melissaruth<http://forums.adobe.com/people/melissaruth> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4018661#4018661

  • Get the current count of the client accessing the servlet

    Any body can tell me how to know the information of every client that accessing my servlet after the client access the login interface.

    Thanks.
    But,
    My mean is not know each client information. I want to know all the current client count is accessing my web application and the client do not include that
    user has signed off the application nor the browser is closed by some reason. Sometime if you enter the forum, you maybe find how many people are in the forum current time? I just know all the users now accessing my web application

  • Accessing a servlet thru Proxy server

    I have a servlet and It has to be accessed by a Client Application. The Cleint cannot directly access this servlet. He has to come thru a proxyServer.
    Client application is opening a URL Connection to my Servlet by using the Proxy parameter in the URL.openConnection(Proxy).
    It fails "Authorization failure giving error 407"
    How do I authorize the proxyServer to connect to my Servlet?
    I tried putting an Authenticator class to return the userId and Password and installed the authenticator before opening the urlConnection.
    It doesn't call the Authenticator's getPasswordAuthentication() method at all.
    Any ideas on How to make an authenticated connection thru a ProxyServer.
    Thanks,

    Not sure what Tomcat you're running on or how you're accessing the servlet from the applet but here are some hints:
    http://www.netbeans.org/servlets/ReadMsg?msgId=364394&listName=nbusers
    http://www.netbeans.org/servlets/ReadMsg?msgId=495317&listName=nbusers
    HTH

  • Wjen i trying to activate my personal file sharing  in system 10.4.11 it's not able to start this service so my network computers can't access my computer plz help or advice ??

    wjen i trying to activate my personal file sharing  in system 10.4.11 it's not able to start this service so my network computers can't access my computer plz help or advice ??

    When was the last time you did any of the following?
    Restart your computer?
    Repaired Permission & restarted your computer?
    Run "Repair Disk" from your install DVD?
    Please detail all you have done to resolve your issue.  Need this information so that the users can avoid the "been there, done that" scenario type responses.  This is to avoid repeating the troubleshooting you may have already tried.  Thank you. 

  • Why can't I access Photoshop CS4 online help?

    Why can't I access Photoshop CS4 online help?

    Yes, you are right. The web-based online help is available only for the current version of Photoshop. I also discovered how to access the online help that originally came on my CS4 disk. You turn on the offline option (Windows>Extensions>Connections). With the online help from the disk and the PDFs you pointed out, I am happy. Thank you very much. (I hope I have replied to everyone correctly. I am new to this.) My thanks to everyone.

Maybe you are looking for

  • Getting end of statement error in SAP CRM bp script

    Hi When I run the code below without the for loop everything runs perfectly ok. However when I add the for loop I get the error statement end of statement I think it has something to do with handling of the code inside the for loop but I have  no clu

  • 6/11/2013 - AIR 3.7 Runtime and SDK Update

    Today, the AIR 3.7 Runtimes and SDK's were updated to address stability and performance issues, in particular the following problems have been addressed: Camera is not working for stageVideo(iOS)(3558247) AIR 3.7.0.2090 Runtime for Windows AIR 3.7.0.

  • Received Mac Book Pro 13" uncharged, is it normal?

    I received my new Mac Book Pro 13" yesterday. Welcome pack says that all Apple devices are charged and ready to use... but it didn't power on. I plugged in to charge it and it could start with battery at 0%. I shutdown and it charged fully in 2 hours

  • File Sharing Problems WRT54G-TM

    I recently upgraded from an old Linksys BEFW11S4 wireless-b to a brand new Linksys WRT54G-TM because I wanted faster G transfers.  My issue is with Windows not being able to communicate between Vista and XP computers.  Normally, I would think this is

  • Saving project to put on another computer

    My macbook pro does not want to burn a DVD. How can I export/save to a folder/external drive so I can burn on another computer my project?