JavaConsole Error: Problem reading data from server

HI All
We are getting this error on java console on a page:
  Error: Problem reading data from Server - Java.Security.AccessControlException:access denied (java.util.PropertyPermission http.strictpostredirect Read)
In this page we are not firing  a SQL Query of huge data.
Any suggestions on this why it is happening?
Thanks
Manisha

Manisha,
I think JVM(Java Virtual Machine) is trying to access something at network level and it cant able to find it.Or any new patches of java is installed.
Or may be due to IIS or Applet,Don't know exactly.
You can find some answers in below links:
http://java.sun.com/j2se/1.4.2/docs/api/java/security/AccessControlException.html
http://www.webdeveloper.com/forum/archive/index.php/t-46358.html
-Suresh

Similar Messages

  • Error when reading data from socket

    Hi,
    I am getting the error 'NiRawReadError: An error occured when reading data from socket.' when using the ABAP API  'mo_core_service->invoke_matching'.
    And I get this error only when I pass ABAP_TRUE to the paramter 'iv_wait_for_invocation' .
    Can anybody help me in correcting this?

    Hi Narasa,
    The following error is already in discussion in the below forum.Plz consult the forum link you will find the error solution.
    Problem in ABAP API - NiRawReadError: error when reading data from socket
    Rgds
    Ankit

  • Error in reading data from planning book

    Hi Guys,
    I am facing error in reading data from SNP planning book .
    When i try to read single product data for simulation version , it gets loaded correctly.
    However, when i try loading data for more than one product, then i get error "Product does not exist".
    I checked all products are assigned to model-version.
    I tried running consistency check as well and after it finished got message as "All inconsistencies can not be corrected".
    Please let me know if any one had faced this error.
    Thanks.

    Hi,
    Consistency check should solve the problem in this case. Try running it specifically on the version you are using. It should work.
    Regards,
    Guru Charan.

  • Error in reading data from InfoSet

    Hi Experts,
    I am facing the below errros when doing a selection to retraive data.
    @5C\QError@     Error when reading data from InfoSet Z40_2 (return code 1)      @5F\QNo long text exists@       17:56:24        A Preparatory Steps     1 Selection and Bundle Formation                        00000000000195819816    1       E       /BA1/F3_BASIS   6                               1       1
    @5C\QError@     Data transfer structures in EWLS object  do not match   @5F\QNo long text exists@       17:56:24        A Preparatory Steps     1 Selection and Bundle Formation                        00000000000195819816    2       E       /BA1/F3_EWLS    117                             1       2
    Please let us know  if any one knows why tehse erros apear and sloution for these.
    Please do the needful,'
    Thanks,'Mahesh

    thanks

  • Problem reading data from oracle database 11g using OleDbDataReader

    Hi everyone I work with Visual Studio 2010 and C# programming language. I have a problem reading data from the oracle database. I created a WPF application with my main Window Xaml and class files and 1 more class called DataFiles. The thing I want is to read some data from the database on my grid in my WPF window. Problem is even though it connects to the database the grid is always empty. It isn't the connection string as I tested it and it connects to the database the problem seems to be in showing the LASTNAME (PREZIME in my native tongue) on the grid which is what it's supposed to do.
    Here is the code:
    Data Files Code
    using System;
    using System.Collections.ObjectModel;
    using System.Data.SqlClient;
    using System.Data.OleDb;
    namespace SQLKonekcija
        public class clsEmployee
            public string Prezime { get; set; }
        public class DataAccess
            OleDbConnection oleCon;
            OleDbCommand oleComd;
            public DataAccess()
                string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****;";
                oleCon = new OleDbConnection(connectionString);
            public ObservableCollection<clsEmployee> GetAllEmployee()
                ObservableCollection<clsEmployee> EmpCol = new ObservableCollection<clsEmployee>();
                oleComd = new OleDbCommand();
                oleComd.Connection = oleCon;
                oleComd.CommandText = "Select PREZIME from UPOSLENICI";
                oleCon.Open();
                OleDbDataReader Reader = oleComd.ExecuteReader();
                Reader.Read();
                while (Reader.Read())
                    EmpCol.Add(new clsEmployee()
                        Prezime = Reader["PREZIME"].ToString()
                oleCon.Close();
                return EmpCol;
            }And here is my main window.cs code
    public partial class MainWindow : Window
            clsEmployee objEmpToAdd;
            DataAccess objDs;
            public MainWindow()
                InitializeComponent();
            private void Window_Loaded(object sender, RoutedEventArgs e)
                objDs = new DataAccess();
                dgEmp.ItemsSource = objDs.GetAllEmployee();And the XAML
    <Window x:Class="SQLKonekcija.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
        <Grid>
            <DataGrid AutoGenerateColumns="False" Height="237"
                      HorizontalAlignment="Left" Margin="18,66,0,0" Name="dgEmp"
                      VerticalAlignment="Top" Width="466" ColumnWidth="*"
                       >
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding PREZIME}" Header="Prezime"></DataGridTextColumn>
                </DataGrid.Columns>
            </DataGrid>
            <TextBlock Height="42" HorizontalAlignment="Left" Margin="18,15,0,0" Name="textBlock1" Text="TEST CONNECTION" VerticalAlignment="Top" Width="462" TextAlignment="Center" FontSize="28" FontWeight="ExtraBold" />
        </Grid>
    </Window>
    The guys on the MSDN forums told me I should ask the question here so sorry if it's not your field.
    Hope u guys can help, thanks.

    I tried it, commented out the reader.read and have the following connection string
    string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****; OLEDB.NET=True"
    Unfortunately the result is the same.
    Edited by: Dino2dy on Nov 24, 2011 12:53 AM

  • Error in Reading data from a xml file in ESB

    Hi,
    i created a inbound file adapter service which reads data from a xml file and passes it to the routing service and from there updates to the database.....
    (everything created in jdeveloper)
    But i am getting error....it is not getting updated to the database...when i check the database(select * from table) its showing one row selected but i couldnt find the data....
    Transformation mapping also i did...
    i think may be some error in reading the data from the xml file but not so sure.....
    please reply to this mail as soon as possible its very urgent

    Michael R wrote:
    The target table will be created when you execute the interface, if you set the option on the flow tab as instructed in step #6 of the "Setting up ODI Constraint on CLIENT Datastore" Section.
    Option     Value
    CREATE_TARG_TABLE      trueHi Michel,
    This was not my required answer.I am sorry that I was unable to clarify my question.Actually
    +This project executed successfully with some warning.Target Table is automatically created in database and also populated with data.But when I right-click Target Datastore(in >Mapping Tab of the Interface), and then select Data to View Data that needs to be inserted in the target table.I get some error like this:-...+This above line is the result of my project my problem is
    when I right-click Target Datastore(in Mapping Tab of the Interface), and then select Data to View Data that already inserted in the target table.Is not shown by the view data operation.
    I meant to say I am facing this error
    At the10(1010 written) step of
    Creating a New ODI Interface to Perform XML File to RDBMS Table Transformation
    wehre it says
    Open the Interface tab. Select Mapping tab, right-click Target Datastore - CLIENT, and then select Data. View Data inserted in the target table. Close Data Editor. Close the tabs...
    In my case when I use my sqldeveloper I can see data successfully inserted in my target table and also in error table (data that can't satisfy the constraint) .But I was unable to check this by following the above mentioned 10 th step and got this error.
    Thanks

  • Error while reading data from MapMessage using MDB

    Hi,
    I have written a small client program to send a message to a queue and an MDB receives the message in the onMessage() method. The message is of type MapMessage. I set key value pairs and send the message in a queue. When I try to read data from MapMessage inside onMessage() method of MDB, I get an exception:-
    javax.jms.MessageNotReadableException: In write mode
    When I send the message, by default the readonlymode is false. How do I set the mode to readonly exclusively in case of MapMessage ?
    Sirisha

    Hi,
    I do not have any problem with TextMessages...I works fine..It is only with MapMessage that I am not able to read the values..Before sending the message, the message has the flag "readMode" set to false by default by the server...R there any configurations to be made to any files like web.xml or server.xml or jms.xml ?
    I am running my JMS application on JDeveloper IDE that has an in-built OC4J server which supports JMS.

  • Error when reading data from XML using JAXB?

    Hi all,
    I get the error message when reading data from XML using JAXB.
    [org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.]
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
    (AbstractUnmarshallerImpl.java:315)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
    I don't find the reason, please help!
    Thanks in advance!

    The problem is sovled.

  • Mail cannot read data from server

    Hello!
    I'm fairly new to Macs, having used a PC for 12 years, and am still getting used to it's little quirks.
    I now have a problem where one of my email servers (a POP account) makes Mail (and Thunderbird for that) come up with;
    The attempt to read data from ** has failed
    Now, I know that the log on info is OK, as using my Webmail account, on the same iMac, accesses the mail fine. I've emptied the relevant mail account, both locally and on the server, removed the local settings and reset them using info on various Mac help sites.
    Nothing that I know of has changed, I've ran and re-ran the reset permissions tool.
    Can anyone give me any help?
    Intel iMac 20" Duo 2ghz   Mac OS X (10.4.8)  

    Hello, and welcome to the Discussions.
    Has this POP account ever worked in Mail? Is the POP3 server in question unique to this one account, or do you have other accounts from the same provider, using the same POP3 server as the Incoming Server?
    Ernie

  • Problem reading data from two tables

    Hi experts,
    I'm developing a JDBC - IDOC scenario that needs to read data from two oracle tables. I have created a BPM that has a initial fork for the two channels and it works fine.
    The problem is that I need to read data from the first, two or both tables depending if there is data to read. If there is data in the two tables it works, but if only there is data in one of the two tables, I have read problems. I have tryed to set the 'neccesary branches' to 1 but this is a problem when I have data in both tables.
    Any idea?
    Best Regards,
    Alfredo Lagunar.

    Hi,
    have your fork step inside a block and then right-click your block to insert a deadline branch to your BPM process and specify the time after which your BPM process should be cancelled.....so if in that time, you get data from both tables, your BPM will work okay otherwise if that time is over, then your BPM process will be cancelled.
    Regards,
    Rajeev Gupta

  • Error 65575: overrun error while reading data from NI 9871

    Hello everyone,
    I am new here. I configured NI 9871 in RS-485 mode to acquire data from a sensor at the data rate of 8 samples per second. While reading data from sensor, sometimes I got the error 65575: "An overrun error has occurred in the data being read. Ensure that the module Flow Control is configured correctly." I didn't understand the error, how can I fix it, what dose the flow control means.
    I will be very thankful if anybody help me to fix this error.
    Thanks
    Wasif

    Hello Wasif,
    The error you are getting presents itself when the hardware buffer is full and new data is coming in. Data buffer is 64 bytes. One thing to try is to clear the RX FIFO after every read. Please refer to the following link that talks about the method.
    http://zone.ni.com/reference/en-XX/help/370984R-01/lvaddon11/crio-9871/
    Hope this help you solve the issue.
    Regards
    Luis S
    Application Engineer
    National Instruments

  • Error while reading data from backend system.

    Hi all,
           When i click on personnel information iview i am getting following error
    EIC Authentication   
    An error occurred while data was read from your ERP system. Contact your system administrator.
    I used SQL TRACE and RFC TRACE to find where it got stopped below see the trace result.
                14     PA0105     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "USRTY" = '0001' AND "USRID" = 'ESS_USER1'
               988     PA0105     FETCH         1       1403     
                14     PA0001     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "PERNR" = 90000001 ORDER BY "MANDT" , "PERNR" , "SUBTY" , "OBJPS" , "SPRPS" , "ENDDA" , "BEGDA" , "SEQNR"
               665     PA0001     FETCH         1       1403     
                17     PA0000     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "PERNR" = 90000001 AND "BEGDA" <= 20070622 AND "ENDDA" >= 20070622 ORDER BY "MANDT" , "PERNR" , "SUBTY" , "OBJPS" , "SPRPS" , "ENDDA" , "BEGDA" , "SEQNR"
               615     PA0000     FETCH         1       1403     
                25     PA0001     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "PERNR" = 90000001 AND "BEGDA" <= 20070622 AND "ENDDA" >= 20070622 ORDER BY "MANDT" , "PERNR" , "SUBTY" , "OBJPS" , "SPRPS" , "ENDDA" , "BEGDA" , "SEQNR"
               896     PA0001     FETCH         1       1403     
                16     PA0002     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "PERNR" = 90000001 AND "BEGDA" <= 20070622 AND "ENDDA" >= 20070622 ORDER BY "MANDT" , "PERNR" , "SUBTY" , "OBJPS" , "SPRPS" , "ENDDA" , "BEGDA" , "SEQNR"
               783     PA0002     FETCH         1       1403     
            13.178     ?     Server         1          0     EPSAND1 ? Server HREIC_GET_AUTHENTICATION_ESS 643 309
    What is the solution to solve this problem ?
    Thanks and regards,
    Phanikumar

    Looks like authorization issue. Could you confirm whether proper authorizations have given to this user?
    Also, run the application again get an error and then go to Transaction ST22 and see if there is any system dump for this user.
    Regards,
    Nitin

  • Problem reading data from nested internal table.

    Hi,
    Below is my code;
    *********SAP Code********
    TYPES: BEGIN OF v54a0_scdd,
             fknum  LIKE vfkk-fknum,
             change LIKE vfkkd-updkz,
             x      TYPE v54a0_scd,
             y      TYPE v54a0_scd,
             tvtf   LIKE tvtf,
           END OF v54a0_scdd.
    SCD table for dialog
    TYPES: v54a0_scdd_tab TYPE v54a0_scdd OCCURS 1.
    *********SAP Code********
    *Custom declaration*****
    data: wa_freight_costs type v54a0_scdd_tab.
    data: it_freight_costs type v54a0_scdd_tab occurs 0.
    *****Here data is getting appended to it_freight_costs. P_frieght_costs is coming from standard program.
         move p_freight_costs TO wa_FREIGHT_COSTS.
         append wa_freight_costs to it_freight_costs.
         clear wa_freight_costs.
    ***Now the problem is here. I am not able to read the data from the nested internal table x-item.
    if i use <fs_f_costs> to move data from it_freight_costs in the outer loop, i get a syntax error; <i> "the line type of the table it_freight_costs is not compatible with field symbol type <fs_f_costs>" </i>
         FIELD-SYMBOLS: <fs_f_costs> type line of v54a0_scdd_tab.
          LOOP AT it_freight_costs assigning <fs_f_costs>.
              LOOP AT <fs_f_costs>-x-item ASSIGNING <fs_freight_item>.        
                  <b> I want to read <fs_freight_item>-vfkp-netwr.</b> 
             ENDLOOP.
    Can anyone guide me?

    A quick look at how I would do this. Note I haven't checked if this compiles just done a quick brain-dump.
      DATA: lr_f_costs TYPE REF TO v54a0_scdd_tab,
            lr_f_cost TYPE REF TO v54a0_scdd.
      LOOP AT it_freight_costs REFERENCE INTO lr_f_costs.
        LOOP AT lr_f_costs->* REFERENCE INTO lr_f_cost.
        ENDLOOP.
      ENDLOOP.
    As you can see I personally prefer pointers to field symbols - I don't believe there is any performance differences and because of my background in other languages pointers make more sense to me.
    Cheers
    Graham Robbo

  • Problem Reading Data from .dat File

    I am trying to read in data from lines 384-475. The data looks something like this
    198 95 70 71 93-99-99-99-99-99-99-99-99-99-99  5 17 17 17 17-99-99-99-99-99-99-99-99-99-99 1
    78 95 70 69-99-99-99-99-99-99-99-99-99-99-99  6  2  1  1-99-99-99-99-99-99-99-99-99-99-99 2
    70 73-99-99-99-99-99-99-99-99-99-99-99-99-99  0  1-99-99-99-99-99-99-99-99-99-99-99-99-99 1This is only the data from lines 384-475. I keep getting an error though, and I can't figure it out.
    import java.util.*;
    import java.io.*;
    public class ProgrammingExercise1
         public static double findAccuracy(String systemCommand) throws IOException
             Process proc = Runtime.getRuntime().exec(systemCommand);
             Scanner scan = new Scanner(proc.getInputStream());
             PrintStream logOut = new PrintStream(new FileOutputStream("log.dat"));
             while(scan.hasNextLine())
                  logOut.println(scan.nextLine());
             logOut.close();
             scan.close();
             proc.destroy();
             Scanner input = new Scanner(new File("log.dat"));
             String line = "";
             for(int c=1; c<=4; c++)
                  line = input.nextLine();
             double finalAccuracy = Double.parseDouble(line.substring(22,27));
             input.close();
             return finalAccuracy;
         public static void main (String[] args) throws IOException
              try {
                        String s;
                        int count=0;
                        String temp;
                        int aInt;
                        int med;
                        int[] daM = new int[251];
                        String[] pos = new String[251];
                        int[][] da = new int[251][507];
                        int[] daSort = new int[da.length];
                        for (int i=0; i<251; i++)
                             daM[i] = 0;
                             for (int j=0; j<507; j++)
                                  da[i][j] = 0;
              //creating an input stream
                 FileInputStream fstream = new FileInputStream("dataset.dat");
                 DataInputStream in = new DataInputStream(fstream);
                 BufferedReader br = new BufferedReader(new InputStreamReader(in));
                 while((s = br.readLine()) != null)
                    //safety check as the last line in not null, but empty
                    //break the procedure info from the string/line
                      String sub = s.substring(384, 475);
                      for (int k=0; k<15; k++)
                           temp = sub.substring(k*3, (k*3)+3);
                             //removes spaces from the string to alleviate integer conversion errors
                           temp = temp.replace(" ", "");
                           aInt = Integer.parseInt(temp);
                           if (aInt > -1)
                                da[count][aInt] = 1;
                      sub = s.substring(260, 264);
                      temp = sub.replace(" ", "");
                      aInt = Integer.parseInt(temp);
                      if (aInt > -1)
                           daSort[count] = aInt;
                           daM[count] = aInt;
                      count++;
                 in.close();
                 bubbleSort(daSort);
                 med = daSort[daSort.length/2];
                 for (int t=0; t<daM.length; t++)
                      if (daM[t]<med)
                           pos[t] = "+1";
                      else
                           pos[t] = "-1";
                      for (int r=0; r<da[t].length; r++)
                           if (da[t][r]==1)
                                pos[t] +=" " + r + ":1.0";
                 Collections.shuffle(Arrays.asList(pos));
                 File file = new File("testSet.dat");
                 PrintWriter output = new PrintWriter(new FileWriter(file));
                 String tempOut = "";
                 for (int ii=0; ii<pos.length/4; ii++)
                      tempOut += pos[ii];
                      output.write(tempOut);
                      tempOut = "";
                      output.write("\n");
                 output.close();
                 file = new File("crossValidationSet.dat");
                 output = new PrintWriter(new FileWriter(file));
                 for (int jj=(pos.length/4); jj<pos.length/2; jj++)
                      tempOut += pos[jj];
                      output.write(tempOut);
                      tempOut = "";
                      output.write("\n");
                 output.close();
                 file = new File("trainingSet.dat");
                 output = new PrintWriter(new FileWriter(file));
                 for (int kk=(pos.length/2); kk<pos.length; kk++)
                      tempOut += pos[kk];
                      output.write(tempOut);
                      tempOut = "";
                      output.write("\n");
                 output.close();
                 System.out.println("Your file has been written");
              catch (Exception e)
                   System.err.println("Error: " + e.getMessage());
    } // end ProgrammingExercise1The main error I can't figure out is as follows... "Error: For input string: "93-"
    *Note: I had to remove some of the code due to exceeding the maximum characters allowed. I THINK the error is found at the //creating an input stream section.

    The input data that I included is the exact data I am trying to read...just three lines instead of the 251. There is plenty of other data surrounding the included data, but I am not concerned with it.
    Here is the first 3 lines of data...
    4200410577816 76-99 9 177        1 1 0  5.573125262 5 429429422MED0262      25080403915990 427322851 5789 250402859 2111                                 50  99 159 106  60 153  50  59  47-999-999-999-999-999-999                    -999-999-999-999 0 1 4025AZ   14    141010 5868 2817 9  0 04223 3 105        -9           2451644434443                                                 70 93 93-99-99-99-99-99-99-99-99-99-99-99-99  3-99-99-99-99-99-99-99-99-99-99-99-99-99-99 3     40667       40667.002004 1
    4200410581753 79-9911 177        1 1 0  5.5731252 3 5 429429422MED0262      250822851 4271 486  5789 785595990 41400V4581                                50  60 106 122 153 249 159 101 101-999-999-999-999-999-999                    -999-999-999-999 0 1 4025AZ    8     81010 2043  883 9  0 04223 2 105        -9           245134824                                                     70 77-99-99-99-99-99-99-99-99-99-99-99-99-99  4-99-99-99-99-99-99-99-99-99-99-99-99-99-99 3     25444       25444.002004 1
    4200410277559 67-99 3 177        1 0 0  5.5731252 3 5 229229221MED0236      25080707146827 4280 7318 73027041042506045981                                50 199 197 108 212 201   3  50 121-999-999-999-999-999-999                    -999-999-999-999 0 0 4047AZ   29    291010 2414 5409 9  0 04223 6 111        -9           1392745164542884288483950                                     57 70 95189190 61-99-99-99-99-99-99-99-99-99 18-99-99-99-99-99-99-99-99-99-99-99-99-99-99 1    141927      141927.002004 4
    import java.util.*;
    import java.io.*;
    public class ProgrammingExercise1 {
    public static void bubbleSort(int[] x)
              int n = x.length;
              for (int pass=1; pass < n; pass++)
                   for (int i=0; i < n-pass; i++)
                        if (x[i] > x[i+1])
                             int temp = x;
    x[i] = x[i+1];
    x[i+1] = temp;
    }// end bubbleSort
    public static void main (String[] args) throws IOException
    try {
              String s;
              int count=0;
              String temp;
              int aInt;
              int med;
              int[] daM = new int[251];
              String[] pos = new String[251];
              int[][] da = new int[251][507];
              int[] daSort = new int[da.length];
              for (int i=0; i<251; i++)
                   daM[i] = 0;
                   for (int j=0; j<507; j++)
                        da[i][j] = 0;
    FileInputStream fstream = new FileInputStream("dataset.dat");
    DataInputStream in = new DataInputStream(fstream);
    BufferedReader br = new BufferedReader(new InputStreamReader(in));
    while((s = br.readLine()) != null)
         String sub = s.substring(384, 475); //!!! Is this supposed to be (384, 475) or (384, 428)???
         for (int k=0; k<15; k++)
              temp = sub.substring(k*3, (k*3)+3);
              temp = temp.replace(" ", "");
              aInt = Integer.parseInt(temp);
              if (aInt > -1)
                   da[count][aInt] = 1;
         sub = s.substring(260, 264);
         temp = sub.replace(" ", "");
         aInt = Integer.parseInt(temp);
         if (aInt > -1)
              daSort[count] = aInt;
              daM[count] = aInt;
         count++;
    in.close();
    bubbleSort(daSort);
    med = daSort[daSort.length/2];
    for (int t=0; t<daM.length; t++)
         if (daM[t]<med)
              pos[t] = "+1";
         else
              pos[t] = "-1";
         for (int r=0; r<da[t].length; r++)
              if (da[t][r]==1)
                   pos[t] +=" " + r + ":1.0";
    Collections.shuffle(Arrays.asList(pos));
    File file = new File("testSet.dat");
    PrintWriter output = new PrintWriter(new FileWriter(file));
    String tempOut = "";
    for (int ii=0; ii<pos.length/4; ii++)
         tempOut += pos[ii];
         output.write(tempOut);
         tempOut = "";
         output.write("\n");
    output.close();
    file = new File("crossValidationSet.dat");
    output = new PrintWriter(new FileWriter(file));
    for (int jj=(pos.length/4); jj<pos.length/2; jj++)
         tempOut += pos[jj];
         output.write(tempOut);
         tempOut = "";
         output.write("\n");
    output.close();
    file = new File("trainingSet.dat");
    output = new PrintWriter(new FileWriter(file));
    for (int kk=(pos.length/2); kk<pos.length; kk++)
         tempOut += pos[kk];
         output.write(tempOut);
         tempOut = "";
         output.write("\n");
    output.close();
    System.out.println("Your file has been written");
    catch (Exception e)
         e.printStackTrace();
    Edited by: djcochran on Jan 27, 2010 5:22 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ORA-28522 error when reading data from DB2 via hsodbc

    Hi All,
    I'm trying to connect to a DB2 database running on an AS/400 system, via Oracle HS.
    I'm using Oracle 9.2.08. The DB2 version is V4R5.
    My ODBC DSN is called TEST_odbc.
    The initTEST_sid.ora file contains the following:
    HS_FDS_CONNECT_INFO = TEST_odbc
    My Listener.ora file contains the following:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vm-dashboarddemo)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ORACLE_HOME = D:\oracle\ora92)
    (SID_NAME = TEST_sid)
    My TNSNames.ora file contains:
    TEST_name =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = VM-DASHBOARDDEMO)(PORT = 1521))
    (CONNECT_DATA =
    (SID = TEST_sid)
    (HS = OK)
    When I use TNSPing, I get a successful result:
    D:\oracle\ora92\bin>tnsping TEST_name
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.8.0 - Production on 04-JUL-20
    07 13:46:47
    Copyright (c) 1997, 2006, Oracle Corporation. All rights reserved.
    Used parameter files:
    D:\oracle\ora92\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = VM-DASHBOARDDEMO)(PORT = 1521))) (CONNECT_DATA = (SID = TEST_sid)) (HS =
    OK))
    OK (10 msec)
    I can then login to SQLPlus as SYSDBA, and create a database link:
    SQL> create database link TEST_link connect to "<username>" identified by "<password>" using 'TEST_name';
    Database link created.
    So far everything seems to be going well.
    But then, when I try and select some data from the linked database, i get the following:
    SQL> select * from <tablename>@TEST_link;
    select * from <tablename>@TEST_link
    ERROR at line 1:
    ORA-00942: table or view does not exist
    [Generic Connectivity Using ODBC][IBM][Client Access Express ODBC Driver
    (32-bit)][DB2/400 SQL]SQL0204 - ZASTSE00 in QGPL type *FILE not found. (SQL
    State: S0002; SQL Code: -204)
    ORA-02063: preceding 2 lines from TEST_LINK
    Does anyone have any ideas? I'd love to get this solved!!
    Many Many Thanks,
    River

    I should have mentioned that I know that the table exists in the database.
    The main reason I'm trying to do this is because I'm trying to get the data from the DB2 DB into my Oracle DB. I have been trying the EXP utility, which gives me a different error code:
    D:\oracle\ora92\bin>exp <username>/<password>@TEST_name file=TEST.dmp rows=yes indexes=no
    Export: Release 9.2.0.8.0 - Production on Wed Jul 4 13:44:06 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    EXP-00056: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    Username: <username>
    Password:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    Note: indexes on tables will not be exported
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user <username>
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user <username>
    EXP-00008: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00024: Export views not installed, please notify your DBA
    EXP-00000: Export terminated unsuccessfully
    Thanks Again,
    Riv

