Database Error is comming in the code

Hi,
When i am running this java class then i am fetiching all the values from database table to the CSV file then i am getting the following database error.
import java.io.FileWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import com.fidelity.ftg.ereviewg2.migration.connection.DatabaseConnection;
import com.fidelity.ftg.ereviewg2.migration.vo.object.DmUserVO;
import com.fidelity.ftg.ereviewg2.migration.vo.table.Iereview.ITMigFilenetAttachErrorVO;
* @Organization: Fidelity Investments/FTG
* @Project: eReview_DataConversion
* @File: DatabseFetching.java
* @Description:
* @date: Oct 28, 2008
* @author: 197881
* @author 197881
public class DatabseFetching {
* @param args
public static void main(String[] args) throws SQLException, Exception {
// TODO Auto-generated method stub
DatabaseConnection con = new DatabaseConnection();
Connection connection = con.getConnection();
String AttachId=null;
StringBuffer buffer = new StringBuffer();
String tMigFilenetAttachErrorColumnName[] = {
ITMigFilenetAttachErrorVO.PIECE_ID,
ITMigFilenetAttachErrorVO.PIECE_NUM,
ITMigFilenetAttachErrorVO.PIECE_VER,
ITMigFilenetAttachErrorVO.PIECE_INSTANCE,
ITMigFilenetAttachErrorVO.ATTACH_ID,
ITMigFilenetAttachErrorVO.ERROR_CD,
ITMigFilenetAttachErrorVO.ERROR_REASON };
FileWriter createCsvFileObj = new FileWriter("D:/TCS/1.csv");
String SQL = "select * from t_mig_filenet_attach_error";
Statement stmt = connection.createStatement();
ResultSet resultObj = stmt.executeQuery(SQL);
while (resultObj.next()) {
AttachId=resultObj.getString("attach_id");
if(AttachId.equals("attacha"))
System.out.println("attach id is"+AttachId);
for (int i = 0; i < tMigFilenetAttachErrorColumnName.length; i++)
buffer.append(resultObj.getString(tMigFilenetAttachErrorColumnName));
buffer.append(",");
buffer.append("falure");
buffer.append("\n");
createCsvFileObj.write(buffer.toString());
createCsvFileObj.close();
*********************ERROR**************************
{color:#000000}# Connected to Database: sun.jdbc.odbc.JdbcOdbcConnection@a62fc3
attach id isattacha
Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
* at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)*
* at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)*
* at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(Unknown Source)*
* at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(Unknown Source)*
* at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)*
* at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)*
* at DatabseFetching.main(DatabseFetching.java:58){color}*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Do not crosspost. It's rude.
Stick to one topic in the right forum: [http://forums.sun.com/thread.jspa?threadID=5343468].

Similar Messages

  • How do i remove the 17 errors that come with the pricing userexit manual at

    how do i remove the 17 errors that come with the pricing userexit manual attached code...

    Try connecting the phone to the computer in "data storage" or "data transfer" mode, then open the memory card folder in Windows Explorer, and search the sounds there. If you can't see them, go to "Tools>Folder Options>View>Files and Folders>Hidden files and folders" and select "Show hidden files and folders". But I think that it would be a lot easyer just to remove them from the playlist manualy.
    Crossing bridges far ahead of the crowd.

  • I have a problem syncing iCal on my Macbook air (10.7.5) and my iPhone 4s (5.1.1) over iCloud. The following server error message comes up "The request (CalDAVAccountRefreshQueueableOperation) for account "iCloud" failed." Been to Apple - no luck. Ideas?

    I have a problem syncing iCal on my Macbook air (10.7.5) and my iPhone 4s (5.1.1) over iCloud. The following server error message comes up "The request (CalDAVAccountRefreshQueueableOperation) for account “iCloud” failed." Been to Apple Store - no luck instore, or with Super genius over the phone when with genius in store, taking data in real time via ethernet!
    I had to do a full wipe of my system because of time machine back up issues 2 weeks ago, and the error has only occured at some point since then. I only did a drag and drop of my user account folders/files into an External HDD rather than a copy of my user account (advised by the staff in store at Apple to do this) and when reimported, the Mail folders are all present but each message is in a sub-sub-sub folder that is numerically named. I do not have a mirror image of the hard disk prior to the wipe, only a time machine back up from 2 weeks prior to it being done. I am uncertain if this reinstall has caused the issue. 
    I am not happy to upgrade the software in my iPhone until I have the calendars working. I have purchased Mountain Lion, but again am concerned about upgrading until the issues are sorted.
    I have tried the other solutions on here with no luck. HELP please.
    Many Thanks.

    Progress Update.
    I made a back of what existing phtos and Videos I had on my Iplhone.  I used Image capture to do this making an entire back up of photos and videoa that were still intact on the phone.
    Image capture is god for this purpose, as it does exactly what you ask it to do without applying any rules or squishing the files back into iphote (which might also be corupted) 
    Image capture wil do the basic function of retriving the contents of the phone and save them as native files on your hard drive.
    Once I did this I erased my iphone, and re intitialised it restoring an older back up from icloud.
    As the retore was happneing - I did retreive the missing files that cuased the intial beviour as above, and I could play the videos that were missing in the above scenerio.  The wierd ting was however that even though the source files were now back on the device, the thumbnail previews were missing. Where I ahd balck thumb nails for server portions of the resotred content.
    I then went to bed as the restore is a long process.  When I woke up the library had library had cleaned itself up.  Mysteriously the prcess had deleted the files missing the their thumbnails.
    This is very perculiar and bad behavior.
    I am now repeating the process, and will attempt to download the missing content as it is restored and prior to the phone trying to fix itself.
    Here are the lessons learned.
    DO NOT rely on Photo Stream to keep back ups and synchornise videos from you IOS device. IT DOES NOT SUPPORT THIS CAPBILITY
    DO NOT rely on iCloud Back Up alone - always fd an occassional iTunes back up or more reliably still always take a back up of photos and video files using Image Capture to be doubly sure that you a have backd up any content.
    DO THIS NOW - dont wait to loose your phone ofr have your phone repaired by replacement at the apple Store.  (I did both :-(

  • I have a problem when iTunes card insert the card number comes message the code you entered has not been properly activated

    I have a problem when iTunes card insert the card number comes message the code you entered has not been properly activated

    Is the store that you bought it from close so that you could try going back to them and ask them to activate the card properly ? If not then try contacting iTunes Support (you will probably need to give them images of the front and back of the card, and possibly its receipt) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • Unable to load Database Error for one of the BSO Application.

    Hello Everyone,
    We have one Production Issue like suddenly the an Application Fiji while should be running was stopped. When i tried to restart it its showing Error.
    gvw3086-v.atlanta.hp.com:1423.Fiji    Start  application    August 28, 2013 8:32:24 PM SGT    Failed
    Error: 1002141 Unable to load database [Arirang], error code [1019038]
    gvw3086-v.atlanta.hp.com:1423.Fiji.Consol    Start database    August 28, 2013 8:33:30 PM SGT    Failed
    Error: 1002141 Unable to load database [Arirang], error code [1019038].
    I checked the Log but not sure it correct or not i see this Error message.
    [Wed Aug 28 11:33:48 2013]Local/Fiji///7944/Info(1002089)
    RECEIVED ABNORMAL SHUTDOWN COMMAND - APPLICATION TERMINATING
    But i also saw this error before but the application use to start automatically but this time it did not.
    can anyone help me on this.
    Regards,
    Naveen

    Hi,
    As i mentioned above its only for one Application Fiji. For a temporary Solution we tried to restart the Hyperion Services. But this did not work. One of the the Hyperion Service HyPService(not sure of the exact name). did not restart. So we have done a a fail over to other node and now the Fiji apps is running. But i don't think so what we have done is the correct fix for the solution. Have any one faced this problem.
    Hi John,
    Which Doc ID you mean to refer me is that the doc which comes with the Essbase Software.
    Regards,
    Naveen

  • Error for COM routine (Return code 40028)

    Dear Friends,
    Need your support in order to tackle this issue.
    Am working on SCM 4.1 ,Demand Planning.When you load the data in to the planning book you get the following error at the bottom:
    "Error for COM routine using application program (Return code 40028)".
    Well further investigation revealed the inconsistency in Live cache.It states the deviation in the start time in storage bucket profile and those in the data base.
    Your feedback on the same is welcome.
    Pramod

    Hello Pramod, 
    You reported the LCA < COM > routine error 40028:: Illegal timestamp in rough timegrid 
    You got this error, when you tried to load the data in to the planning book.
    The error could be due to the fact that the storage buckets profile and the time buckets profile in your application  scenario didn't match.
    Could you please check if they match or not using the report
    /SAPAPO/ADMIN_MVIEW_CONS_CHECK.
    Please check/change the definition of the bucket profiles that they match.
    Solutions may be:
    1) use a time bucket profile in your data view which match the storage bucket profile
    or
    2) deactivate your planning area, set there a storage bucket profile which match a time bucket profile, activate the planning area again and generate your planning book/data view again.
    If you need further assistance on this issue please create the OSS ticket to the component 'SCM-APO-FCS'.                                            
    Thank you and best regards, Natalia Khlopina

  • I am getting this error when i run the code in visual studio 2012 ultimate.The code is perfect one but i am getting error. Please help me.Thanks in advance

    WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

    You should post to the ASP.NET forum.
    http://forums.asp.net/

  • Every time I boot up I receive the message that "iCal cannot log in to your iCloud account because you password is incorrect-" I do enter it correctly but the same error message comes up the next time the computer boots up.  How do I correct this issue?

    How do I correct the problem that every timeI boot up I receive the message that “iCal cannot log in to your iCloud accountbecause you password is incorrect…” I do enter it correctly but the same errormessage comes up the next time the computer boots up?  Thanks.

    Hello jwpg,
    Thank you for the details of the issue you are experiencing after restoring an iCloud backup.  I recommend the following articles for an issue like this:
    iCloud: "Incorrect Apple ID or Password" alert when setting up iCloud after upgrading to iOS 7
    http://support.apple.com/kb/TS5207
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/TS5223
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Firefox 14.0.1 has a spell checking error./ bug in the code

    I just had all my machines update to 14.0.1 (WIN XP SP3)
    I had a clean boot right before the update occurred.
    This is the first time I had used this version on this machine.
    When the program came up, I had no access to the spell checker at all. Nothing I did could change this (checking and un-checking the feature in the right click menu.
    So, I selected the option of restarting the browser in "SAFE MODE" with no add-ons. There was no change at all (still no spell checking)
    So, I went to this site, made an account, activated the count (this entire time FIREFOX had no spell checking) and I created a report.
    I was most of the way done writing the report when suddenly the spell checking started to work. I made no changes to the settings, when suddenly I had spell checking working.
    This means there is an intermittent error;p often the hardest to find from my 20+ years of programming experience (Senior IT contractor)..
    So, have find finding this one. Intermittent bugs are the hardest to track, and tend to come from issues like scope issues, settings stored in files/registry, overly convoluted code (like a rush job that isn't fully understood & was just hammered on until it seemed to work). From my experience it often happens in the last steps of finishing a release - accidentally introducing a bug into what was a working section of code (unexpected ramification are a suspect) into a previously working program piece of a program.

    Hi BarleySinger and thanks for reporting us this issue.
    Yes. Intermitent bugs are really difficult to track and solve, so please try to do this things:
    * Try to reset Firefox so all settings that may be creating this problems will be removed.
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    * Try to perform a antivirus scan on your computer so you check you have no malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try some of the following programs to scan for malware:
    * [http://www.malwarebytes.org/mbam.php MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://windows.microsoft.com/MSE Microsoft Security Essentials] (A good permanent anti-virus if you don't already have one)
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!
    * Send us troubleshooting information.
    In order to be able to find the correct solution to your problem, we require some more non-personal information from you. Please do the following:
    *Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting information'' from the submenu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy all to clipboard''. Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.
    If you need further information about the Troubleshooting information page, please read the article [[Using the Troubleshooting Information page]].
    Thanks in advance for your help!
    * Check the issue is still reproducing intermitently, and it was not an isolated problem (Maybe Firefox was still preparing the spell checker).

  • I am trying to download lightroom5 on MAC and error has come up:  the app is from an unidentified developer.  what do i do next?

    downloading lightroom5,  on MAC and a message comes up with the app is an unidentified developer.  can someone help me?

    That's Apple OS X Gatekeeper kicking in.
    Control+Click instead of Click
    OS X: About Gatekeeper - Apple Support

  • Intermittent REP501: Unable to Connect to Database Errors

    Hi,
    This problem is occuring on a Oracle Application Server 10g (9.0.4.2) configured to run Forms and Reports.
    Operating system is Windows 2003 Server.
    Reports are called from Forms using the RUN_REPORT_OBJECT.
    Any user at any time running any report may receive a REP501: Unable to connect database error. Usually closing the Forms application and re-starting it clears the error.
    Reports trace indicates the database has returned either an "invalid username/password" or "account locked" error. This cannot be true because our Forms app logs each individual user into their own database account. The Reports server logs in to the database as the user when it makes its connection.
    This error clears itself without restarting the Reports server.
    We have also seen information in the Reports trace that indicates a possible crash of the VisiBroker osagent.
    The Windows event viewer does not show any errors or warnings.
    Is it possible a crashed osagent could cause the Reports server to return the invalid username/pasword and account locked errors?
    Any ideas on how to troubleshoot this further?
    TIA,
    Jim

    Hi,
    To know about the Action to be taken when REP-501 is encountered, you may want to refer to Oracle Reports Online Help available on OTN:
    http://www.oracle.com/technology/products/reports/index.html

  • Database error ??? anyone can help me .......i'm NEW to JSP

    Hi ,
    anyone can help me check wat's the following error means? my program can query and update movies & movie reviews to/from the database. When i tried to query either the movie or the movie reviews, the program works fine but when i try to update review also no problem . However, when i try to update new movies to the database, this error appears(the database already had data inside and i had make sure tat the table name n etc is correct):
    Database Error
    An Operation on the Movie Database Failed!
    org.apache.jasper.JasperException: Cannot find any information on property 'movie' in a bean of type 'db.UpdateMovies'
         at org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:363)
         at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:306)
         at org.apache.jsp.jdbc2_jsp._jspService(jdbc2_jsp.java:76)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    Anyone have any idea wat's went wrong? Please advice .......& Thanks alot for yr help
    Regards,
    huiqin

    from what you're saying, it would sound like a duplicate entry of key constraint violation
    your stack trace is simply saying that there is a problem with the bean being null or not initialized, and this is likely due to the database failing
    you need to get the database specific error and/or error code, this JSP error won't help in debugging the problem

  • Help needed on DATABASE ERROR: : unable to initialize mutex

    Hello,
    I am trying to run Berkeley DB on a MIPS platform using DbEnv. While the code runs fine on Linux RedHat, it throws the following error message when run on the MIPS:
    DATABASE ERROR: : unable to initialize mutex: Function not implemented
    DATABASE ERROR: : PANIC: Function not implemented
    DATABASE ERROR: : unable to join the environment
    I run a little test program which uses mutexes and conditionson the MIPS platform and seems to work fine.
    What could be the problem?
    Thank you and regards,
    Sebastian

    Hello,
    First of all thank you very much for all the support on this matter.
    Second, I was unable to access the faq because it is asking for authentication which I don't have.
    Here are more details on what I am trying to do, hopefully will help resolve the issue:
    - I am trying to run Berkeley DB on a MIPS R3000 hardware platform running Linux 2.4 kernel.
    - When configuring Berkeley DB I tried using --with-mutex=MIPS/gcc-assembly which resulted in an Illegal instruction error being thrown when trying to open the environment
    - When configuring Berkeley DB I also tried using --enable-posixmutexes which throws the error message mentioned in my initial post
    - I also wrote a little program that tries to use process shared mutexes and seems to work fine on the embeded system. here is what i successfully run on the box:
    pthread_attr_t attr;
    pthread_mutexattr_t mutex_attr;
    pthread_condattr_t cond_attr;
    pthread_mutexattr_setpshared(&mutex_attr, PTHREAD_PROCESS_SHARED);     // set the mutex attribute to process shared
    pthread_condattr_setpshared(&cond_attr, PTHREAD_PROCESS_SHARED);          // set the condition attribute to process shared
    /* Initialize mutex and condition variable objects */
    pthread_mutex_init(&count_mutex, (const pthread_mutexattr_t *)&mutex_attr);
    pthread_cond_init (&count_threshold_cv, (const pthread_condattr_t *)&cond_attr);
    For portability, explicitly create threads in a joinable state
    pthread_attr_init(&attr);
    pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
    pthread_create(&threads[0], &attr, inc_count, (void *)&thread_ids[0]);
    pthread_create(&threads[1], &attr, inc_count, (void *)&thread_ids[1]);
    pthread_create(&threads[2], &attr, watch_count, (void *)&thread_ids[2]);
    Thank you very much for your help!
    Regards,
    Sebastian

  • Database error 3997 at EXE in ECC 5.0

    Hi,
    I am getting this error in SAM system log "<b>Database error 3997</b>".
    And the OS collector (RSCOLL00) is failling on peak time and its showing the same type of error " SQL error 3997".
    Pls suggest me to solve this issues.
    --gopi

    Hi,
    I am getting this error in SM21 system log "Database error 3997".
    And the OS collector (RSCOLL00) is failling on peak time and its showing the same type of error " SQL error 3997".
    Pls suggest me to solve this issues.
    --gopi

  • What's wrong with the code?

    public void run()
    try
    {     for(;;)
         mgr = (RTPManager)RTPManager.newInstance();
         mgr.addSessionListener(this);
         mgr.addReceiveStreamListener(this);
         try{  /*****port1 = port2 = 29261, which port is only used in here
         localAddr = new SessionAddress(InetAddress.getLocalHost(), port1);
         destAddr = new SessionAddress(ipAddr, port2);
         }catch(Exception e)
              System.out.println(e + " 4");
         try{
         mgr.initialize(localAddr);
         }catch(Exception e)
         System.out.println(e + " 5");
         //set buffer
         bc = (BufferControl)mgr.getControl("javax.media.control.BufferControl");
         if (bc != null)
         bc.setBufferLength(20);
         try{
              mgr.addTarget(destAddr);
         }catch(Exception e)
         System.out.println(e + " 2");
    catch(Exception e)
         System.out.println(e+ " 3");
    the error when i run the code is like that:
    javax.media.rtp.InvalidSessionAddressException: Can't open local data port: 29261
    5
    java.io.IOException: Address already in use: Cannot bind 2
    which means there is error in :
    mgr.initialize(localAddr);
    mgr.addTarget(destAddr);
    But i don't know what's wrong with the code,
    can any one help me?

    I do not find any problem using the same ports for local and destination address with several unicasts. My problems are others.
    But note that the error is even at constructing the localAddress, I mean before trying the destinationAddress. Thus the reason cannot be the former is already in use. In fact I think the later belongs to a remote hosts. Likely, it is trying to access the destinationAddress through the localAddress, but this has not been constructed properly.

Maybe you are looking for

  • Batch Management Level

    Hi all, Batch management drives us difficulty, all finished goods have a batch number in our system. But cause of this our system grows fastly and process management is so difficult. We think about cancelling batch management and use serial number ma

  • PDF Form not printing all field/letters properly.

    Hi Everyone, I'm hoping someone can help me. I recently created a PDF Form to be filled out when setting up an new customer at my job. After filling out the form one of my co-workers is experiancing an issue when printing. Anytime he has two or more

  • Refresh the PanelGrid in  page not the whole page ...

    Hi friends, I have two frames in one page. Those are Left.faces and Right.faces. In the left.faces i have pangelGrid and stackbarGroup under stackbar. In the Right.faces i am having only dropDownList and command button. Here my problem is , First i a

  • How to make Parameter field not mandatory while running CFL through SAP B1

    Hi Experts....... I have a small doubt if anybody can help me....... I have created a simple report for testing purpose by taking table OITM and it is diplayng CFL symbol in B1 scressn when I import. Upto this it is working fine and showing correct i

  • HT201320 Add Account" in the Mail Contacts and Calendars section

    This option is not available on my phone.  I try to click on Add Account but it is "greyed out" so its not possible. Can anyone tell me what to do to turn this option on? Thanks