Help needed regarding Assertion Error

Hi all,
Iam new to using weblogic.Iam using weblogic 5.1.Iam trying to develop a BMP.I
have a separate class for the primary key.I have implemented the equals and hashcode
methods as follows :
public boolean equals(Object o){
if (o instanceof PartitaPrenotataPK) {
PartitaPrenotataPK otherKey = PartitaPrenotataPK)o;
try {
boolean result =(utc.isUguale(otherKey.utc) && (contoCash.equals(otherKey.contoCash)));
System.out.println("RESULT IS : " + result);
return result;
} catch (Exception e) {
e.printStackTrace();
return false;
} else
return false;
the hashcode method :
public int hashCode() {
if (-1 == m_hashCode) {
m_hashCode = utc.hashCode() ^ contoCash.hashCode();
System.out.println("HASH CODE RESULT " + m_hashCode);
return m_hashCode;
Iam getting an Assertion error.What actually is an Assertion error.The stack trace
is :
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ *** The EJB Lock
Manager has detectected that the implementation of:
public int hashCode();
or
public boolean equals(Object o);
in the class: it.sella.finanza.gestione_partite_prenotate.pphosthandler.PartitaPrenotataPK
is incorrect.
at weblogic.ejb.internal.LockManagerImpl.unlock(LockManagerImpl.java:187)
at weblogic.ejb.internal.StatefulEJBCache.unbind(StatefulEJBCache.java:555)
at weblogic.ejb.internal.StatefulEJBCache.releaseEJBContext(StatefulEJBCache.java:361)
at weblogic.ejb.internal.StatefulEJBHome.findOrCreateEJBObject(StatefulEJBHome.java:279)
at weblogic.ejb.internal.StatefulEJBHome.findOrCreateEJBObject(StatefulEJBHome.java:258)
at

There was a bug where this AssertionError was fired incorrectly. You
may wish to ensure you have the latest 5.1 service pack.
Otherwise, you'll have to show me your full pk class for me to tell you
if your equals and hashCode are implemented correctly.
-- Rob
chandrasekar wrote:
Hi all,
Iam new to using weblogic.Iam using weblogic 5.1.Iam trying to develop a BMP.I
have a separate class for the primary key.I have implemented the equals and hashcode
methods as follows :
public boolean equals(Object o){
if (o instanceof PartitaPrenotataPK) {
PartitaPrenotataPK otherKey = PartitaPrenotataPK)o;
try {
boolean result =(utc.isUguale(otherKey.utc) && (contoCash.equals(otherKey.contoCash)));
System.out.println("RESULT IS : " + result);
return result;
} catch (Exception e) {
e.printStackTrace();
return false;
} else
return false;
the hashcode method :
public int hashCode() {
if (-1 == m_hashCode) {
m_hashCode = utc.hashCode() ^ contoCash.hashCode();
System.out.println("HASH CODE RESULT " + m_hashCode);
return m_hashCode;
Iam getting an Assertion error.What actually is an Assertion error.The stack trace
is :
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ *** The EJB Lock
Manager has detectected that the implementation of:
public int hashCode();
or
public boolean equals(Object o);
in the class: it.sella.finanza.gestione_partite_prenotate.pphosthandler.PartitaPrenotataPK
is incorrect.
at weblogic.ejb.internal.LockManagerImpl.unlock(LockManagerImpl.java:187)
at weblogic.ejb.internal.StatefulEJBCache.unbind(StatefulEJBCache.java:555)
at weblogic.ejb.internal.StatefulEJBCache.releaseEJBContext(StatefulEJBCache.java:361)
at weblogic.ejb.internal.StatefulEJBHome.findOrCreateEJBObject(StatefulEJBHome.java:279)
at weblogic.ejb.internal.StatefulEJBHome.findOrCreateEJBObject(StatefulEJBHome.java:258)
at

Similar Messages

  • Help needed Regarding Project Server - 2013 Workflow

    Hi All,
    I am new to Project server 2013 Workflow, hence please help me regarding this. Pardon me if this question is too trivial. 
    I have created a project type associated with a workflow and my workflow is as follows :
    So I am not doing anything here, I am just testing the workflow as mentioned by technet site : http://technet.microsoft.com/en-us/library/dn458865(v=office.15).aspx
    But it is mentioned that, after a minute or 2, the workflow state will change, also they have mentioned to press the Submit button.
    But in my case, the workflow is not moving to next stage [It just says 'The workflow is still processing - which never changes after hours] or I am getting the submit button (Submit button is disabled on the ribbon). Below is the state of my workflow :
    PS : I have made the user added to Portfolio managers group as well. But still I am having this same issue. 
    The Workflow manager is installed properly, and it is working fine in case of List workflow. I am facing the issue only wrt Site workflow for Project server 2013.
    Please help me to solve this issue.
    Thanks,
    shanky

    Hi Kiran,
    I am now facing issue while assigning a task to a person in the workflow.
    I am having a person named say 'John' , who is included in Project Manager as well as Portfolio Manager.
    And I am using a workflow as :
    Stage : Conceptual
    Assign a task to John (Task outcome to Variable: Outcome5 | Task ID to Variable: TaskID3 )
    Transition to stage
    Go to Approval
    But this is again giving issue as :
    Workflow Internal status : Cancelled
    Details: System.ApplicationException: HTTP 401 {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have
    permission to perform this action or access this resource."}}}
    PS : I have used the same Sharepoint admin account for 'Account Name' in ‘User Profile Sync' , Is this causing the issue? Please let me know.
    Thanks,
    Shanky

  • Help needed regarding the updation of "Relationships" in BP

    Hello Guys,
    This is to request you to kindly help me regarding the following.
    We have a scenario where all the employees assigned to an Organizational unit (in PPOMA_CRM) are not showing in the "Relationships" ("Has Employee")in the BP transaction of that Organizational Unit.
    Could anyone let me know whether there is any update program that updates the "Relationships" from the Organizational asssignment. Or we need to enter the employees manually in BP "Relationships". Please help. Thanks in anticipation.
    Regards,
    Kishore.

    Hi Amit,
    Thanks alot for your reply. Its really helpful for me.
    So,we usually enter these relationships manually only, right? Before going ahead with the custom program, could you please let me know whether there is any SAP note related to this.Once again thanks alot for you help.
    Regards,
    Kishore.

  • 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

  • Help needed regarding replication in ds5.2sp4

    Hi ,
    I am new to ldap . I am able to establish replication between master and consumer and trying to update it is getting update but i am geting the following error
    in error log
    INFORMATION - NSMMReplicationPlugin - conn=-1 op=-1 msgId=-1 - Replication bind to consumer alpha.ad.com:19941 failed:
    [16/May/2007:13:48:26 -0700] - INFORMATION - NSMMReplicationPlugin - conn=-1 op=-1 msgId=-1 - Failed to connect to replication consumer alpha.ad.com:19941
    [16/May/2007:13:48:26 -0700] - ERROR<8318> - Repl. Transport - conn=-1 op=-1 msgId=-1 - [S] Bind failed with response: Failed to bind to remote (900).
    Please help me regarding this .
    Message was edited by:
    ap7926

    If data is getting replicated from master to consumer then the bind for that specific replication agreement is working.
    Check your timestamps and current log entries. Are the "Failed to connect to replication" messages currently being generated? As long as your replication agreement is enabled the supplier will try to keep things up and running, retrying a failed consumer regularly (and generating about 1 set of log messaages per minute on my systems). So you'll get those messages on the supplier when a good consumer is down (the nsslapd directory server process that is).
    If you don't have these messages being generated currently then this probably means that your consumer was down around "16/May/2007:13:48:26 -0700" but is ok now. In that case those messages aren't of big concern. They're just telling you that you had a problem, which you hopefully already knew about.
    If replication is working (test by making a change on the supplier and checking it on the consumer) AND you're still concurrently getting these messages regularly then you have something interesting going on, probably due to a configuration issue. Without seeing the details it's difficult say what it would be.

  • Help needed regarding Segment Qualifiers

    Hi,
    In my process of implementing Apps R12 afresh, we just created the segments and assigned them their flexfield qualifiers today. In that, the one assigned towards alancing segment shows the value qualifiers like that of natural accounting segment, unlike the bal. segment value qualifier.
    I mean, when we try to insert a a value in the bal.segment it asks for qualifiers such as nature:expense/revenue/liability/asset, instead of going for the allow posting and allow budgeting alone. This is crazy, and I need your support.
    Thanks,
    Mukunthan L

    Hi Amit,
    Thanks alot for your reply. Its really helpful for me.
    So,we usually enter these relationships manually only, right? Before going ahead with the custom program, could you please let me know whether there is any SAP note related to this.Once again thanks alot for you help.
    Regards,
    Kishore.

  • Help needed regarding BADI.

    hi all,
    can anyone plz tell me how to define BADI and how create an interface.
    plz tell from everything regarding that, i have work with basic ABAP only.
    anykind of links and any kind of matter will be helpful and you will be rewarded with points for your help difinatly.
    regards.
    raman.

    Hi Raman,
    Please search the forum and you have lots and lots of links in it. For you to start with, try these links,
    The specified item was not found.
    BADI
    Best Regards.

  • Help needed regarding font sizes

    Iam generating pdf documents using oracle developer's report builder.
    When i generate and view those pdf's using the web previewer thay appear to be quite fine,whereas when i host them on ias the font sizes gets bigger, thus lot of text gets truncated.
    Is there any parameters that has to be set for it.Pls help

    Hi Amit,
    Thanks alot for your reply. Its really helpful for me.
    So,we usually enter these relationships manually only, right? Before going ahead with the custom program, could you please let me know whether there is any SAP note related to this.Once again thanks alot for you help.
    Regards,
    Kishore.

  • Help needed regarding symbol referencing errors.

    Hi All,
    Im trying to compile a C code on Solaris 9 machine (Configuration details: SunOS Generic_112233-12 sun4u sparc SUNW,Sun-Blade-100 , 64-bit sparcv9)
    Command I ran :
    gcc -Wall -g -DUNIX -DN_PLAT_UNIX -I ../include/ client.c ../include/prim.c -L <library path> -ltls -lccs2 -o Client_new1
    ../include/prim.c: In function `PrimCloseSocket':
    ../include/prim.c:101: warning: implicit declaration of function `close'
    ../include/prim.c: In function `PrimSemaphoreInit':
    ../include/prim.c:263: warning: implicit declaration of function `memset'
    Undefined first referenced
    symbol in file
    sem_wait /var/tmp//cco4HZ48.o (symbol belongs to implicit dependency /lib/librt.so.1)
    sem_post /var/tmp//cco4HZ48.o (symbol belongs to implicit dependency /lib/librt.so.1)
    sem_init /var/tmp//cco4HZ48.o (symbol belongs to implicit dependency /lib/librt.so.1)
    nanosleep /var/tmp//cco4HZ48.o (symbol belongs to implicit dependency /lib/librt.so.1)
    sem_destroy /var/tmp//cco4HZ48.o (symbol belongs to implicit dependency /lib/librt.so.1)
    ld: fatal: Symbol referencing errors. No output written to Client_new1
    collect2: ld returned 1 exit status
    I'm getting these symbol referencing errors and I'm totally clueless as to what needs to be done nw. Any help guys??
    Thanks.

    the MAN page for sem_wait() implies that you must link with librt ( -ltr on the command line for linking )

  • Help Needed regarding SQL Loader Error

    Hi,
    I am trying to insert some records into two tables using same control file.
    I am using the follwing command to load data
    sqlload "$ORAUSER" CONTROL="$LDRFILE" DATA="$DATA_PATH/$DATA_FILE" BAD="$BAD_FILE" LOG="$LOG_FILE" DISCARD="$DISCARD_FILE" ERRORS="$MAX_ERRS"
    I am getting the error: SQL-LOADER - 350: Illegal combination of non-alphanumeric characters
    #!/bin/ksh
    Please suggest me what I need to do.
    Thanks,
    Srinivas.

    it appears that you are using this line code in your korn shell script. if you try to do a manual run on the unix command line do you still get the same error?
    also can you post a sample value for all the parameters you have.

  • [Solved] Help needed to interpret errors (python)

    Have the following code (Haven't written it my self and don't know much about how it does what it's supposed to do.):
    #!/usr/bin/python
    import sys
    import os
    import re
    import logging
    import json
    if sys.version_info < (3, 0):
    from urllib2 import Request
    from urllib2 import urlopen
    from urlparse import urlparse
    else:
    from urllib.request import Request
    from urllib.request import urlopen
    from urllib.parse import urlparse
    raw_input = input
    useragent = 'Mozilla/5.0'
    headers = {'User-Agent': useragent}
    intro = """
    Usage: drdown.py url
    This script finds the stream URL from a dr.dk page so you can
    download the tv program.
    def fetch(url):
    """Download body from url"""
    req = Request(url, headers=headers)
    response = urlopen(req)
    body = response.read()
    response.close()
    # convert to string - it is easier to convert here
    if isinstance(body, bytes):
    body = body.decode('utf8')
    return body
    class StreamExtractor:
    def __init__(self, url):
    self.url = url.lower()
    self.urlp = urlparse(self.url)
    def get_stream_data(self):
    """supply a URL to a video page on dr.dk and get back a streaming
    url"""
    if self.urlp.netloc not in ('dr.dk', 'www.dr.dk'):
    raise Exception("Must be an URL from dr.dk")
    self.html = fetch(self.url)
    logging.info("Player fetched: " + self.url)
    # Standalone show?
    if self.urlp.path.startswith('/tv/se/'):
    return self.get_stream_data_from_standalone()
    # Bonanza?
    elif self.urlp.path.startswith('/bonanza/'):
    return self.get_stream_data_from_bonanza()
    # Live tv?
    elif self.urlp.path.startswith('/tv/live'):
    return self.get_stream_data_from_live()
    else:
    return self.get_stream_data_from_series()
    def get_stream_data_from_rurl(self, rurl):
    """Helper method to parse resource JSON document"""
    body = fetch(rurl)
    resource_data = json.loads(body)
    qualities = resource_data.get('links')
    # sort by quality
    qualities = sorted(qualities, key=lambda x: x['bitrateKbps'],
    reverse=True)
    stream_data = qualities[0]
    stream_url = stream_data.get('uri')
    logging.info("Stream data fetched: " + stream_url)
    playpath, filename = self.get_metadata_from_stream_url(stream_url)
    stream_data = {'stream_url': stream_url,
    'playpath': playpath,
    'filename': filename,
    'is_live': False}
    return stream_data
    def get_metadata_from_stream_url(self, stream_url):
    """Helper method to extacts playpath and filename suggestion from a
    rtmp url"""
    parsed = urlparse(stream_url)
    playpath_s = parsed.path.split('/')[2:]
    playpath = '/'.join(playpath_s)
    # rerun to split the parameter
    path = urlparse(parsed.path).path
    filename = path.split('/')[-1]
    return playpath, filename
    def get_stream_data_from_standalone(self):
    """Extracts stream data from a normal single program page.
    The data is hidden in a resource URL, that we need to download
    and parse.
    mu_regex = re.compile('resource: "([^"]+)"')
    m = mu_regex.search(self.html)
    if m and m.groups():
    resource_meta_url = m.groups()[0]
    return self.get_stream_data_from_rurl(resource_meta_url)
    def get_stream_data_from_bonanza(self):
    """Finds stream URL from bonanza section. Just pick up the first RTMP
    url.
    stream_regex = re.compile('rtmp://.*?\.mp4')
    m = stream_regex.search(self.html)
    if m and m.group():
    stream_url = m.group()
    else:
    raise Exception("Could not find Bonanza stream URL")
    playpath, filename = self.get_metadata_from_stream_url(stream_url)
    stream_data = {'stream_url': stream_url,
    'playpath': playpath,
    'filename': filename,
    'is_live': False}
    return stream_data
    def get_stream_data_from_live(self):
    stream_url = 'rtmp://livetv.gss.dr.dk/live'
    quality = '3'
    playpaths = {'dr1': 'livedr01astream',
    'dr2': 'livedr02astream',
    'dr-ramasjang': 'livedr05astream',
    'dr-k': 'livedr04astream',
    'dr-update-2': 'livedr03astream',
    'dr3': 'livedr06astream'}
    urlend = self.urlp.path.split('/')[-1]
    playpath = playpaths.get(urlend)
    filename = 'live.mp4'
    if playpath:
    playpath += quality
    filename = urlend + '.mp4'
    stream_data = {'stream_url': stream_url,
    'playpath': playpath,
    'filename': filename,
    'is_live': True}
    return stream_data
    def get_stream_data_from_series(self):
    """dr.dk has a special player for multi episode series. This is the
    fall back parser, as there seems to be no pattern in the URL."""
    slug_regex = re.compile('seriesSlug=([^"]+)"')
    m = slug_regex.search(self.html)
    if m and m.groups():
    slug_id = m.groups()[0]
    else:
    raise Exception("Could not find program slug")
    logging.info("found slug: " + slug_id)
    program_meta_url = 'http://www.dr.dk/nu/api/programseries/%s/videos'\
    % slug_id
    body = fetch(program_meta_url)
    program_data = json.loads(body)
    if not program_data:
    raise Exception("Could not find data about the program series")
    fragment = self.urlp.fragment
    if fragment.startswith('/'):
    fragment = fragment[1:]
    fragment = fragment.split('/')
    video_id = fragment[0]
    logging.info("Video ID: " + video_id)
    video_data = None
    if video_id:
    for item in program_data:
    if item['id'] == int(video_id):
    video_data = item
    if not video_data:
    video_data = program_data[0]
    resource_meta_url = video_data.get('videoResourceUrl')
    return self.get_stream_data_from_rurl(resource_meta_url)
    def generate_cmd(self):
    """Build command line to download stream with the rtmpdump tool"""
    sdata = self.get_stream_data()
    if not sdata:
    return "Not found"
    filename = sdata['filename']
    custom_filename = raw_input("Type another filename or press <enter> to keep default [%s]: " % filename)
    if custom_filename:
    filename = custom_filename
    cmd_live = 'rtmpdump --live --rtmp="%s" --playpath="%s" -o %s'
    cmd_rec = 'rtmpdump -e --rtmp="%s" --playpath="%s" -o %s'
    if sdata['is_live'] is True:
    cmd = cmd_live % (sdata['stream_url'], sdata['playpath'], filename)
    else:
    cmd = cmd_rec % (sdata['stream_url'], sdata['playpath'], filename)
    return cmd
    def main():
    if len(sys.argv) > 1:
    url = sys.argv[1]
    extractor = StreamExtractor(url)
    cmd = extractor.generate_cmd()
    os.system(cmd)
    else:
    print(intro)
    if __name__ == "__main__":
    main()
    When I run the script with an appropriate URL as parameter, I get this:
    Traceback (most recent call last):
    File "./drdown.py", line 243, in <module>
    main()
    File "./drdown.py", line 235, in main
    cmd = extractor.generate_cmd()
    File "./drdown.py", line 211, in generate_cmd
    sdata = self.get_stream_data()
    File "./drdown.py", line 65, in get_stream_data
    return self.get_stream_data_from_standalone()
    File "./drdown.py", line 123, in get_stream_data_from_standalone
    return self.get_stream_data_from_rurl(resource_meta_url)
    File "./drdown.py", line 87, in get_stream_data_from_rurl
    reverse=True)
    TypeError: 'NoneType' object is not iterable
    I should note that I didn't expect it to work out of the box, but so far I've been unable even to figure out what the problem is, no less solve it.
    I've tried my best to go through the code, looking for typos and such, but I haven't had any luck and much of what happens I don't really understand.
    So please, if you can, I'd very much appreciate a little help.
    Best regards.
    NB:
    Some might conclude that this script does something illegal. In actuality that is not so, just make that clear. Also, testing from outside Denmark, will probably not be possible.
    Last edited by zacariaz (2013-11-08 18:00:33)

    Trilby wrote:
    zacariaz wrote:Have the following code (Haven't written it my self and don't know much about how it does what it's supposed to do.)
    You know a lot more than we do: like where you then found this code, and what it is supposed to do.
    My only first thought without looking through random code that allegedly serves some unknown purpose and comes from some unknown source is that the shebang is ambiguous: it may be a python 2 script while /usr/bin/python is now python 3.
    I've pretty much concluded that python 3.3 is the right choice, sp that should not be a problem, as for what it does, it uses "rtmpdump" to record or "rip" video from a danish site "dr.dk", which is a public service television network.
    I have it from reliable sources that this actually works, or at least did at some point, on Windows machines, but of course i'm on linux, and that complicated matters.
    All in all, as I understand it, what the script really does, is retrieving the relevant rtmp link. The rest is up to "rmtpdump" which I should be able to manage.
    In any case, I'm not really that concerned with learning what the script does at this point, but rather what the error mean.
    The only actual error description I see is: "TypeError: 'NoneType' object is not iterable" and I haven't a clue what that implies. I've read through the script, but haven't been able to find any obvious flaws..

  • Help Needed regarding Mandatory Field.

    Hi All,
    I have requirement that i have to make certain feilds mandatory in my WD4A view. I have made the "state" property of the fields(input element) as "required". Then i tried doing an event on the view to check whether it throws an error, stating mandatory fields are blank, but i dint get any message.
    Please help me to understand whether what i did is suffice or i need to handle the mandatory concept through my code.
    Thanks,
    Selvakumar M.,

    Hi Selva,
    You need to call the static method check_mandatory_attr_on_view of class cl_wd_dynamic_tool. This would then automatically verify if all the mandatory fields have been filled or not. It would then populate the error messages into an internal table and display them in the view. Also the mandatory fields which haven't been filled would be highlighted with a red border. You need to put the below coding into the action up on which you want to trigger the data chesks.
    data: lt_msg TYPE cl_wd_dynamic_tool=>t_check_result_message_tab,
              lo_view_controller TYPE REF TO if_wd_view_controller,
              lo_message_manager type ref to if_wd_message_manager.
      lo_view_controller ?= wd_this->wd_get_api( ).
      lo_message_manager = lo_view_controller->get_message_manager( ).
      cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
        EXPORTING
          view_controller = lo_view_controller
          display_messages = abap_true
        IMPORTING
          messages = lt_msg ).
    Regards,
    Uday

  • Urgent help needed on writing errors in to windows events application logs

    Hi all,
    we have web based application. Whenever there is critical errors encounters in our application we need to write that errors in to windows
    event viewer, application logs. Please help me on how to do this.
    do we have any specific API for this ?
    thanks in advance
    Shivakumar

    You should use WinAPI to do so. Asking in JNI forum (or specialized WinAPI forum) for more details is good idea I think.

  • Urgent help needed on writing errors in to windows application logs

    Hi all,
    we have web based application. Whenever there is critical errors encounters in our application we need to write that errors in to windows
    event viewer, application logs. Please help me on how to do this.
    do we have any specific API for this ?
    thanks in advance
    Shivakumar

    You should use WinAPI and followed functions: RegisterEventSource(), ReportEvent() and may be some more. It was some time ago as I deal with...

  • Help needed regarding the client server communication

    this is regarding my networking project which at present i am doing it in java...
    the project is abt establishing a server in my lab that controls all the other systems in that lab... now the problem is i have to shut down all the systems in the lab from the server on a click of a button.... this i need to do using socket programming to which i am new....
    So can anyone pls send me a sample code as to how to pass a command from server to shut shut down all the systems(clients) ..i need a java program that uses sockets concept to perform the above mentioned operation...pls note i am trying to establish a linux server
    regards
    lalita

    Dear hiwa
    i can use it but the constraint in my project is to use only the Socket programming due to time lacks.... i have to find a faster way to communicate between the server and the client...
    can u pls help me find a solution for this via sockets...
    hoping a favorable response
    regards
    Lalita

Maybe you are looking for

  • Cannot send documents from my ipad to my email

    hi, I have an iPad air.  I love it. .I have always been able to send myself documents ( ex: knitting patterns I have downloaded as pdf) .  Or If I find an intereting webpage I would send the link to myself.  lately, I send the info to my email and I

  • Unknown Error while trying to log in

    While I was attempting to authorize my computer to play music, and even to just log on to my account, I got a message that read "We could not complete your iTunes store request. An unknown error occurred (-9808). There was an error in iTunes store. P

  • Sound Blaster X-Fi skips a beat in windows media player! Help

    I'm going crazy... My media player occasionally skips a beat when I listen to music, or even when I watch movies... though it's rarely a beat in a movie. I don't know what to do, no one I've asked have any idea why this happens. I've formatted my com

  • Ejbs - Included AQ libraries

    I'm trying to deploy an ejb using JDeveloper 3.1.1.2 into Oracle 8.16 which uses the following packages: oracle.aurora.jndi.sess_iiop.*; oracle.jms.*; oracle.AQ.*; I get ClassNotResolved exceptions at the "Generating EJBHome and EJBObject on the serv

  • Copy files listed in a text file

    I'm a programmer at a large university, and not normally involved in systems administration. However, I've been asked to solve a problem. One of our departments relied on an Xserve for storage of many thousands of files (many hundreds of GB). It was