Maybe you are looking for

  • File content conversion on Sender Side

    Hi, I am doing file content conversion on sender side.when i am executing the scenario,i am getting the following error in sxmb_moni: Invalid at the top level of the document. Error processing resource 'file:///D:/Documents and Settings/.............

  • Question on line selection in table control in dialog programming....

    Hello, I have a internal table displayed on a screen using Table control wizard. Now, when user selects a particular line and double clicks it, I want to write a query based on the line user selected. How can this be achieved ? Regards, Rajesh.

  • Interactive form in Japanese language - baseline shift problem

    Dear All, I have a big problem with interactive forms. I developed a PO form for a Japanese company in English. When I transate it and use Kanji characters in the translation the baseline of these characters is about one line below where they should

  • Problem w. newUser(): WLS6.0, RDBMSRealm

    Hi, I'm trying to create a new user with the RDBMSRealm. The user is created, but not saved in the Cloudscape db (the name apperas in the console but disappears at restart). Does anybody know why..? Am I doing something wrong? I'm using the following

  • Help Applying preset GPOs to a local Windows 7 installation?

    Hello All. Thank you for taking the time to visit my thread. I am in need of serious assistance and would like to know how I could apply preset GPOs to a Windows 7 installation.  My main objective is to have a bunch of GPOs including security policie