Problems while runnig an project

Hi
I've just install jdeveloper 10.1.2 before this I've installed jdeveloper 10.1.3
I've created a project (in jdeveloper 10.1.2) and when I want to run it, this error appear:
Error: initialization error: class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0 on classpath /usr/java/jdk1.5.0_05/jre/lib/rt.jar:/usr/java/jdk1.5.0_05/jre/lib/i18n.jar:/usr/java/jdk1.5.0_05/jre/lib/sunrsasign.jar:/usr/java/jdk1.5.0_05/jre/lib/jsse.jar:/usr/java/jdk1.5.0_05/jre/lib/jce.jar:/usr/java/jdk1.5.0_05/jre/lib/charsets.jar:/home/juank/JDeveloper/prueba/Project/classes:/usr/jdev1012_base/j2ee/home/lib/ojsp.jar:/usr/jdev1012_base/j2ee/home/jsp/lib/taglib/ojsputil.jar:/usr/jdev1012_base/j2ee/home/oc4j.jar:/usr/jdev1012_base/j2ee/home/lib/servlet.jar:/usr/jdev1012_base/jdev/lib/ojc.jar
Please somebody knows what's happen now?
Thank

Hi Shay:
OK, I know that, but I need work with JDeveloper 10.1.2; I have the JDK 1.4 and the JavaHome from the jdev.conf in /usr/java/j2sdk4... but anyway when I run my project show this error:
Error: initialization error: class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0 on classpath /usr/java/jdk1.5.0_05/jre/lib/rt.jar:/usr/java/jdk1.5.0_05/jre/lib/i18n.jar:/usr/java/jdk1.5.0_05/jre/lib/sunrsasign.jar:/usr/java/jdk1.5.0_05/jre/lib/jsse.jar:/usr/java/jdk1.5.0_05/jre/lib/jce.jar:/usr/java/jdk1.5.0_05/jre/lib/charsets.jar:/home/juank/JDeveloper/prueba/Project/classes:/usr/jdev1012_base/j2ee/home/lib/ojsp.jar:/usr/jdev1012_base/j2ee/home/jsp/lib/taglib/ojsputil.jar:/usr/jdev1012_base/j2ee/home/oc4j.jar:/usr/jdev1012_base/j2ee/home/lib/servlet.jar:/usr/jdev1012_base/jdev/lib/ojc.jar
What more must I to do?
Thanks.

