Too many hops

I have yet another problem. I have groupwise 7.0.4 running on windows 2003. everything is running great. But when i send mail, it sends me the mail back to me saying "too many hops". I think this means that its connected to the internet but it can't find a server? I don't know. Could someone help me on this? I had another problem earlier when i had a 550 relay denied but i managed to fix that. Now i have this problem. i can also receive mail just fine.

Originally Posted by Bob-O-Rama
You need to make sure the problem is local to you. If there is a loop, you GWIA will be seen handling the same message over and over, check your GWIA logs.
If you can get the headers for one of these messages, you can see where the loop is occurring.
If its a local loop, two orthogonal settings in the GWIA control this. You can specify a relay ( smart MTA ) host which will be responsible for sending the mail. In that case when you send mail to external @foo.com recipients, the GWIA sends it to the smart MTA you specify. It will resolve foo.com's MX record and deliver the mail. Sometimes this MTA is your spam filter if you scan outbound mail. You can also instruct the GWIA to send mail directly.
You can also specify an undeliverable mail host, a MTA of last resort, which handles mail delivered to the GWIA for other domains you may have. So suppory your GroupWise domain is glom.com but you have users on a different systems also known as glom.com. Mail for GW users is processed by the GWIA, any unknown recipients mail is forwarded to another MTA which, presumably knows the unknown user and will accept the mail.
So the loop will happen at these two touchpoints. You need to determine which hosts are involved in the loop, and why. Only tyhe headers will tell you this.
You could tell us more about your e-mail architecture....
-- Bob
I can only tell you about the e-mail architecture at the moment because i'm away from the server. Anyways, i got eDirectory, IIS, a SMTP Relay server, groupwise and Groupwise agents such as, POA,MTA, and GWIA installed all on one server. GWIA Is pointed to this servers ip address to send mail through the SMTP relay. BTW, how do you check your logs for GWIA?

