Strange situation

hello guys
i am very new to this forum section...
i am having a strange problem...i am creating a a database by connecting to oracle server of my college. i remotely login to the server through ssh. i have some text files which have fields that are to be inserted into the database.
so i used the split() function to split the fileds in the text file (having comma as a seperator)... and began inserting this way
BufferedReader br1 = new BufferedReader(new FileReader("Download.txt"));
String str1=br1.readLine();
String query2 = "create table download(" + str1 + "," + "primary key(ssn,sid)" + ")" ;
int result1 = stmt.executeUpdate(query2);
String x1;
while((x1=br1.readLine())!=null){
String [] results = x1.split(",");
String query1 = "insert into download values('" + results[0] + "','" + results[1] + "','" + results[2] + "')" ;
stmt.executeUpdate(query1);
this was good and it got updated in the database
download.txt has 3 fileds and it went well
but with this
BufferedReader br2 = new BufferedReader(new FileReader("Song.txt"));
String str2=br2.readLine();
String query3 = "create table song(" + str2 + "," + "primary key(sid)" + ")" ;
int result2 = stmt2.executeUpdate(query3);
String x2;
while((x2=br2.readLine())!=null){
String [] results = x2.split(",");
//System.out.println(results[0]+" "+results[1]+" "+results[2]+" "+results[3]);
String query1 = "insert into song values('" + results[0] + "','" + results[1] + "','" + results[2] + "','" + results[3] + "')" ;
stmt2.executeUpdate(query1);
song.txt has 4 fields and 20 rows. but when i executed this i have got an exception ora:00917 i.e.. missing comma,, but the database got updated only with first 8 rows. i used exactly the same syntax with the both..
am i missing something obvious...

Use a prepared statement instead of trying to construct the string dynamically.

Similar Messages

  • AE CS5 Crashing with Zero Denominator & Strange Situation errors

    Good afternoon!
    In AE CS5 for OSX, we've started observing a strange behavior:
    - I have an AE project w/ footage loaded, including a Quicktime movie rendered out of another app (e.g., a 3D app)
    - I need a change to the movie, so I re-render it from the 3D app, replacing the existing movie.
    - In AE, I get impatient and click Reload Footage while the movie is still being re-rendered.
    In past versions of AE, I got an error (unrecognized file type) but AE continued to operate.  With CS5, I get a series of errors:
    "may be an unsupported format" (expected)
    "zero denominator in ratio addition"
    "zero denominator comparing ratios"
    "zero denominator converting ratio denominators"
    "After Effects Error: Strange Situation"
    Even after the movie finishes rendering, I keep getting the errors and clicking OK keeps presenting errors.  Have to force-quit AE to get on with my day.
    Is this a bug?  New in CS5?  I understand that I'm trying to do something "wrong" by loading a piece of footage that's invalid, but shouldn't I just get a polite "that piece of footage is no good", the ol' test-pattern, and be able to keep working and come back to it when it's ready?
    Anyone else run into this?
    --Rob

    but shouldn't I just get a polite "that piece of footage is no good", the ol' test-pattern, and be able to keep working and come back to it when it's ready?
    In theory yes, but as I just explained in another thread, 64bit AE vs. ye olde QT is full of workarounds and limitations due to Apple not seeming to care at all. That and the differences in 64bit file access on a more general level may lead AE to wrong conclusions. I'm sure it's a bug of sorts plus perhaps your 3D app (Cinema 4D?) could also do better by closing and re-opening the file from time to time so at least some parts are accessible instead of keeping it permanently open. For the time being, simply use image sequences...
    Mylenium

  • After Effects error: strange situation [0/-939524096]  ( 26 ::139 ) help!

    I am editing footage from a Nikon D7000 in Premiere. I select all and replace with after effects composition. Aftere effects opens and gives this error message. I am on a windows based machine.

    Thanks for you responses. This is a short sequence with about 20 clips. I have in the past used this workflow successfully on short sequences. I like to assemble in pp and then apply colour correction/colour grading, and some sharpening in after effects. This problem has occured since I went from AE 5.5 to AE creative cloud. It was my intention to contrast and colour correct each individual clip as needed, then using an adjustment layer over the entire sequence to apply a colour grading. As an enthusiastic beginner, If there is a better way to accomplish this Id love to hear it.
    The following is my system/software info insofar as seems relevant.
    AE version 13.0.2.3
    OS Name    Microsoft Windows 7 Home Premium
    Version    6.1.7601 Service Pack 1 Build 7601
    Other OS Description     Not Available
    OS Manufacturer    Microsoft Corporation
    System Name    DADSNEWDESKTOP
    System Manufacturer    MSI
    System Model    MS-7693
    System Type    x64-based PC
    Processor    AMD FX(tm)-4130 Quad-Core Processor, 3800 Mhz, 2 Core(s), 4 Logical Processor(s)
    BIOS Version/Date    American Megatrends Inc. V2.4, 29/03/2013
    SMBIOS Version    2.7
    Windows Directory    C:\Windows
    System Directory    C:\Windows\system32
    Boot Device    \Device\HarddiskVolume1
    Locale    Canada
    Hardware Abstraction Layer    Version = "6.1.7601.17514"
    User Name    DADSNEWDESKTOP\Owner
    Time Zone    Eastern Daylight Time
    Installed Physical Memory (RAM)    16.0 GB
    Total Physical Memory    16.0 GB
    Available Physical Memory    9.39 GB
    Total Virtual Memory    31.9 GB
    Available Virtual Memory    23.7 GB
    Page File Space    16.0 GB
    Page File    C:\pagefile.sys
    Video card:
    Name    NVIDIA GeForce GTX 550 Ti
    PNP Device ID    PCI\VEN_10DE&DEV_1244&SUBSYS_15563842&REV_A1\4&DE2C59F&0&0010
    Adapter Type    GeForce GTX 550 Ti, NVIDIA compatible
    Adapter Description    NVIDIA GeForce GTX 550 Ti
    Adapter RAM    1.00 GB (1,073,741,824 bytes)
    Installed Drivers    nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Driver Version    9.18.13.4052
    INF File    oem76.inf (Section030 section)
    Color Planes    Not Available
    Color Table Entries    4294967296
    Resolution    1920 x 1080 x 60 hertz
    Bits/Pixel    32
    Memory Address    0xFC000000-0xFDFFFFFF
    Memory Address    0xF0000000-0xF7FFFFFF
    Memory Address    0xF8000000-0xFBFFFFFF
    I/O Port    0x0000E000-0x0000E07F
    IRQ Channel    IRQ 24
    I/O Port    0x000003B0-0x000003BB
    I/O Port    0x000003C0-0x000003DF
    Memory Address    0xA0000-0xBFFFF
    Driver    c:\windows\system32\drivers\nvlddmkm.sys (9.18.13.4052, 12.27 MB (12,866,008 bytes), 29/07/2014 7:50 PM)
    The footage is: /D7000 H.264 MOV
    Quicktime Player 7.7.5 (1680.95.13) is installed
    error wording:
    After Effects error: strange situation [0/-939524096]
    ( 26 ::139 )

  • RANT: cloud re-install    ("strange situation")

    I have been using Photoshop since 1992 and After Effects since 1994...
    The cloud is driving me crazy (apart from issues with local storage that has gone to the cloud and added other issues to our processes)...
    I have the  ("strange situation") modal dialogue on an After Effects CC2014 file (just "love" the naming convention) after trying to import a Premier CC2014 sequence.
    I hoped that the Adobe Creative Cloud Console displayed an update with a fix for this.
    When I open Adobe Creative Cloud it displays an [INSTALL] button next to ALL my already installed CC2014 versions
    Clicking on the INSTALL next to PhotoshopCC2014 starts the slow 1.xxxGB download of the full Photoshop from scratch.
    With the CC role-out I did manually download the installs to not have to download 8GB of installs on multiple workstations - when the CC2014 role-out came it was not clear if this was a complete new version (since Adobe had decided to re-invent naming conventions or think Autodesk has done a good job on it) or an update, so I did not download the installs to a location I have control over.
    Any way - in about 4 hours from now I will hopefully know if this fixes the CC2014 issue
    In the mean time I will just go back to a pre-CC version of Premier and After Effects that I actually have ownership over and not simply renting....

    FIX FOR "strange situation" on Premiere CC2014 import to After Effects CC2014:
    1. Create new Premiere CC2014 file
    2. Import just the Sequence from the old Premiere Project File you want to transfer to AE: in Premiere CC2014: MENU > FILE > IMPORT > PremierProject_v01.prproj
    3. Now import the new Premiere Project file into After Effects: in After Effects CC2014: MENU > FILE > IMPORT > Adobe Premiere Pro Project... > PremierProject_v02.prproj
    It now works for me
    There is no effects or additional graphics in the first file that could have caused the problem.
    FIX FOR INSTALL instead of UPDATE showing next to my WORKING copies of CC2014:
    I do not know - a restart did not help. Although I can use all the CC2014 software (Photoshop, Illustrator, After Effects, Premiere, etc...) I still see the INSTALL button instead of the UPDATE button.
    At some stage I will have to press that INSTALL button, most likely when I leave the office tonight.

  • Very strange situation please help

    Hi every one
    This is my first time on this forum,I  guess it is time to ask and i hope to get the answers....
    I am using CS3  Illustrator and for some reason I had develop a very strange situation..
    I lost resizing capobility..
    I no longer can resize images or text unless I use  Transform--> scale  this is not a very good solution for doing work
    Any one know what to do with exception reinstalling application???
    Please  ADVISE
    Lev

    U r correct
    I use shortcuts all the time.
    I prefer keyboard to mouse some times it is faster...
    I had proborly press by mistake with our realizing it..
    Good point.....
    Lev

  • Can't connect to the internet... a strange situation

    The other day i was surfing at the internet normally and suddendly i got disconnected. I am using at ethernet dsl modem. I thought that something was wrong with the connection in my area so i did not search into it much. Two days later the situation was the same, i could not connect. The strange thing was that i could not even connect to my modem by typinjg its address on the browser in order to restart it. I always boot the laptop from an external firewire disk so i thought trying to connect by booting from the internal disk instead. I could connect without any problems. I copied the setting and try to enter them manually after booting again from the external disk but the situation persisted. I dont know what is wrong. Both the internal and external disk use the same OS and have the same settings, one disk is almost a mirror of the other.
    Any help will be appreciated,
    Thank you in advance,
    Dimitris.

    There are many settings involved in connecting to the Internet other than just your IP address; in this case when you're manually specifying an IP address your machine is connected to your network, but it has no idea of which gateway or nameservers to use to reach the Internet.
    You could either specify those yourself under the TCP/IP tab, or we could try to figure out why DHCP isn't auto-assigning an address for you when you are booted from your internal drive as opposed to your external drive.
    Is IPv6 enabled in the Ethernet settings when booted from one drive and not from the other?

  • Strange situation with joins!!!

    Hi,
    I am having a weird situation with joins. I have two tables "EMPLOYER" and "ADDR". Table "ADDR" has columns "ADDRESS_ID" and "ADDRESS1".
    Table "EMPLOYER" has two columns, "BUS_ADDRESS_ID" and "MAIL_ADDRESS_ID" which are left outer joined to the "ADDR" table on "ADDRESS_ID". I have also created an alias for "ADDR" to get both addresses.
    The logical table Employer has two LTS, one with "ADDR" and one with "ADDR1". (I do not want to create one LTS with both the tables as left outer joins, that will create other problems)
    When I query EmployerID,EmployerName,ADDR.ADDRESS1,ADDR1.ADDRESS1, I get the correct results, but the query is very slow.
    I looked at the log and there is no second left outer join* at all, but the results are correct!!!. I have attached the log sequence.
    -------------------- Logical Request (before navigation):
    RqList distinct
    EMPLOYER.EMPLOYER ID as c1 GB,
    EMPLOYER.EMPLOYER NAME as c2 GB,
    EMPLOYER.PRIMARY ADDRESS 1 as c3 GB,
    EMPLOYER.MAILING ADDRESS 1 as c4 GB
    DetailFilter: APPLIED EMPLOYER.EMPLOYER ID = 7501
    OrderBy: c1 asc, c2 asc, c3 asc, c4 asc
    +++USER1:1750000:1750004:----2009/03/04 15:22:22
    -------------------- Sending query to database named DEV (id: <<2378603>>):
    select T30717.EMPLOYER_ID as c1,
    T30717.EMPLOYER_NAME as c2,
    T44205.ADDRESS_1 as c3,
    T30717.MAIL_ADDRESS_ID as c4
    from EAPP_EMPLOYER T30717, ADDR T44205
    where ( T30717.BUS_ADDRESS_ID = T44205.ADDRESS_ID (+) ) and ( T30717.EMPLOYER_ID = 7501 )
    order by c4
    +++USER1:1750000:1750004:----2009/03/04 15:22:22
    -------------------- Sending query to database named DEV (id: <<2378624>>):
    select T43657.ADDRESS_1 as c1,
    T43657.ADDRESS_ID as c2
    from
    ADDR T43657
    order by c2
    +++USER1:1750000:1750004:----2009/03/04 15:22:30
    -------------------- Query Status: Successful Completion
    +++USER1:1750000:1750004:----2009/03/04 15:22:30
    -------------------- Rows 1, bytes 160 retrieved from database query id: <<2378603>>
    +++USER1:1750000:1750004:----2009/03/04 15:22:30
    -------------------- Physical query response time 0 (seconds), id <<2378603>>
    +++USER1:1750000:1750004:----2009/03/04 15:22:30
    -------------------- Rows 0, bytes 0 retrieved from database query id: <<2378624>>
    +++USER1:1750000:1750004:----2009/03/04 15:22:30
    -------------------- Physical query response time 0 (seconds), id <<2378624>>
    +++USER1:1750000:1750004:----2009/03/04 15:22:30
    -------------------- Physical Query Summary Stats: Number of physical queries 2, Cumulative time 0, DB-connect time 0 (seconds)
    +++USER1:1750000:1750004:----2009/03/04 15:22:30
    -------------------- Rows returned to Client 1
    +++USER1:1750000:1750004:----2009/03/04 15:22:30
    -------------------- Logical Query Summary Stats: Elapsed time 8, Response time 7, Compilation time 0 (seconds)
    Has anyone come across this situation? I have used the same concept in the same RPD for another model, but that used Oracle 9i as the datasource. This one uses Oracle 8i.
    Thanks
    rkingmdu

    1) Have you used dfferent joins for the 2 versions of the addr table (origianal and alias).
    i.e. one joins on bus_addr_id to employer and
    the other joins to mail_addr_id to employer - *+{color:#ff0000}YES{color}+*
    2) do both have left outer join specified? - *+{color:#ff0000}YES{color}+*
    3) can you run employee, business_addrss query once
    then run employee, mail_addrss query once separately, to see if the individual queries give correct results? - *+{color:#ff0000}YES, I get the correct results{color}+*
    4) also check if the business_addrss and mail addrss in the logical employer table are mapped to different LTSs - *+{color:#ff0000}YES, they are{color}+*

  • Strange situation. Need advice

    Ok. Long story short, I was a guarantor (sp) on an apartment for my son. he only lived there for 2 weeks but kept paying rent. In January, they did not cash his rent check and he tried calling, never answered or received a call back. Stopped paying. I know it was not the best idea. Ended up being turned over to CA who is well known on here for not being the best to deal with. I have never talked to them and they call about once a month. Here is the kicker, they HAVE NOT reported to CRA's. My credit is really starting to come along from where it was and I really want to take care of this. I do not know total amount but I believe it to be in the 3500-4000 range. I can take care of it now. The complex was sold or transferred to another prop mgmt group as well, when a complex is sold, do they sell their outstanding debt with it as well? Should I try to find out and pay original creditor or contact CA? It has been about a year and a half. So still within SOL.

    In most situations when a business is sold you purchase all of their assets as well as debts. If they have not reported, I would work with the collection agency to settle out before they start reporting on your credit, because at that point it gets more complicated to get it removed. 

  • Strange situation...for user sessions

    Hi All,
    I have a situation where when the user executes a report in RRMX and when he  is done that he closes the Session by disconnecting the server connection in the BEx toolbar.
    Even the user closes the session and he is out of the system but he still appears in SM04.
    I don't undersatnd why this is happening?
    This is happening only for a particular user.
    Can I click on the session in SM04 and end it?
    Is that ok?
    Thanks,
    Ram

    may be GUI haveing problem ,better install GUI
    even user close the session its showing then
    you can close the session useing the SM04

  • Strange situation with subscription

    Dear support
    I need help
    I bought subscription 3-4 mounths ago and everithing was good but now I have a problem
    I spent full time in this mounth
    Now skype took next pay from my credit card for subscription (Order No. 635821921)
    But when i ring now I can't use subscription
    Skype takes money from my account
    Your system writes:
    Your subscription has been suspended as you have exceeded your allocated free minutes.Your free minutes will start again on Jul 17, 2012.
    Now is 18.07
    What i must do?
    It is real trick for taking extra money from me)

    Hi gurus,
    Has anyone got solution to this situation.
    I'm also facing the similar situation. I've created my own extractor in CRM using BWA1 (BWAdapter), did all kind of mapping, assigned to sync BADI. When I executed the my extractor in RSA3, it is retrieving some data, but when executed in BW, it is not retrieving anything.
    Thanks for your answers,
    Regards,
    Venkat

  • Strange Situation with connection

    OK, after a lot of testing I can not get my wireless to work correctly.  It has worked for a long time but after a power cycle here is the situation:
    1. Wired connection works fine - automatically obtaining ip address - connects to internet fine
    2. Wireless connection - If I have a static ip address set to 192.168.1.xxx I can connect to the wireless router and access the setup page.  However, I can not connect to the internet.  Of course this won't work because I don't have it configured for static ip and my ISP account won't allow that type of setup.
    3.  Here is the problem.  If I set my wireless connection to obtain an ip address automatically it will not connect.  If it does it is limited and gives and invalid ip address.
    Based on the above testing I see that my internet modem is fine.  I also see that my wireless connection is fine because I can connect with a static ip address.  My problem is obtaining an ip address dynamically from only the wireless connection.  I have modified about every setting possible.  If anyone knows what in the world I can do to fix this please let me know - Thanks

    Not an expert on it, but I know some files that will run on my laptop or desktop need to be converted for Ipad, Apple Tv, Iphone, Ipod.
    There is an option in the "advanced" Itunes menu to accomplish this.
    I would guess there is nothing wrong with your Ipad.

  • I have a very strange situation...

    This seems a little hard to believe, but I bought an 60gb iPod at a swap meet for 5 dollars. The Catch? It has no screen. I bought a screen on ebay (it hasn't come in the mail yet) that I can install myself (I'm good at that kind of stuff), but for now I can't get it to connect to the computer properly. I can hear the hard drive spin when I manually reset it (menu+select) and the computer will install it. Under device manager it reads it as "apple ipod usb device" under the disk drives tab, and "usb mass storage device" under the usb tab. But It wan't come up under my computer. (I can't get it into disk mode because I have no screen)(Hidden folders are shown on my computer). Itunes won't read it either. When I do diagnostics, it passes everything but ipod connection status. Please help me!!

    have you tried plugging it in another computer? this happened to me a while back, the USB drivers on the PC were somehow corrupted, so I reinstalled the drivers and nothing, I installed a fresh copy of windows and that did the trick. well, worth a shot i guess.
    This is a known issue, many people have had it work by doing what other members here have mentioned. A not so familiar issue is what you are stating. It's a 50/50 chance, given that it is a "damaged" iPod.

  • "Strange Situation" error in AE CC 2014 (Just upgraded) caused me to lose an entire day of effects work. Very angry, and I want answers. Have to deliver tomorrow. (Error 939524096)

    Here is my file. Seems to be corrupted. No Auto Save was made eventhough AE is configured to save one. Seemed to happen in the middle of things, while I was switching between Premiere CC 2014 and After Effects CC 2014 (Dynamic Linking). Was working perfectly fine until randomly the program crashed and Dynamic Link in Premiere lost access to the upwards of FIFTY COMPOSITIONS I had worked on.
    http://s000.tinyupload.com/index.php?file_id=21188265255943283011

    I don't mean to be cruel here, but you lost a client because you didn't have a efficient and safe workflow set up. I never do anything without saving files in versions about every 10 to 20 minutes. If your files are getting corrupted every time you save them then you got to analyze your project and figure out what you are doing that is causing the corruption. Work for 10 or 15 minutes, save the file, open the file, save it as a different version then start again when you're having problems. Here's the most important part of business advice I can give you. As soon as you have any indication that there may be something wrong, contact your client. Don't make excuses, don't blame the software, take full responsibility and just explain that you need more time or something in the project needs to change. I have never had a client refuse to give me some leeway or refuse to make adjustments to the project that would allow it to be completed on time.

  • Only 0 EA of material available ( Strange Situation)

    Hello Guys,
    I have two Materials 
    Available Stock is Material A(QTY 10)  and Material B(QTY10).
    Now i have created sales order of each material with 1 qty.
    E.G
    Material A  qty 1
    Material B qty 2
    i have saved the document and then i have created delivery successfully.
    Now i have repeated the same step created sales order with Material A and Material B with 1 Quantities each now this time in delivery i deleted Material B and save the delivery document
    then i changed the delivery document(VL02N) and again add the Material B which i have deleted but i get this error "Only 0 EA of material available" although i have enough stock. I am using item requirement 202 Order w.indep.item
    Need help

    I have deleted Material B then again add the same 1. Below are some examples.
    Available Stock MAT A (QTY 20) and MAT B(QTY 20)
    Here
    Scenario 1
    Sales Order:
    Material A qty 1 plant 1000 storage 2000
    Material B qty 1 plant 1000 storage 2000
    Delivery(WRT SO)
    Material A qty 1 plant 1000 storage 2000
    Material B qty 1 plant 1000 storage 2000
    Now sales order created with ref to delivery(VL01N) without any issue
    Scenario 2
    Sales order:
    Material A qty 1 plant 1000 storage 2000
    Material B qty 1 plant 1000 storage 2000
    Delivery(WRT SO)
    Material A qty 1 plant 1000 storage 2000
    I have deleted MAT B this time and saved the del doc, now I realized that I have to add Mat B in same Delivery DOC again
    Material A qty 1 plant 1000 storage 2000
    Material B qty 1 plant 1000 storage 2000 ---> when I try to add the same material I got error.

  • Strange situation. A Vi makes LV crash

    Hi,
    I was working in a Vi and when I ran it, LV crashed. After a few crashes I started deleting things until I left just the controls and indicators and it still crashed. Any idea what can it be? Any tool to check that, a kind of "repair".
    Thanks,
    Marce

    Hello,
    Although I've already rewritten the Vi from a backup, here's the Vi that crashed but it has just controls and indicators. And it still crashes.
    Thanks,
    Marcelo
    Attachments:
    SBMainEmpty1.vi ‏40 KB

Maybe you are looking for

  • Follow up bulkload with Cygwin question

    Following the advice of a previous post, I installed Cygwin to run the bulkload tools. I am confused now how the bulkload script will know where my OracleHome is (since is doesn't recognise the c:\ drive, just /home). Do I have to reinstal my oracle

  • Problem in Link size changes in theme editor of NWDS

    Hello All, We have created a theme in theme editor and the link size has to be matched with the given specifications. When trying to change the link size using Link Property - Standard Font Size to xsmall or any value such as 0.8 em, it is applied to

  • Unable to download oracle 10g release 2 for windows 32 bit and linux

    unable to download the oracle 10g for windows and linux from the website given below. http://www.oracle.com/technology/software/products/database/oracle10g/index.html can any one help me out ?

  • Close tap icon (x) disapear after i update to v 6

    after i upgrade i found when i open about 3 tab the x icon was hide and cant close the tab and when i close the browser and open it its appear > then 3 or 4 tab its disaapear

  • Heat...I'm getting ticked off

    I have tried everything I can think of and just can't get the heat problem under control. I just recently (today) bought a true430 antec PSU a zalman northbridge heatsink and I installed a fan on the top. My cpu runs at close to 60 degrees under load