Similar Messages

  • Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Have you checked out the topics at the right in the More Like This section?
    OT

  • Problem while creating CAF project in NWDS workspace

    Hi Experts,
    We are facing a problem while creating CAF project in NWDS workspace. Even though we have tried in new workspace we are facing the issue. Find the below build error.
    We are not getting any error when we build from CBS.
    [javac] ERROR: C:\sap\test_VC_DC.jdi\0\DCs\test.com\ja\bl\journal\ejbmodule\_comp\src\com\test\ja\bl\journal\modeled\ModifyJournalLineItemRequestMessage.java:7: cannot find symbol
    [javac] ERROR: symbol  : class JournalLineItemDetail1
    [javac] ERROR: location: package com.test.ja.cm.util.modeled
    [javac] ERROR: import com.test.ja.cm.util.modeled.JournalLineItemDetail1;
    when we expand com.test.ja.cm.util.modeled there is no file with name JournalLineItemDetail1 and the actual file exists is JournalLineItemDetail but we are not able to understand why 1 is appending to the file JournalLineItemDetail. Can somebody throw some light on this?
    Regards,
    Pradeep

    Have you checked out the topics at the right in the More Like This section?
    OT

  • Problem while migrating EJB Project developed in NWDS 2.0.11 to NWDS 7.1

    Hi all,
    I have developed one EJB Project using NWDS 2.0.11 and now i am migrating it to NWDS 7.1. I have copied that EJB project into the work space of NWDS 7.1. Now its giving build problems for the class path variables for ejb20.jar like...
    Unbound classpath variable: 'TSSAP_JAVAX_HOME/lib/ejb20.jar' in project RemoteDeployEJB RemoteDeployEJB July 27, 2006 11:52:09 AM 29
    so pls help me to resolve this issue.How to set class path for that variable in my NWDS 7.1.
    Regards,
    Kiran.

    Hi Kiran,
      You need to migrate the project.There should be an error message in the problems view that the project should be migrated. Right click on the error message and choose quick fix.Then Migrate Project option should appear. Choose it and follow the steps in the migration wizard.
    Best Regards, Radoslav

  • Trusted Connection Problem while creating a project in MDM WD Confg.Manager

    Hi Experts,
    We have the Netweaver instance (CE7.2) and MDM instance (MDM7.1SP07) installed in the same machine.
    In our current scenario we are trying to create a projects in the MDM WD Configuration Manager for displaying the MDM records.
    Things Done:-
    1) Created allow.ip file and added the IP address of the server and also added the IP address of the Local Host (127.0.0.1).
    2) Same user exists in the Netweaver and as well as in the MDM repository with same case.
    3) Created a necessary MDM Destination.
    4) After adding the entry in the allow.ip file, i have restarted the MDM server too.
    Now when i create a project in the Config. Manager, after selecting the MDM destination i get a Trusted Connection error.
    Cannot retrieve language list from repository [null] on server [null]. UserConnectionException: Can not connect with UserSessionContext to repository 'Inbox' on the server 'ctsinsapnw7'.,  Can not connect with UserSessionContext to repository 'Inbox' on the server 10.239.31.178'.,  Can not resolve JCA connection. Cause exception: Connection Failed: Cannot create JCA connection. Cause exception: Failed to create trusted connection to MDM server '10.239.31.178' for user 'mdmuser' because server is not defined as trusted, error code: ConnectionNotTrusted,  com.sap.mdm.internal.protocol.manual.ServerException: The connection is not trusted
    Is there anything to be done. Any help on resolving this will be very much appreciated.
    Regards,
    Prasanna Kumar R Y

    Please make sure of below things...
    1. Location of allow.ip file.
             Default location is exe folder where your MDM server executable are available.
    2. If not using default location,
             Then check the entry of 'TrustedFiles Dir" property in mds.ini file.
    3. Is server stops completely?
             Its very important to restart the server.
             Sometime console may show that the server is stopped but server might be running.
             If possible please check whether server stopped, using Console on different machines.
    4. Check the log of MDM server while starting and stopping the MDM server.
             Please pest the log messages in this thread to help you better.

  • Problems while creating a project from a war file...

    Hi there, I created a new project in jDev 10.1.3 from a war file that contains a web site that originally ran on TomCat. The problem is that my web.xml file does not contain any information about the servlets that I have in the war file. So when I try running a servlet, I always get an error.
    Is there a way to bypass the need to declare every single servlet I have in the web.xml file? If not, are there tools that exist that I could use to do this automatically?
    Thanks

    Hi,
       You can try the following:
    1. Give the fully qualified domain name of the DTR server host in NWDS Preferences->Development Configuration.
    2. Check if your WAS and JDI are on a higher SP level. If yes then use the corresponding NWDS.
    Regards,
    Satyajit.

  • Problem while deleting the Project & Extension created using EEWB

    Hi
    I have created a Project and Extension to add a new field in Opportunity using EEWB however it got some errors and hence
    wanted to delete this Extension and Project as well but while deleting the Extension system is throwing an error 'Extension XXX couldn't be deleted'.
    Because of this we have been facing some issue in BW Extractions.
    Could you please help me out how can we delete this ?
    Best Regards
    Anil

    Hi Prasenjit
    I have deleted all the fields and corresponding structures as per your suggestion however still I'm not able to delete the
    Extension and Project.
    Best Regards
    Anil

  • Problems while compiling a project that uses Database Adapter

    Hi,
    I am working on a small WebService that uses the Database Adapter to connect with the Oracle-Lite database. The process is a synchronous process which has client and DatabaseService as the partner link. The goal of this project is to get two inputs from the user and send it over to the DatabaseService for it to select the rows from the table based on the inputs sent. The process activity has an invoke function which had two varibles Invoke_1_inputVarible and Invoke_1_outputVarible. I have included the *.xds that contains the database schema. When I compile the project i get the following error
    Error(38): [Error ORABPEL-10035]: wrong messageType [Description]: in line 38 of "D:\OraBPELPM_2\integration\jdev\jdev\mywork\Workspace1\Login\Login.bpel", messageType "{http://xmlns.oracle.com/pcbpel/adapter/db/ds/}EmployeeRole_msg" of variable "Invoke_1_dsSelect_InputVariable" does not match the expected messageType "{http://xmlns.oracle.com/pcbpel/adapter/db/ds/}dsSelect_inparameters" in <invoke>. [Potential fix]: make sure the correct variable is used in invoke.
    My question is how do I assign correct messageType for the variables.
    XSD File:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" elementFormDefault="unqualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="EmployeeRoleCollection" type="EmployeeRoleCollection"/>
    <xs:element name="EmployeeRole" type="EmployeeRole"/>
    <xs:complexType name="EmployeeRoleCollection">
    <xs:sequence>
    <xs:element name="EmployeeRole" type="EmployeeRole" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="EmployeeRole">
    <xs:sequence>
    <xs:element name="empid" type="xs:decimal" minOccurs="0" nillable="true"/>
    <xs:element name="password" type="xs:string" minOccurs="0" nillable="true"/>
    <xs:element name="role" type="xs:string" minOccurs="0" nillable="true"/>
    <xs:element name="uid" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="findAllInputParameters" type="findAll"/>
    <xs:complexType name="findAll">
    <xs:sequence/>
    </xs:complexType>
    <xs:element name="dsSelectInputParameters" type="dsSelect"/>
    <xs:complexType name="dsSelect">
    <xs:sequence/>
    </xs:complexType>
    </xs:schema>
    DatabaseService.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login"
    schemaLocation="EmployeeRole_table.xsd"/>
    </schema>
    </types>
    <message name="EmployeeRoleCollection_msg">
    <part name="EmployeeRoleCollection" element="top:EmployeeRoleCollection"/>
    </message>
    <message name="dsSelect_inparameters">
    <part name="dsSelect_inparameters" element="top:dsSelectInputParameters"/>
    </message>
    <message name="EmployeeRole_msg">
    <part name="EmployeeRole" element="top:EmployeeRole"/>
    </message>
    <portType name="ds_ptt">
    <operation name="dsSelect">
    <input message="tns:dsSelect_inparameters"/>
    <output message="tns:EmployeeRoleCollection_msg"/>
    </operation>
    <operation name="queryByExample">
    <input message="tns:EmployeeRole_msg"/>
    <output message="tns:EmployeeRoleCollection_msg"/>
    </operation>
    </portType>
    <binding name="ds_binding" type="tns:ds_ptt">
    </binding>
    <service name="ds">
    <port name="ds_pt" binding="tns:ds_binding">
    <jca:address location="eis/DB/BPELSamples"
    />
    </port>
    </service>
    </definitions>
    <b>Login.bpel</b>
    <process name="Login" targetNamespace="http://xmlns.oracle.com/Login" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/ds/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" xmlns:client="http://xmlns.oracle.com/Login" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="client:Login" myRole="LoginProvider"/>
    <partnerLink name="PartnerLink_1" partnerRole="ds_role" partnerLinkType="ns1:ds_plt"/>
    </partnerLinks>
    <variables>
    <variable name="inputVariable" messageType="client:LoginRequestMessage"/>
    <variable name="outputVariable" messageType="client:LoginResponseMessage"/>
    <variable name="Invoke_1_dsSelect_InputVariable" messageType="ns1:EmployeeRole_msg"/>
    <variable name="Invoke_1_dsSelect_OutputVariable" messageType="ns1:EmployeeRoleCollection_msg"/>
    </variables>
    <sequence name="main">
    <receive name="receiveInput" partnerLink="client" portType="client:Login" operation="process" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload"/>
    <to variable="Invoke_1_dsSelect_InputVariable" query="/ns2:EmployeeRole"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="PartnerLink_1" portType="ns1:ds_ptt" operation="dsSelect" inputVariable="Invoke_1_dsSelect_InputVariable" outputVariable="Invoke_1_dsSelect_OutputVariable"/>
    <assign name="Assign_2">
    <copy>
    <from variable="Invoke_1_dsSelect_OutputVariable" part="EmployeeRoleCollection"/>
    <to variable="outputVariable" part="payload"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="client" portType="client:Login" operation="process" variable="outputVariable"/>
    </sequence>
    </process>
    Thanks,
    Niv

    Help! SOS....
    Niv

  • Facing Problem while adding Azure Project to existing C# web application

    Hi,
    I have a web application with 5 projects under one Solution. I want to publish this web application on Windows Azure, for that I have tried to add Windows Azure Cloud Service Project but this option is not appear in option list. But when I create new web
    application add Windows Azure Cloud Service Project option appeared. I didn't understand why this happened. I have also tried to migrate old code to new project but having error
    " The type or namespace name 'DataAnnotations' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?)"
    If I add this dll then more than 18000 error occures like control not found(The name 'lnkbtnNew' does not exist in the current context).
    Please help me out, I am struggling since couple of days.
    Thanks in advance.

    Hi,
    Please try the following steps, see if it helps.
    1. create new azure cloud service project (it is better to choose the same version of .netframework with your web application );
    2. right click the solution, add your web application as Existing Project
    3. Right click on the “Roles” node in the Cloud Service project and select “Add | Web Role Project in solution…”
    Please try to set the “Copy Local” to “True” in order to avoid assembly missing issue, see more at:
    http://blogs.msdn.com/b/asiatech/archive/2013/01/09/how-to-resolve-the-could-not-load-file-or-assembly-issues-on-windows-azure-web-sites.aspx
    If this post doesn't give you help, please follow up with more detailed information.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Errors while configuring Implementation Project

    Hello!
    I have installed BI APPS 11.1.1.7 on AIX 6.1  64x (also I have done it On CentOS Linux 64).
    I have installed latest BI EE Bundle Patch and Latest weblogic Patch (10.3.6.0.6)
    I am facing problems while configuring implementation projects in Functional Setup Manager when I open implementation project itself or any element in it:
    An application error occurred. See the incident log for more information. 
    An application error has occurred. Your help desk can use the following information to obtain a more detailed description of this incident: 4, Server Domain: bifoundation_domain, Server Instance: bi_server1, Application Name: FunctionalSetupAppLite 
    I can see this errors in server log:
    java.sql.SQLException: invalid name pattern: CENTOS_BIACOMP.FND_TABLE_OF_VARCHAR2_255
    and
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    <Nov 4, 2013 11:33:11 AM EET> <Emergency> <oracle.dfw.incident> <BEA-000000> <incident 4 created with problem key "DFW-99998 [oracle.jbo.NoDefException][oracle.jbo.mom.DefinitionManager.findDefinitionObject][FunctionalSetupAppLite]">
    <Nov 4, 2013 11:33:14 AM EET> <Warning> <oracle.adf.controller.faces.lifecycle.Utils> <BEA-000000> <ADF: Adding the following JSF error message: <html>An application error occurred. See the incident log for more
      information.<br><br>An application error has occurred. Your help desk can use the
      following information to obtain a more detailed description of
      this incident: 4, Server Domain: bifoundation_domain,
      Server Instance: bi_server1, Application Name: FunctionalSetupAppLite.</html>
    oracle.jbo.JboException: <html>An application error occurred. See the incident log for more
      information.<br><br>An application error has occurred. Your help desk can use the
      following information to obtain a more detailed description of
      this incident: 4, Server Domain: bifoundation_domain,
      Server Instance: bi_server1, Application Name: FunctionalSetupAppLite.</html>
    I founded this 
    We saw this error in log, this is not hampering anything, but any suggestion for this.
    post and added this option to JAVA arguments of every weblogic server (Admin, bi and odi)
    -Doracle.jdbc.createDescriptorUseCurrentSchemaForSchemaName=true
    After that I have restarted bi_server1 and I am still havinf this error.
    Is there any way to fix it?
    Ths.

    Hi, Fesenko.
    I have the same problem and FSM Task List is not showing all tasks available to Functional Developers (like Common Tasks Folder).
    Any suggestion?
    Fernando dRG.

  • I am facing a problem while working in Muse... The issue is I cannot delete a page from my plan, when I am trying to delete it showing an error and the application shuts down. I am working on an emergency project which I got to submit it tomorrow I hope y

    I am facing a problem while working in Muse... The issue is I cannot delete a page from my plan, when I am trying to delete it showing an error and the application shuts down. I am working on an emergency project which I got to submit it tomorrow I hope you will find a solution for the same.Help with using Adobe Muse CC

    Thanks,
    I have tried with a new site it's working perfectly.
    See the screenshot of the error.
    Thanks for your support Rohit

  • PREMIERE PRO CS5.5 Gamma problem while exporting project to mjpeg A or B

    Dear Sir,
    I'm in a big ****. I've directed and edited 1h documentary for Finnish television, also, the technical specs requested by the TV Channel is all production Broadcast masters must be encoded with Apple ProRES codec or MJPEG A or B.
    As i'm working on PC (win7), the ProRES codec doesn't exist on PC system, so i've done the export to MJPEG. The problem is i have a different gamma level when i watch the final export with Quicktime or VLC. Of course i can adjust the level in those players, but it doesnt effect the file. When i import the Qt file into a Premiere sequence, the gamma level is still **** and different from my original level i have from my timeline and preview window. If i export the project to H264 1920x1080p25, then the gamma is perfect with Qt, VLC and WinMedia player. But the TV station don't wanna work with H264. Deadline is on next monday, and i can't send a Qt MJPEG file with wrong gamma !!!Any chance to find a solution to fix it ??? After reading different forum, i can see this problem exist since many years and never been solved.
    What can i do ??
    Denis.

    Things is my prpject includ few effect plugins i bought, so what ever i could find a mac, not your i could export xml project to finalcut with plugins it dont have
    Denis
    Sent from my iPad.
    Le 31 mai 2013 à 15:20, Fuzzy Barsik <[email protected]> a écrit :
    Re: PREMIERE PRO CS5.5 Gamma problem while exporting project to mjpeg A or B
    created by Fuzzy Barsik in Premiere Pro - View the full discussion
    If it were me, I wouldn't encode to MJPEG.
    So as to encode to ProRes on Windows you can utilise any solution based on ffmpeg/ffmbc or better yet find a Mac with Final Cut or Compressor installed for delivering critical work.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5368019#5368019
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5368019#5368019
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5368019#5368019. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Premiere Pro by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem while assigning multiple staffing to project role.

    Dear All,
    I am facing problem while assigning multiple staffing to project role.
    In the project role, we are doing staffing ( assigning BP). While assigning the BP's getting below errors.
    Resource assignments overlap
    Message no. DPR_BUPA_LINK004
    Diagnosis
    The validity period '10.02.2008'-'01.03.2008' for the assignment of project role Product Manager and ' Rakesh Pradhan' overlaps with the validity period of the assignment ''.
    However, the project role type does not allow several staffings to be edited at the same time in the project role.
    System Response
    The system does not allow this constellation of data when saving.
    Procedure
    Check and correct the start and finish dates of the staffings affected.
    Request you to advise in fiixng the issue.
    Thank you for your cooperation.
    Regards,
    Ranjan

    Hi Biplab,
    For multiple staffings in the same time frame, check the option of 'Edit in Parallel' in the Role Type settings in SPRO.
    Let me know if that helps.
    Regards,
    Vivek Pandey

  • Error while opening the projects in cProjects

    Hi,
        I am encountering a problem while opening the already created projects in cProjects. The error type is
    The following error text was processed in the system DVR : Type conflict when calling a function module.
    The error occurred on the application server and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_DPR_OBL_PROXY~LOAD_OBJECT_LINKS of program CL_DPR_OLR3_EASYDMS===========CP
    Method: IF_CGPL_ASSIGNMENT_PERSISTENCY~FETCH of program CL_DPR_OBL_PERSISTENCY========CP
    Method: LOAD of program CL_CGPL_ASSIGNMENTS===========CP
    Method: LOAD of program CL_CGPL_PROJECTS==============CP
    Method: LOAD of program CL_CGPL_ENTITIES==============CP
    Method: LOAD_PROJECTS of program CL_DPR_APPL_OBJECT_MANAGER====CP
    Method: LOAD_OBJECTS_OF_OBJECT_TYPE of program CL_DPR_BAPI_SERVICES==========CP
    I request you all to help me out solve this issue if you know.
    Regards
    Nachimuthu Ramesh

    Hi Vivek,
       Thanks for responding to my question. I made changes as per your suggestion and now I am not getting the error message whatever I forwarded. But I am getting another error message 'You require authorization to display Project`. Pls help me out to solve this issue.
                   Thanking you
    Regards,
    N.Ramesh

  • PROBLEM while using URL in order to open a file from a servlet

    Hi,
    I am having a problem while trying to open a file from my servlet by using URL connection. Following is my code sample. what happens is when I first run my project it opens the file but after that when I rerun it again and again it sometimes opens it and sometimes not. if it can't open it it gives an error saying "the file is damaged and couldn't be repaired". I don't get any exceptions. if you guys can help me I will appreciate it so much... thanks.
    here is my code :
    URL url = new URL("http://demobcs.ibm.com:81/test.pdf");
    resp.setContentType(getContentType("http://demobcs.ibm.com:81/test.pdf"));
              ServletOutputStream sos = null;
              BufferedInputStream bis = null;
              try {
                   sos = resp.getOutputStream();
              } catch (Exception e) {
                   System.out.println("exception !!!!");
                   e.printStackTrace();
              System.out.println("burada2");
              try {
                   byte[] bytes = new byte[4096];
                   //bis = new BufferedInputStream(conn.getInputStream());
                   DataInputStream in = new DataInputStream(url.openStream());
                   //DataInputStream in = new DataInputStream(conn.getInputStream());
                   bis = new BufferedInputStream(in);
                   int j;
                   while ((j = bis.read(bytes, 0, 4096)) != -1) {
                        try {
                             sos.write(bytes, 0, 4096);
                             System.out.println("file is being read ...:");
                        } catch (Exception e) {
                             e.printStackTrace();
                   in.close();
                   bis.close();          
                   //sos.close();
              } catch (Exception e) {
                   System.out.println("exception :"+e.toString());
                   e.printStackTrace();
              }

    You are writing (<filesize> mod 4096) bytes of crap at the end of the file. Use your variable j instead for the number of bytes to write in your loop.

Maybe you are looking for

  • How do I put photos in an album and remove them from the camera roll?

    I would like to be able to move photos into an album and remove them from the camera roll. Is this possible? I take many photos of mundane things that I simply want to remember, such as serial number of products. I would like to save these photos for

  • Error while Import

    Hello, Oracle:10.2.0.3.0 OS: Windows 7 I have two dump files as dump14.dmp>> DATA_ONLY dump15.dmp>>METADATA_ONLY I am getting error while doing import in this way-[First import metadata then data] C:\Users\abc>IMPDP system/xyz@TDB  remap_schema=scott

  • Sales tax Field in PDF Form

    How do I create a sales tax field when creating a PDF form?

  • SQL2025N error in db2 backup to SAMBA filesystem

    Hi, we have mounted an external disk in our linux system using SAMBA. The db2 backup offline fails with this error message: ERRORMESSAGE: Error -2025 in dmdb6bkp.c(1498): SQL2025N  An I/O error "4" occurred on media "/BACKUP/APPS/HP2.0.db2hp2.NODE000

  • Automator Workflow as Finder Plug In Doesn't Seem to Work Correctly

    Has anyone noticed that if you create an Automator Workflow as a Finder Plug-in in Leopard it does not seem to work correctly or at all? I have a two action Workflow. 1. Get Selected Finder Items 2. Import Files into iPhoto When run inside Automator,