Similar Messages

  • Sending to local user gives too many hops

    I have set up Mavericks server for mail. Works perfectly for incoming and outgoing mail to other domains but fails when trying to send mail to a local user. Here are my settings:
    example.com is my primary domain, it provides DNS and Mail service
    there are other domains being hosted (web) with example.com providing mail service for them.
    Mail Server setting under "Provide Mails for...": Domain Name is example.com, Virtual domains: myotherdomain.com, example.com (included in list, is this correct?), and some more
    DNS settings: each domain has a machine record for the domain name (e.g. example.com has an A record, myotherdomain.com has its own A record), each domain has an MX pointing to example.com. Domain example.com has an alias (CNAME) record mail.example.com pointing to example.com. This is the only place where the name mail.example.com appears in the whole server.
    Last night I tried to reply to a mail I received from a user on myotherdomain.com. My receiving account is also on myotherdomain.com (myotherdomain.com is one of my domains with MX pointing to example.com). When I simply hit reply the mail server eventually reported back that the mail was not delivered due to too many hops.
    Here are the headers from the mail I received. I simply hit reply and got the too many hops. WHY?
    Return-Path: <[email protected]>
    Delivered-To: [email protected]
    Received: from localhost (localhost [127.0.0.1])
              by miniserver.example.com (Postfix) with ESMTP id 9EE9C4DA4D7
              for <[email protected]>; Wed,  5 Mar 2014 17:09:10 +0100 (CET)
    X-Virus-Scanned: amavisd-new at example.com
    Received: from miniserver.example.com ([127.0.0.1])
              by localhost (miniserver.example.com [127.0.0.1]) (amavisd-new, port 10024)
              with ESMTP id 3oDO8uq8aS6W for <[email protected]>;
              Wed,  5 Mar 2014 17:09:10 +0100 (CET)
    Received: from miniserver.example.com (localhost [127.0.0.1])
              by miniserver.example.com (Postfix) with ESMTPA id 628CD4DA4BE
              for <[email protected]>; Wed,  5 Mar 2014 17:09:10 +0100 (CET)
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="=_50c5075d15c85c7a43995d47cd97c851"
    Date: Wed, 05 Mar 2014 17:09:10 +0100
    From: anita <[email protected]>
    To: [email protected]
    Subject: Hello
    Message-ID: <[email protected]>
    X-Sender: [email protected]
    User-Agent: Roundcube Webmail/RCMAIL_VERSION
    Here is what the mail server reported back after trying to reply:
    This is the mail system at host miniserver.example.com.
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    For further assistance, please send mail to postmaster.
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
                      The mail system
    <[email protected]>: host 127.0.0.1[127.0.0.1] said: 554 5.4.0 id=78365-11
       - Rejected by next-hop MTA on relaying, from MTA(smtp:[127.0.0.1]:10025):
       554 5.4.0 Error: too many hops (in reply to end of DATA command)
    Reporting-MTA: dns; miniserver.example.com
    X-Postfix-Queue-ID: 98CF04DB967
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Wed,  5 Mar 2014 18:52:58 +0100 (CET)
    Final-Recipient: rfc822; [email protected]
    Original-Recipient: rfc822;[email protected]
    Action: failed
    Status: 5.4.0
    Remote-MTA: dns; 127.0.0.1
    Diagnostic-Code: smtp; 554 5.4.0 id=78365-11 - Rejected by next-hop MTA on
       relaying, from MTA(smtp:[127.0.0.1]:10025): 554 5.4.0 Error: too many hops
    Thanks for your help

    Invoke the following diagnostic by launching Terminal.app from Applications > Utilities and see if there are any network or DNS issues reported:
    sudo changeip -checkhostname
    Also post the internal and external DNS translations of the following:
    dig +short miniserver.example.com
    dig +short mail.example.com
    dig +short MX myotherdomain.com
    dig +short MX example.com
    dig +short @8.8.8.8 miniserver.example.com
    dig +short @8.8.8.8 mail.example.com
    dig +short MX @8.8.8.8 myotherdomain.com
    dig +short MX @8.8.8.8 example.com
    I'd look for a bogus or missing MX record for myotherdomain.com, to start with.
    FWIW, myotherdomain.com is a real and registered domain.    Probably not yours, I'm guessing.  The example.net and example.org domains are also available for obfuscation, in addition to the example.com domain.

  • Error 483 Too many hops

    Hi,
    I am trying to establish a connection between 2 IP phones. Both these IP Phones and the OCMS set up is on the corporate intranet network. The OCMS server can ping the IP address of these IP phones.
    However when I run my application to establish the connection, I get Error 483 - Too many hops.
    Below is a snapshot of the traffic log
    ===========================================================
    2007-10-03 18:39:11,003 DEBUG [SipTcpProtocolFactory] (HTTPThreadGroup-9:) OUT> 10.76.82.218:5060/TCP 10.76.82.218:5060/TCP INVITE sip:[email protected] SIP/2.0
    Route: <sip:10.76.82.218:5060;x-resolved-addr=127.0.0.1:5060;transport=TCP;lr>
    Record-Route: <sip:10.76.82.218:5060;transport=tcp;asid=Nka8tjjpck8n-1fmviemhha96q;b;sid=0;lr>
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-1vt889yo1upzd-123r74rin7zff.1.1;rport
    Route: <sip:127.0.0.1:5060;transport=TCP;lr;appId=proxyregistrar>
    Record-Route: <sip:10.76.82.218:5060;transport=tcp;asid=Nssdunfz51fhv-1kzcwmv3kt29d;b;sid=0;lr>
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK--14gqj9yqd3hj9-19yypup87imkb.1.1;received=10.76.82.218;rport=1893
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-zgadewdllfyd-1t5m2gdzw6ubo.1.1;received=10.76.82.218;rport=1893
    Route: <sip:127.0.0.1:5060;transport=TCP;lr;appId=proxyregistrar>
    CSeq: 1 INVITE
    Route: <sip:10.76.82.218:5060;transport=tcp>
    Contact: <sip:10.76.82.218:5060;transport=tcp;asid=N-1d1npn5mxp09i-12mgzhvksgk9r>
    From: "[email protected]" <sip:[email protected]>;tag=oysnl9hv9x7s-1q1474xagwpzw
    To: <sip:[email protected]>
    Call-ID: -19xcq1v6ekxfi-1fabel4uj7y4m
    Content-Length: 0
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-nv5e924as7fx-18h2cdzsqq9o7.1;received=10.76.82.218;rport=1893
    Max-Forwards: 30
    P-Asserted-Identity: sip:[email protected]
    ================================
    The Max-forwards is decremented in each subsequent message.
    Any pointers to this problem will be highly appreciated.
    Thanks,
    Uday

    Hi,
    I am trying to establish a connection between 2 IP phones. Both these IP Phones and the OCMS set up is on the corporate intranet network. The OCMS server can ping the IP address of these IP phones.
    However when I run my application to establish the connection, I get Error 483 - Too many hops.
    Below is a snapshot of the traffic log
    ===========================================================
    2007-10-03 18:39:11,003 DEBUG [SipTcpProtocolFactory] (HTTPThreadGroup-9:) OUT> 10.76.82.218:5060/TCP 10.76.82.218:5060/TCP INVITE sip:[email protected] SIP/2.0
    Route: <sip:10.76.82.218:5060;x-resolved-addr=127.0.0.1:5060;transport=TCP;lr>
    Record-Route: <sip:10.76.82.218:5060;transport=tcp;asid=Nka8tjjpck8n-1fmviemhha96q;b;sid=0;lr>
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-1vt889yo1upzd-123r74rin7zff.1.1;rport
    Route: <sip:127.0.0.1:5060;transport=TCP;lr;appId=proxyregistrar>
    Record-Route: <sip:10.76.82.218:5060;transport=tcp;asid=Nssdunfz51fhv-1kzcwmv3kt29d;b;sid=0;lr>
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK--14gqj9yqd3hj9-19yypup87imkb.1.1;received=10.76.82.218;rport=1893
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-zgadewdllfyd-1t5m2gdzw6ubo.1.1;received=10.76.82.218;rport=1893
    Route: <sip:127.0.0.1:5060;transport=TCP;lr;appId=proxyregistrar>
    CSeq: 1 INVITE
    Route: <sip:10.76.82.218:5060;transport=tcp>
    Contact: <sip:10.76.82.218:5060;transport=tcp;asid=N-1d1npn5mxp09i-12mgzhvksgk9r>
    From: "[email protected]" <sip:[email protected]>;tag=oysnl9hv9x7s-1q1474xagwpzw
    To: <sip:[email protected]>
    Call-ID: -19xcq1v6ekxfi-1fabel4uj7y4m
    Content-Length: 0
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-nv5e924as7fx-18h2cdzsqq9o7.1;received=10.76.82.218;rport=1893
    Max-Forwards: 30
    P-Asserted-Identity: sip:[email protected]
    ================================
    The Max-forwards is decremented in each subsequent message.
    Any pointers to this problem will be highly appreciated.
    Thanks,
    Uday

  • Too many open socket connections causing ColdFusion to crash?

    I’m currently working on an e-commerce site which sends and receives information to/from the client’s order management system via XML over a TCP/IP socket.  It uses a very old java-based custom tag called CFX_JSOCKET (which appears to have been written in 2002) to open the socket, send the data, and get the response.  The code that calls the custom tag and sends/receives data from the OMS pre-dates my working on the site, but its always worked, so I haven’t paid it much attention.
    Back in the summer of 2009 we started experiencing issues with ColdFusion (v.7 on Window 2003 at the time) locking up on a more and more frequent basis, until it ultimately became a daily issue.  After extensive research we narrowed the issue down to the communication between the web server and our client’s order management server.  It seemed the issue with ColdFusion hanging was either related to there being too many connections open, or to these connections hanging and resulting in dead threads.  This an educated guess based on a blog post I’d seen online, not actual monitoring of either CF or the TCP/IP connections.  As soon as we dialed back the timeout on the CFX_JSOCKET tag from 20 seconds to 10, the issue disappeared, so we left it at that and moved on.
    Fast forward to this January. The site is hosted at a new location, on a 64-bit Windows 2008 box running ColdFusion 9.  Over the years traffic on the site has continued to grow.  The nature of the clients business means that August and January are their business times of the year (back to school for college kids) and in January ColdFusion once again started locking up on an almost-daily basis.  
    One significant difference is that the address cleansing software that previously ran on the box and was used to verify shipping addresses is not available for 64-bit, so when we moved to the new server last summer, that task was moved to the client’s order management software and handled via XML like all other interaction with that system. However, while most XML calls to that server (order input, inventory check, etc) take under a second to complete, the address cleansing call regularly takes over 5 seconds to return data, and frequently times out. 
    Once we eliminated the address cleansing call from the checkout process, ColdFusion once again stopped locking up regularly.  So it appears that once again it’s the communication between the web server and the order management server that’s causing problems. We currently have that address cleansing call disabled on the web site in order to keep ColdFusion from crashing, but that’s not a long term solution.
    We don’t have, nor can I find online, the source code for the CFX_JSOCKET custom tag, so I decided I’d write some CF code utilizing the java methods to open the socket, send the data, get the response, and close the connection.  My test code is working fine (under no load).  However, in trying to troubleshoot an issue I had with it, I started monitoring the TCP/IP connections using TCPView.  And I noticed that all the connections to the order management server, whether opened via the custom tag or my new code, remain open in either a TIME_WAIT or FIN_WAIT2 status for well over 2 minutes, even though I know for a fact that my new code is definitely closing the connection from the web server side. 
    They do all close eventually, but I’m wondering 1. Why they’re remaining open that long; 2. Is that normal; and 3. If all these connections remaining open could be what’s causing ColdFusion to choke. 
    Does this sound plausible?  If so, does anyone have any suggestions/recommendations about how to fix it?  My research seems to indicate this might be a matter of the order management system not closing the connection on its end, but I’m in way over my head, and before I go to client and tell them it’s their OMS causing the issue, I need to feel a little more confident that I’m on the right track. 
    Any help or advice would be very greatly appreciated.  And thanks for taking the time to read through my long-winded explanation of the problem.
    Set-up details:
    ColdFusion Version: 9,0,0,251028  Standard 
    Operating System: Windows Server 2008 
    Java Version: 1.6.0_14 
    Java VM Name: Java HotSpot(TM) 64-Bit Server VM 
    Java VM Version: 14.0-b16 
    Thanks,
    Laurie

    Hi Laurie,
    Not aware of custom tag called CFX_JSOCKET. I guess the process you described very well is consuming a resource then you are getting a problem. Trick is what parameter to adjust. Perhaps you are running out of one the threads in CFadmin > Server Settings > Request Tuning.
    I expect if you enable CF Metrics logging where you can log the threads and other resources then you can find out which parameter needs adjusting. Let me know if you want some details on enabling CF Metrics. Perhaps others will have much better idea than me and help without the overhead of logging.
    The other interesting thing is you are using CF9.0.0. Do you have some reasons for not being on updater1 CF9.0.1?
    HTH, Carl.
    PS I posted before however seems to have gone, just hope does not come back and then I have posted twice.

  • Bex Query: Too many table names in the query The maximum allowable is 256

    Hi Experts,
    I need your help, Im working on a Query using a multiprovider of 2 datastores, I need to work with cells to assign specific acconts values to specific rows and columns, so I was creating a Structure with elements from a Hierarchy, but I get this error when I'm half way of the structure:
    "Too many table names in the query. The maximum allowable is 256.Incorrect syntax near ')'.Incorrect syntax near 'O1'."
    Any idea what is happening? is ti possible to fix it? do I need to ask for a modification of my Infoproviders? Some one told me is possible to combine 2 querys, is it true?
    Thanks a lot for your time and pacience.

    Hi,
    The maximum allowable limit is 256 holds true. It is the max no. of characteristics and key figures that can be used in the column side. While creating a structure, you create key figures (restricted or calculated) and formulas etc.. The objects that you use to create these should not be more than 256.
    http://help.sap.com/saphelp_nw70/helpdata/EN/4d/e2bebb41da1d42917100471b364efa/frameset.htm
    Not sure if combination of 2 query's is possible.  You can use RRI. Or have a woorkbook with 2 queries.
    Hope it helps.

  • Slow system and too many details after upgrading to OS/Lion

    This MacBook Pro is my right hand, I was doing so great with Snow Leopard, Now everything takes twice longer. I cleaned up, reseted, reinstalled softwares, etc. same.
    Too many details that doesn't work correctly.
    -Safari constantly needs to be loading. Some times Firefox.
         The track pad cant keep open a display box with a long list, once you try to scroll down.
    -Preview, i used this app a lot, safe me time, DUPLICATE? instead of SAVE, i don't see the purpose. After editing images and safe them, gamma, color patterns and light appear distortion.
    -iTunes volume doesn't comeback after using Skype or another app, remains low.
    -Airport takes a bit longer to find a local network.
    -There is not an extra space for the left and right scroll bottom on the finder window, sometimes this one disappear but mostly remains which makes it pretty tricky to open the last file at the bottom of the list. because the scroller is on front.
    -External Drives, takes longer to connect or disconnect them.
    Suggestions before i reinstall Snow Leopard.

    guizz,
    it sounds like you have come across the mother of all problems but i would like to help as much as i can.
    first of all, i noticed that it took a few days after installing lion before my system was back to the full stride it had while running snow leopard give it some time and a few updates and lion should speed up because components such as ram take time to adjust.
    the duplicate thing in preview is a new thing that came out with versions, one of the many new features in lion. i think it takes the place of the SAVE AS... command and you should still be able to save using the old command-s keystroke however part of lion includes an autosave feature so you really never have to worry about saving your work.
    i personally cannot speak for safari or firefox even though i have both because i use google chrome as my web browser you can always give that a try.
    in the system preferences under the general settings option you can change how the scroll bar is displayed on the screen.
    i would suggest searching for other people who have had similar problems with itunes to try and find an answer
    as for everything else your system may just need time to adjust to lion
    good luck hope this helped a little

  • How do I reset the number of activations on Visio 2003 after getting a "too many activations" message?

    I just installed Visio 2003 on a PC, and got the "we can't activate this app via the internet because you've installed it too many times" message. I went back to phone activation, but, of course, that's no longer available for this product.
    How do I get the number of activations reset? Apparently you used to be able to do this by calling Microsoft, but what's the number to call? Or is there another way to do it?
    I'm probably going to need to do it for my copy of Office 2003 also.

    Hi,
    Microsoft has ended support for Office 2003 on April 8, 2014. This change will affect your software updates and security options.
    Please contact your local customer service. Explain to the service (Human being) that you can’t activate Visio 2003 and the error message is “we can't
    activate this app via the internet because you've installed it too many times”.
    You can find
    your local custom support number on the link below.http://support.microsoft.com/gp/customer-service-phone-numbers/en-us
    Hope it can be helpful.

  • Runtime Error - DBIF_RSQL_INVALID_RSQL - Too many OPEN CURSOR

    When I try to train a Decision Tree Model via an APD process in RSANWB, I get a runtime error when my model is configured with too many parameter fields or too many leaves (with 2 leaves it works, with more it fails).
    By searching SAP Notes I see that there are many references to this kind of runtime errors. But no note on occurences of it in RSANWB / RSDMWB .
    Any information on this anyone?
    Claudio Ciardelli
    Runtime Errors         DBIF_RSQL_INVALID_RSQL
    Date and Time          29.07.2005 16:19:21
    |ShrtText                                                                                |
    |    Error in RSQL module of database interface.                                                   |
    |What happened?                                                                                |
    |    Error in ABAP application program.                                                            |
    |                                                                                |
    |    The current ABAP program "SAPLRS_DME_DECISION_TREE_PRED" had to be terminated                 |
    |     because one of the                                                                           |
    |    statements could not be executed.                                                             |
    |                                                                                |
    |    This is probably due to an error in the ABAP program.                                         |
    |                                                                                |
    |Error analysis                                                                                |
    |    The system attempted to open a cursor for a SELECT or OPEN CURSOR                             |
    |    statement but all 16 cursors were already in use.                                             |
    |    The statement that failed accesses table "/BIC/0CDT000030 ".                                  |
    |    The erroneous statement accesses table "/BIC/0CDT000030 ".                                    |
    |Trigger Location of Runtime Error                                                                 |
    |    Program                                 SAPLRS_DME_DECISION_TREE_PRED                         |
    |    Include                                 LRS_DME_DECISION_TREE_PREDU06                         |
    |    Row                                     103                                                   |
    |    Module type                             (FUNCTION)                                            |
    |    Module Name                             RS_DME_DTP_EVALUATE                                   |
    |Source Code Extract                                                                               |
    |Line |SourceCde                                                                                |
    |   73|* Prepare for Data evaluation                                                               |
    |   74|  CATCH SYSTEM-EXCEPTIONS OTHERS = 15.                                                      |
    |   75|    CREATE DATA ref TYPE (i_enum_dbtab).                                                    |
    |   76|    ASSIGN ref->* TO <fs_wkarea>.                                                           |
    |   77|    ASSIGN COMPONENT gv_class_dbposit OF STRUCTURE                                          |
    |   78|                      <fs_wkarea> TO <fs_class>.                                            |
    |   79|    CREATE DATA ref TYPE TABLE OF (i_enum_dbtab).                                           |
    |   80|    ASSIGN ref->* TO <ft_data>.                                                             |
    |   81|                                                                                |
    |   82|  ENDCATCH.                                                                                |
    |   83|  IF sy-subrc = 15.                                                                         |
    |   84|*   Error on Assignment.                                                                    |
    |   85|    CALL FUNCTION 'RS_DME_COM_ADDMSG_NOLOG'                                                 |
    |   86|      EXPORTING                                                                             |
    |   87|        i_type    = 'E'                                                                     |
    |   88|        i_msgno   = 301                                                                     |
    |   89|        i_msgv1   = 'EVALUATION_PHASE'                                                      |
    |   90|      IMPORTING                                                                             |
    |   91|        es_return = ls_return.                                                              |
    |   92|    APPEND ls_return TO e_t_return.                                                         |
    |   93|    EXIT.                                                                                |
    |   94|  ENDIF.                                                                                |
    |   95|                                                                                |
    |   96|* For the un-trained Rec-Ids, evaluate.....                                                 |
    |   97|  REFRESH lt_recinp.                                                                        |
    |   98|  APPEND LINES OF i_t_records TO lt_recinp.                                                 |
    |   99|  SORT lt_recinp .                                                                          |
    |  100|* Open Cursor..                                                                             |
    |  101|  DATA: l_curs TYPE cursor.                                                                 |
    |  102|  DATA: l_psize TYPE i VALUE 10000.                                                         |
    |>>>>>|  OPEN CURSOR WITH HOLD l_curs FOR                                                          |
    |  104|   SELECT * FROM (i_enum_dbtab)                                                             |
    |  105|     WHERE rsdmdt_recid NOT IN                                                              |
    |  106|        ( SELECT rsdmdt_recid FROM                                                          |
    |  107|             (i_learn_tab) ).                                                               |
    |  108|                                                                                |
    |  109|*  Start Fetch...                                                                           |
    |  110|  DO.                                                                                |
    |  111|    FETCH NEXT CURSOR l_curs                                                                |
    |  112|      INTO CORRESPONDING FIELDS OF TABLE <ft_data>                                          |
    |  113|      PACKAGE SIZE l_psize.                                                                 |
    |  114|    IF sy-subrc NE space.                                                                   |
    |  115|      EXIT.                                                                                |
    |  116|    ENDIF.                                                                                |
    |  117|                                                                                |
    |  118|*     Process records...                                                                    |
    |  119|    LOOP AT <ft_data> ASSIGNING <fs_wkarea>.                                                |
    |  120|                                                                                |
    |  121|*     Call Prediction Function.                                                             |
    |  122|      CALL FUNCTION 'RS_DME_DTP_PREDICT_STRUCTURE'                                          |

    Hi Claudio,
    well the message is very clear and I think in your case you need to split your model into a few somehow equal models, each not having more than 2 leaves.
    Another option might be to do more things serially instead of parallel.
    Hope it helps
    regards
    Siggi

  • Jpeg to gif ( too many color exception !)

    Dear all :
    I want to convert a jpeg file to gif file (no need to animation's one ) using java . I have found a source program (GIFEncoder ) that convert the image to the gif file . But when i using the class to convert a jpeg to gif, a ' too many color exception ' has return . It is not diffcult to think why the exception happen , it is because the jpeg is always represent in true color (24 bits) , while the gif can only display 256 color (8 bits) . so , i have no ideas that how to create a 256 color jpeg using java ? because the JPEGEncoder package provided by sun will create a 24 bits jpeg file .The JAI can't create the gif files as the animation features of gif files .
    So anyone can teach me the ways of how to create a 256 color jpeg using java , or a suggestions that create gif file using java ?
    Thanks in advance !

    Here's how I do it (it's not based on a color theory or anything, it's just the first thing that came to my mind when I needed this functionality in one of my applications):
    I set up a table with the 256 most frequently appearing colors in the image. Sometimes, these colors are too similar, so I use a little algorithm that makes sure that the colors are satisfyingly different. The algorithm takes a parameter (the color dispersion parameter) and works according to the following pseudocode:
    for all colors in the palette do:
    differential = 0;
    differential = abs(oldColor.red - newColor.red) + abs(oldColor.green - newColor.green) + abs(oldColor.blue - newColor.blue);
    if differential < color dispersion parameter
    don't add new color
    If the new color passes this test, it is added to the palette. Depending on your needs, you may want to let the user select the degree of "color dispersion". If the palette doesn't contain 256 colors after this first pass, I decrease the color dispersion parameter by one and loop over the colors again (keeping the palette from the first pass of course). When this parameter reaches 0, there must be 256 colors in the palette, or the picture wouldn't need to be converted.
    Then make an IndexColorModel from your palette data and set up a MemoryImageSource. From this you can create your image and do whatever you want with it.
    Hope this helps!

  • Photoshop CS5.1 Extended: Could not complete your request because there are too many Files Open

    I saved a file last night and now this morning I get an error message stating: "Photoshop CS5.1 Extended: Could not complete your request because there are too many Files Open. Try closing some windows and try again.". I've rebooted the system and made sure Photoshop was the only program running and that there were no other files open prior to trying to open my file. I increased Photoshops ram usage, checked the OpenGL settings, 3D and VRAM settings, cleared my temp files and am at a loss for opening this file.
    System Specs:
    Win 7 64
    6 core I7 processor
    32gb Ram
    3GB VRAM
    600gb free space on 7200 rpm drive
    File specs:
    1 3D object replicated maybe 5 times (yes, I should have rasterized them, and will do that to 4 of them if I get the file open)
    Maybe 8 textures
    Not sure how many total layers.
    Is there anyway to get Photoshop to reopen this file?

    No, more VRAM is useless. I had the same thought as you so I tried with a friend's computer with 3GB of VRAM for 8GB RAM (mine has 1GB VRAM for 16GB RAM). Still got the same error message. Sorry guys but our files are lost until Adobe fix the error in Photoshop code. I hope in the future they will find a way to either fix this error or give a clear limitation, it is really a shame such a dangerous problem exists and persists for more than 3 photoshop gen.
    Still you may be able to have at least a flat image of your latest file by trying to open the file as smart object. I started my work over by doing that. Not a lot but better than nothing.
    However for my new file I am trying something different : Each time I think a 3D file is final, I do not rasterize it but make it into a smart object and save the new smart object into a single separated .psd file. If any change is needed I can still edit all of my 3D objects by opening them separately. So far it works, the global file is lighter with few to no 3D objects inside but I will not say it is a 100% no-risk method yet.
    Last advice I can give everyone : Before closing the file you are working on, save it as a copy (File / Save as... and check 'As copy' in the options below) then with your main file still open, try to open the copy. You may need a lot of memory if your file is heavy but still if the dreaded error message appears when you try to open the copy then remove or rasterize some 3D objects in your main one. Save again as copy and try to open the copy until you do not get the message anymore.

  • Nice update but as usual too many loose ends......

    A BB users since 1997 and needless to say not without peril.  The 2.0 update while generaly well designed still leaves us hanging for updates to remedy several shortcomings.
    Recent Desktop Manager quite buggy.
    Print to Go software install issues for 64 bit Win7.
    Print to Go issues with several models.
    No effort to inform users as to how Android is incoporated in the update.
    No seamless sync to Outlook via DM?  This one is a doozie considering that we get to sync seamlessly on    our handhelds.
    No native Task Manager?
    No native LED color control.  ie: red for e-mail, blue for calendar etc...
    No Movie Store for Canadian users.
    People's love affair with RIM is in very thin ice and they need to start getting things done right the first time out.  Unlike Microsoft, RIM will not survice via patches and service packs.
    At any rate, I will as will 1000's of others patiently wait for updates.
    Pat

    It may be related to recent Safari updates.
    I found this on a [support page for Tinker Tool system|http://www.bresink.de/osx/193281/issues.html], a program that apparently includes such a feature:
    Problem: Using the feature "Repeat System Optimization" will indicate operating system errors after Safari 3.2 or 3.2.1 has been installed on Mac OS X 10.4.11. If you are using Mac OS X Tiger 10.4.11 and you have installed Safari 3.2 or 3.2.1, performing the function Maintenance > System Optimization in TinkerTool System will always stop after a few seconds. The program will display the error message update_prebinding: too many errors (101).
    Workaround: The behavior of TinkerTool System is correct. The Tiger installers of Safari 3.2 and 3.2.1 break some part of the prebinding policies of Mac OS X Tiger by installing a non-prebound version of the system's shared XML processing library libxml2.2.dylib. As a result, applications may launch slower than usual and attempts to update the prebinding information will fail. We have informed Apple about this problem and hope they will correct it in future versions of the Safari installer
    See [this thread|http://discussions.apple.com/thread.jspa?messageID=8464103] as well.
    If this is the issue, Apple will have to fix it with a later update.

  • JDBC receiver error - ORA-00913: too many values

    Hi all,
    Facing a strange issue with proxy-jdbc issue.
    Message fails with error - ORA-00913: too many values
    Handling the missing fields from the source with - Empty String in the comm. Channel
    Empty string handling works fine - whenever there is no value coming form souce, null is inserted into the field value on the DB.
    Trying to insert the same data manually, it works fine. But gives this error END2END.
    When testing END2END, if the field values are made couple of chars less in length, that works fine....fails with the actual data.....seems to be the issue with the field lenghts on the DB.
    Increased all the lengths by 10 chars..still does not work.
    Except the key fields of the DB table, all others are nullable.
    Is there anything else, I am missing...
    Note: Generally, ORA-00913: too many values comes when the number of fields and the number of values donot match in an INSERT/UPDATE statement.
    reg

    Hi
    When testing END2END, if the field values are made couple of chars less in length, that works fine....fails with the actual data.....seems to be the issue with the field lenghts on the DB.
    Increased all the lengths by 10 chars..still does not work
    Well the error you mention generally occurs when the insert statement has more fields mention than in the table .ie you are mentioning extra field .aur this error is due to the field lenght of any of the filed you had to check in the oracle itself  by using the command DESCRIBE there you ll be able to see the field lenght of each and every field .
    hope your problem got resolved :
    Regard's
    Chetan Ahuja

  • Too many hard drives?

    I'm experiencing a growing problem, and that's that I'm getting too many hard drives. I originally bought a 250GB drive, then added a 400GB drive, and lastly I got a 100GB bus powered drive for portability. But now I need another drive for media and render files. The problem comes when I've run out of power outlets, and only see that issue getting worse. I was thinking of getting something that will let me expand my storage as my needs grow, without needed added power supplies. Basically I need an enclosure that I would plop extra drive in as I need them, does anyone know of such a thing? I've looked but the devices I've found aren't really what I had in mind.
    Thanks,
    -Brian

    hey Brian
    sounds like you need to do some Media Management. although others may be using considerably more, 750GB is still a fair chunk of drive space.
    do you regularly backup finished projects to tape, archive projects and non-timecode related media to DVD, clear off no longer needed media?
    this isn't a bad intro to project and media management:
    http://larryjordan.biz/articles/lj_archive.html
    regarding the, pop in another drive idea. do you actually need the old drive and media to still be available? if not, an oft used technique these days is to use a FW or SATA disc enclosure ... if you budget in the cost of the disc with each job, then each new job or client can get there own hard disc, when the job is done you pop out the disc and put it on the shelf, and then simply replace with a new disc in the enclosure. these days disc space is dirt cheap.
    hope it helps
    Andy

  • Sync fails in iTunes 9.0 & 9.01: "too many files open" and error -6999

    I've been trying to synch my iPod (Touch, g1) for the last couple weeks but have been getting errors ever since going to iTunes 9.0.
    First it blew my library and now says "Previous iTunes Libraries" at the top. Can live with that (after going through and reloading about 2/3s of the album artwork).
    But now am getting two errors every time I try to sync. One is, "Attempting to copy to the disk '[my iPod's name]' failed. There are too many files open currently."
    Elsewhere I saw it suggested for this error that I turn off sharing, but, alas, sharing isn't turned on.
    The second error message is, "The iPod '[my iPod's name]' cannot be synced. An unknown error occurred (-6999)." and I can't find any mention by Apple about what to do about this.
    HELP. Please.

    There has been some advice to turn off "sharing" to stop getting the "too many files open" error message, but, as noted in my question, sharing was already turned off in the iTunes Preferences.
    But, it turns out, of course, that there is another kind of sharing in the 9.x iTunes -- the one for sharing libraries on your local network. Don't know why they are different because the function seems the same, but I noticed that there was still an icon for "home sharing" or "house sharing" (little picture of a house) on the library/playlist list in iTunes.
    I right clicked on the house icon and found another checkbox switch there. I turned that one off too (Why Apple?) and, voila, the "too many files" error has (apparently) gone away.
    Hope this helps some others out there.
    Apparently you have to turn off sharing in two different places. (Again; why is that, Apple?)

  • Intermittent too many open files error and Invalid TLV error

    Post Author: jam2008
    CA Forum: General
    I'm writing this up in the hopes of saving someone else a couple of days of hair-pulling...
    Environment: Crystal Reports XI Enterprise / also runtime via Accpac ERP 5.4
    Invalid TLV error in Accpac
    "too many open files" error in event.log file
    Situation:
    Invalid TLV error occurs seemingly randomly on report created in CR Professional 11.  Several days of troubleshooting finally lead to the following diagnosis:
    This error occurs in a report that contains MORE THAN 1 bitmap image.
    The error only shows up after 20 or more reports have been generated sequentially, WITHOUT CLOSING the application that is calling the report.  In our case the Invoice Report dialog within Accpac.  This same error occurred in a custom 3rd party VB.NET app that also called the report through an Accpac API.

    after getting this message you need to do 2 things:
    1. delete the current workspace because it contains some bad data in one the config files - failure to delete the workspace will result the error message to appear even if trying to upload a single file.
    2. add to DTR files in groups - no more than 500 in a single add.

Maybe you are looking for