Java in Bug Toolkit

Has the Java functionality in Bug Toolkit affected your search capabilities when searching for bugs?

have u copied soure files to src folder
and defined midlet and it's class under seetings tab?

Similar Messages

  • Bug with Java WSDP1.3 Toolkit?

    Hi
    I used the Java WSDP1.3 toolkit to generate the stubs for the webservice
    "http://www.xmethods.net/sd/2001/BabelFishService.wsdl". After creating the stubs , I deployed them in Tomcat 4.1 to test the methods of this service. The output (SOAPException) I am getting when testing this service is
    " Error : java.rmi.RemoteException: Runtime exception; nested exception is: unexpected element type: expected={http://www.w3.org/2001/XMLSchema}QName, actual={http://www.w3.org/2001/XMLSchema}string"
    Then I used the Axis 1.1 toolkit to generate stubs for the same service and deployed the stubs in tomcat 4.1. The output (SOAPException) I am getting when testing this service is
    "Error : Our connection to the Altavista BabelFish site has been cut. This service will remain down indefinitely until an alternate translation engine can be found. We apologize for any inconvenience."
    I got the same exception as axis when tested the service with XMLSPY.
    Why JAVA WSDP1.3 is not capturing the correcting SOAP Exception?. Is it a bug in the Java WSDP1.3 SOAP toolkit?

    Any answers for the query. I face a similar bug with the same versions.

  • Java Embedding bug in SOA Suite 11g BPEL??

    I am beginning to wonder if there is a 'bug' in the SOA Suite 11g, BPEL, Java Embedding activity? Need some help as soon as possible – does the Java Embedding activity work in SOA Suite 11g?
    Have tried the following on Jdev 11.1.1.1 and Jdev 11.1.1.3 – get the same error message (see below for error message).
    Thanks for any help - Casey
    I created a simple composite app by:
    1.     Created a Composite with BPEL Process
    2.     Created a BPEL variable by the name of Variable and a Simple Type of string      ({http://www.w3.org/2001/XMLSchema}string)
    3.     Added an Assign activity (Assign_1) and assigned the value of “Test Var” to the variable Variable using a Copy operation.
    4.     Then, after the assign activity, added a Java Embedding activity (Java_Embedding_1) with Java Version set to 1.5 and the following code:
    +try{+*
    String var;*
    var=(String)getVariableData(Variable);*
    System.out.println(var);*
    +}  // end try+
    +catch(Exception ex){+*
    System.out.println(ex.getMessage());*
    +}// end catch+
    Compiled and got the following error message:
    Error(23,34): Failed to compile bpel generated classes.*
    failure to compile the generated BPEL classes for BPEL process "BPELProcess1" of composite "default/Project1!1.0"*
    The class path setting is incorrect.*
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.*
    Code for the BPEL component is:
    +<?xml version = "1.0" encoding = "UTF-8" ?>+
    +<!--+
    +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+
    Oracle JDeveloper BPEL Designer
    Created: Tue Nov 09 13:01:49 CST 2010
    Author:
    Purpose: Asynchronous BPEL Process
    +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+
    -->
    +<process name="BPELProcess1"+
    targetNamespace="http://xmlns.oracle.com/TestgetVariable_jws/Project1/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/TestgetVariable_jws/Project1/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/TestgetVariable/Project1/FileW"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    +<!--+
    +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+
    PARTNERLINKS
    List of services participating in this BPEL process
    +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+
    -->
    +<partnerLinks>+
    +<!--+
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    +<partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider" partnerRole="BPELProcess1Requester"/>+
    +</partnerLinks>+
    +<!--+
    +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+
    VARIABLES
    List of messages and XML documents used within this BPEL process
    +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+
    -->
    +<variables>+
    +<!-- Reference to the message passed as input during initiation -->+
    +<variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>+
    +<!-- Reference to the message that will be sent back to the requester during callback -->+
    +<variable name="outputVariable" messageType="client:BPELProcess1ResponseMessage"/>+
    +<variable name="Variable" type="xsd:string"/>+
    +</variables>+
    +<!--+
    +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+
    -->
    +<sequence name="main">+
    +<!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->+
    +<receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>+
    +<!--+
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    +<assign name="Assign_1">+
    +<copy>+
    +<from expression='"test var"'/>+
    +<to variable="Variable"/>+
    +</copy>+
    +</assign>+
    +<bpelx:exec name="Java_Embedding_1" version="1.5" language="java">+
    +<![CDATA[/*Write your java code below e.g.+
    +     System.out.println("Hello, World");+
    +*/+
    +try{+
      +String var;+
      +var=(String)getVariableData(Variable);+
      +System.out.println(var);+
    +} // end try+
    +catch(Exception ex){+
    System.out.println(ex.getMessage());
    +}// end catch]]>+
    +</bpelx:exec>+
    +<invoke name="callbackClient" partnerLink="bpelprocess1_client" portType="client:BPELProcess1Callback" operation="processResponse" inputVariable="outputVariable"/>+
    +</sequence>+
    +</process>+

    Java Embedding bug in SOA Suite 11g BPEL??

  • Bug toolkit report - LMS 3.1

    Hi
    I have problems with Bug toolkit report - bug summary report.
    I have empty all columns in this report. No bugs. Despite of having over 500 devices with various IOSes.
    Is it depends on CCO account or something else?
    Best regards
    Marek

    The Bug Toolkit report in RME can be problematic when it comes to certain device types.  That is why there is now a link to the Cisco.com Bug Toolkit report in the RME report interface.  You may have to forgo using the RME report, and use the Cisco.com tool directly to find bugs.

  • CSCsr27209 is not visible to me in the Bug Toolkit

    Here's what I recieved when I tried looking up this Bug ID.......
    Dear valued Cisco Bug Toolkit customer, the bug ID CSCsr27209 you searched contains proprietary information that cannot be disclosed at this time; therefore, we are unable to display the bug details. Please note it is our policy to make all externally-facing bugs available in Bug Toolkit to best assist our customers. As a result, the system administrators have been automatically alerted to the problem.
    While we are working to resolve this issue, we invite you to reach out to the experts on the Bug Toolkit Support Community. You may find answers there to your Bug Toolkit questions, or post your feedback on our forum as well. Thank you.
    I'm kind of curious about why this is.  But I'm really interested in knowing about this bug because it involves VDSL technology that I'm trying to implement at work and now I may be forced to wait on a resolution.
    Thanks to anyone, and everyone, who is interested and willing to assist.

    Hi Arun
    From what that I understand from the "Cisco 880VA - DATA SHEETS" and from the "Cisco 880VA - Q&A" that found in these links
    http://www.cisco.com/en/US/prod/collateral/routers/ps380/data_sheet_c78-613481.html
    http://www.cisco.com/en/US/prod/collateral/routers/ps380/qa_c67-612339_ps10536_Products_Q_and_A_Item.html
    The Cisco 887V supposed to support ADSL2/ADSL2+ & VDSL2 Automatic.
    Also in the "Cisco 860,880 and 890 Configuration Guide", it says that Cisco 887V can be setup to connect to the ADSL via the ATM0 interface. As you can see in the example over here:
    http://www.cisco.com/en/US/docs/routers/access/800/860-880-890/software/configuration/guide/routconf.html#wp1168916
    But none of that really happened.
    It seems that there is a fundamental bug with these devices that make it impossible to connect to the ADSL2 / ADSL2+ via the VDSL2 controller.
    Thanks
    Nitzan

  • What is the appropriate product name for CSS 11500 on Bug Toolkit

    Today I tried to search DDTs of CSS 11500 on Bug Toolkit (http://www.cisco.com/cgi-bin/Support/Bugtool/home.pl), however I can not find out appropriate product name corresponding to CSS 11500.
    Before I had searched DDTs of CSS 11500 on Bug Toolkit many times, at that time, if my memory correct..
    I selected "Cisco CSS 11500 Series Content Services Switches" in the list of "Search for bugs in other Cisco software and hardware products" on Bug Toolkit.
    But I can not find this product name today.
    Do you know what product name appropriate for CSS 11500 on Bug Toolkit ?
    Your information would be appreciated.
    Best regards,

    Hi Gilles,
    Thank you for your cooperation.
    Today, I can find the CSS at "new Bug Toolkit".
    http://tools.cisco.com/Support/BugToolKit/action.do?hdnAction=searchBugs
    Select Product Category: Application Networking Services
    Select Product: Cisco CSS 11000 Series Content Services
    So I understand I should go "new Bug Toolkit" instead of old "Bug Toolkit" to
    search any DDTs for CSS 11500.
    Many thanks.
    Best regards,

  • Keyword Search in Bug Toolkit - How effective is this search method for you?

    When searching by keyword(s) in Bug Toolkit, do you receive relevant results or do you often have to redo your search?  Any specifics you can provide would be helpful!

    When searching by keyword(s) in Bug Toolkit, do you receive relevant
    results or do you often have to redo your search?  Any specifics you
    can provide would be helpful!
    Hi,
    With my experience i need to redo the search and very rarely i get in first attempt.But onething sure with previous experience bug tool kit search is good now at least it provides results with asked key word and search results are fast also.
    Ganesh.H

  • Cannot see CSCto65299 in bug toolkit

    I was provided with bug CSCto65299 in a support case recently and was told the bug was public, but the bug toolkit says it is not.
    Is this bug public or is it not?

    Bobby,
    The defect should be visible.  The bug is updated and will appear within 48 hours. 
    The issue is fixed in the CCO code for 4.1.1. 
    Regards,
    Wes

  • Scheduled Outage Planned for Bug Toolkit on April 2nd 2011 between 09:00AM -09:00PM PST

    Cisco Bug Toolkit Users
    There is a scheduled outage planned for Saturday, April 2nd 2011 between 09:00AM and 09:00PM PST.
    During this period, Bug Toolkit will be experiencing intermittent outages due to Data Center related enhancements
    being implemented in our tools environment. 
    Please plan accordingly. 
    Thank you.
    The Bug Toolkit Team

    Thanks Arun for keeping the users informed.
    Sent from Cisco Technical Support iPhone App

  • Scheduled Outage Planned for Bug Toolkit on Jan 9th 2011 between 03:00AM -11:00AM PST

    Cisco Bug Toolkit Users
    There is a scheduled outage planned for Sunday, Jan 9th 2011 between 03:00AM and 11:00AM PST.
    During this period, Bug Toolkit will be experiencing intermittent outages due to Data Center related enhancements
    being implemented in our tools environment. 
    Please plan accordingly. 
    Thank you.
    The Bug Toolkit Team

    Thanks Arun for keeping the users informed.
    Sent from Cisco Technical Support iPhone App

  • Looking for "Java Web Developers Toolkit"

    Hi,
    Where can I find the Java classes that comprise the "Java Web Developers Toolkit"?
    I'd perferr not to install a full size tool like JDevelope. I really just need the classes.
    Art

    To start, ensure that you get books/tutorials which covers JSF 1.2. Some old books still covers JSF 1.1 only and the changes in 1.2 were fairly big. I can recommend the book "JSF: The Complete Reference". If I am correct, the "JSF in Action" book is only targeted on JSF 1.1 and thus fully outdated.
    To learn JSF you need to learn/know/understand at least the following basic concepts:
    HTTP: [http://www.w3.org/Protocols/rfc2616/rfc2616.html]
    HTML: [http://www.w3schools.com/html/]
    CSS: [http://www.w3schools.com/css/]
    JS: [http://www.w3schools.com/JS/]
    HTML DOM: [http://www.w3schools.com/HTMLDOM/]
    JSP/Servlet: [http://java.sun.com/javaee/5/docs/tutorial/doc/] (part II chapters 1-9)
    Once learnt/understood the above stuff, you can continue with JSF:
    JSF specification: [http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html] (pick 1st download)
    JSF API document: [http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/overview-summary.html]
    JSF TLD document: [http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/tlddocs/index.html]
    JSF in general: [http://java.sun.com/javaee/5/docs/tutorial/doc/] (part II chapters 10-15)
    As an alternative to JSP you can also use Facelets, which offers much more advantages above JSP, especially in terms of templating and compositions. The upcoming JSF 2.0 is going to use Facelets as the default supported view technology instead of JSP. So it is better to learn it as well: [https://facelets.dev.java.net/nonav/docs/dev/docbook.html].

  • Java PDK Bugs and Issues

    Here are some bugs and issues I've run across using the JPDK that I thought other
    developers should be aware of. The following information comes from using JPDK
    1.1 with Oracle Portal Version 3.0.6.3.3 Early Adopter on Windows 2000.
    1) Do not use a colon character (':') in the String value returned by the method getTitle( Locale l ) in the class Portlet. Registering the provider will appear to succeed, but when you view the Portlet Repository you will get the following error message:
    An Unhandled Exception has occurred. ORA-06502: PL/SQL: numeric or value error:
    character to number conversion error
    Your provider and its portlets will not appear in the Portlet Repository when this error occurs.
    Perhaps other characters will cause this error as well.
    2) The Provider class method initSession() is supposed to propagate the array of returned Cookies back to the browser. The Cookies are never propagated to the browser. This is a huge road-block for our application and we need to have this problem fixed as there is no workaround.
    3) There is a limit to the number of portlets you can have per provider. I initially wrote a provider class that managed 19 portlet classes. However, after registering the provider only 17 portlet classes were loaded by the provider and/or displayed by the Portlet Repository. I had to create a second provider to manage additional portlets. The second provider worked out fine for me because I have 5 portlets that are for "administrator" users only. Moving these portlets left 14 portlets for the first provider to manage.
    Note: I don't know if this error occurs using the provider.xml method of implementing a provider and its portlets. My provider and portlets are implemented directly using the Java class API's.
    4) Sometimes I will receive the error "Meta data missing for portlet ID=<number>" when a portlet is rendered for the first time. This error does not occur often but when the error happens two conditions are met:
    a) The portlet is being rendered for the first time
    b) The HTTP and Web Assistant NT services have recently been started.
    This error is obviously caused by some timeout but increasing the timeout values
    for both the provider and the portlet has no effect. This error may be restricted to the NT platform.
    The following notes are not bugs but issues to be aware of:
    1) Make sure you have the "sessiontimeout" parameter defined when declaring the initArgs of a servlet in the zone.properties file and you intend to register your provider with a "Login Frequency" of "Once per User Session". For example:
    servlet.urlservlet.initArgs=debuglevel=1,sessiontimeout=1800000
    If you leave off the session timeout, Oracle Portal will call your provider's initSession() method for every request constantly generating new a session ID.
    2) Currently there is no means to check whether a ProviderUser has administrative
    privileges. This feature would be extremely helpful for restricting which portlets a user has access to when the provider's getPortlets() method is called.
    3) Currently there is no Java API for storing user and global preferences in the
    Oracle database. The JPDK provides a PersonalizationManager class but the method
    of storing the preferences needs to be implemented by the developer.
    The default Personalization Manager persists user preferences as a file
    to disk. However, this method opens up security holes and hinders scaleability.
    We got around the security and scalability issues by using Oracle's JDBC
    driver to persist user and global preferences to custom tables in the underlying Oracle database.
    I would appreciate hearing from anyone who has run across the cookie propagation issue and has any further insights.
    Thanks...
    Dave White
    null

    David,
    Thank you for your feedback on the JPDK. The information you provide helps us understand how customers are using 9iAS
    Portal and its development kits. I apologize for the delay in getting back with you. Since you are using the Early Adopters
    release, we wanted to test a few of the bugs and issues on the production release of 9iAS Portal.
    1) Using a colon character (:) in the String value returned by the method getTitle(Locale l) returned the ORA-06502 error is a
    known issue. This issue actually occurs within 9iAS Portal and should be resolved in the first maintenance release scheduled
    for 9iAS Portal.
    Waiting on reply from Nilay on #1
    2) The Provider class method initSession() not propagating the array of returned cookies back to the browser is an issue that we are currently working on. This bug has been fixed for most cases in the first maintenance release. A 100% fix of this issue is still being worked on.
    3) The limit to the number of portlets you can have per provider was an issue in the Early Adopter release, but is no longer an issue with 9iAS Portal production. Upgrade to the production release and you should no longer see this problem.
    4) The error "Meta data missing for portlet ID=<number>". I have not seen or heard about others receiving this same message. For this error, can you upgrade to the production version and let me know if you still receive this error message. At that time we can check for differences within the configuration.
    Not bug, but issues......
    1) You have made a good point with the sessiontimeout parameter. The JPDK uses servlet 2.0 APIs which does not provide access to the sessiontimeout. Currently, you will need to specify the sessiontimeout parameter in the zone.properties file.
    2) This is true. Currently there is no means to check whether a ProviderUser has administrative privileges. This is on our features list for future enhancements.
    3) This is also true. The DefaultPortletPersonalizationManager was created as a default runtime for developers not used to writing portlet code. It allows developers to write portlet code without concentrating on the underlying framework. Once a developer becomes more experienced with the JPDK and portlet environment, we encourage them to create their own
    customization manager. This includes changing how the portlet repository is stored or changing how the user customization is
    handled and where it is stored. You have no limitations as long as you follow the guidelines of the PortletPersonalizationManager interface.
    I hope this information helped. Again, we appreciate and welcome this type of feedback, it helps us not only locate bugs and issues, but also helps prioritize our enhancement list.
    Sue

  • Java.lang.NoClassDefFoundError Toolkit.getDefaultToolkit

    hi all
    i got this error in a servlet.
    i wrote it on my computer with no errors but, when i moved and executed it on a linux machine it doesn't work:
    java.lang.NoClassDefFoundError at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
    at counter.count.createCounter(count.java:245)
    the code is
    images=Toolkit.getDefaultToolkit().getImage(imageSrc);
    i think that the jdk version is the same on both the computers (1.4.0 or higher), and the code is the same!
    why have i this problem
    thanx
    sandro

    hi rajesh
    you don't know how i'm happy to see your answers!
    i'm so desperate with this problem!
    as you asked to me, this is the full stack trace that tomcat prints when i call my servlet:
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:130)
         at java.awt.Toolkit$2.run(Toolkit.java:712)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
         at counter.count.createCounter(count.java:231)
         at counter.count.processRequest(count.java:176)
         at counter.count.doGet(count.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:536)
    i don't know if there is some environment variable set up in a different way from my system (w2k) to the real server system (linux), also because i installed the jdk (1.4.0 on windows) without setting anything
    if can help i'll post you soon the version of tomcat/jdk used by linux
    thanx a lot
    sandro

  • Java Servlet BUG (Possibly)-Servlet classname replaces retrieved doc name

    I created a test servlet (TestServlet.java) which reads data from a file which could be pdf/doc/xls/zip etc and presents the file to the user for download. When the user clicks on the save option to save the file the default name before the file extension of the file in the save dialog box is always TestServlet. i.e. If the file being downloaded is BEA.doc the default name in the save dialog box is TestServlet.doc
    The contents of the file(data in the file) are correct but the default name should be BEA.doc and not TestServlet.doc. I get the same result if the file is a pdf/xls or any other file type which is being downloaded.
    We tested this in BEA Weblogic 8.1 and Tomcat and get the same results both places so this issue is not application server specific and seems like a bug to us.
    The TestServlet.java file is below
    package com.test;
    import java.io.*;
    import java.util.*;
    import javax.servlet.http.*;
    public class TestServlet  extends HttpServlet
        private String fileName = "c:/BEA.doc";
        private FileInputStream  rd;
        private ByteArrayOutputStream wr;
        byte[] buf = new byte[8192];    //buffer size
        byte[] fileData;
        public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
            doPost(request,response);     
        public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
            int count = 0;
            try
                File theFile = new File(fileName);
                if (theFile.exists())
                    try
                        rd = new FileInputStream(fileName);
                        wr = new ByteArrayOutputStream();
                        while ((count = rd.read(buf)) > -1)
                            wr.write(buf, 0, count);
                        rd.close();                   
                        fileData = wr.toByteArray();
                        response.setContentType("application/msword");
                        OutputStream sos = response.getOutputStream();
                        sos.write(fileData);
                        sos.flush();
                        sos.close();                  
                    catch(Exception ex)
                        System.out.println(ex.getMessage());
                else
                    response.setContentType("text");
                    response.getWriter().write("no data");
            catch (Exception e)
                e.printStackTrace();       
    } I get the same results. i.e. The name of the document downloaded by the servlet is TestServlet.doc instead of BEA.doc which is what I have in c:\BEA.doc.

    The web browser downloading this knows nothing about the file you are loading from disk and sending via the servlet. All it knows is that it requested via Http on the url TestServlet, and is getting something in return.
    A quick google pulled up this link: http://builder.com.com/5100-6370-1027645.html
    You might try this:
    response.setHeader("Content-Disposition","inline;filename=\"BEA.doc\"");
    good luck,
    evnafets

  • Java URL bug

    I guess this is a bug in java.
    I tried opening a page : http://nds1.nds.nokia.com/uaprof/N3250r100.xml. The page has UAProf info of Nokia 3250. It works and opens fine.
    However the page http://nds1.nds.nokia.com/ does not. If you tried opening it from browser (Mozilla) it returns page not found and specifically says "The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it."
    While trying to open the page with the following snippet
    profile="http://nds1.nds.nokia.com/uaprof/N3250r100.xml";
    URL url = new URL(profile);
    SAXReader reader = new SAXReader();
    Document doc = reader.read(url);
    It throws an UnknownHostException.
    How can I fetch this page without havign this error, there shld be a way to bye pass this.

    I am behind a proxy but i think java uses my default browser setting to connect to the internet.
    If it does not, that's still a bug in java, it shld b able to detect default browser settings. However, atleast if it can't it should allow setting the proxy server and port.
    Any idea as to how to make this config?
    Note: The unknown host exception is complainin about the host http://nds1.nds.nokia.com which I cannot access too from the browser.
    Thnx.
    Message was edited by:
    lekkie.aydot

Maybe you are looking for