Results 1 to 2 of 2
  1. #1
    kubas is offline Member
    Join Date
    Feb 2010
    Rep Power

    Default Security Exception when Packages

    i've got one problem that piss me off.
    I have done a TCP Server and Client.
    I send and receive Objects using ObjectInput(Output)Stream.
    If class are grouped into packages when receiving
    i get SecurityException.doPrivileged(), when there are
    no packages everything works as a charm.
    Anyone knows whats wrong ?

    Thanks in Avdance,

  2. #2
    FON is offline Senior Member
    Join Date
    Dec 2009
    Belgrade, Serbia
    Rep Power


    Is there a real reason for using ObjectInputStream and ObjectOutputStream?

    Can u do the same thing with other stream type(maybe DataOutpuStream)

    Hmh, this smells like serialization problem:
    "...Only objects that support the interface can be written to streams. The class of each serializable object is encoded including the class name and signature of the class, the values of the object's fields and arrays, and the closure of any other objects referenced from the initial objects....''

Similar Threads

  1. Security
    By manticohd in forum Reviews / Advertising
    Replies: 1
    Last Post: 02-03-2010, 09:17 AM
  2. how to improve my security?
    By anthrax in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-13-2009, 10:08 AM
  3. Security Information
    By saty_32016 in forum CLDC and MIDP
    Replies: 0
    Last Post: 03-05-2009, 09:14 AM
  4. Replies: 3
    Last Post: 02-12-2008, 12:03 PM
  5. Replies: 1
    Last Post: 07-24-2007, 12:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts