Initiator zoning by iscsi / isns?

Hi,
I got used to fibre channel san storage. When I create a lun I can share it across all servers grouped in a zone (set up in a fc switch). It`s like a folder shared to a group of users in AD. So, in FC world it`s easy part.
I`d like to do it in MS world using some 2012r2 servers: ADDS and iscsi targets. After all, MS requires iscsi disks need to have iscsi initiators. The hard part is I can`t just group servers` accounts into a few global AD security groups (called for example:
zone1, 2 ...) and then publish zones as iscsi initiators (as I can do with FC switch). 
My idea is to provide flexible storage solution that can be managed with minimum administrative effort. This is because we have many virtual environments in datacenter, so server`s and network architecture is very variable (sometimes: daily). Publishing
each day tons of new iscsi links to each iscsi targets is a waste of time, much better thing is to group / team servers (just like grouping computers for GPO purposes).
Thanks,
Jerry

Hi Jerry,
You can use iSCSIcli or setup the iSNS server.
The related information:
iSCSICLI Batch file to quickly connect to an iSCSI
http://blogs.msdn.com/b/san/archive/2008/09/18/iscsicli-batch-file-to-quickly-connect-to-an-iscsi-target.aspx
iSNS Server Overview
http://technet.microsoft.com/en-us/library/cc772568.aspx
I’m glad to be of help to you!
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • What language would suit someone who hates anything that isn't PHP?

    Psst. Yes, this message is long, but so are my requirements. Please take the extra few seconds to read it
    First it was QBasic, then QuickBasic, then, of all things, Visual Basic... version 1.0. On Win98. Then XP.
    I made a lot of stuff with VB. 500 doesn't give a very good indication of how many things I made with VB 1.0, but I remember having more items than that in my c:\vbwin folder. VB might not look all that great visually, but it had a few things I've not found in any other language/environment, namely simplicity, freedom of use, speed, flexibility, hackability, and speed. Definately speed. It wasn't great on memory usage however - after my projects started creating 80KB binaries, VB would start to get crashy.
    But VB had simplicity because it didn't use the 2873598734-options 997341234-properties 897592873562874353469582743-functions mantra of VB 6.0 nor the 9-billion-of-everything mantra of .net. I could whip up an application in that environment within seconds - indeed, I became quite a master at configuring some defaults I liked for forms and adding a hidden button that responded to the ESC key in about 7 seconds. It had freedom of use because... I could do anything with it. I could, because I was just that patient enough, use 234 perfectly aligned pictureboxes to create "the Win95 look" in a program designed to work on Windows 3.1 (yes, VB 1.0 is 16-bit ), and VB had speed because those 234 pictureboxes appeared on my running program's form when I hit F5 faster than I could blink. It had flexibility because I could shove 12MB of BMPs into my EXE and it'd run fine. It had hackability because I could import the Win16 API and work around issues in the language itself to make my applications what I wanted them to be. Did I mention the speed? Well, it was copyrighted in 1991, so was written in the good old days of the 16MHz 486!
    However, all that fun was, sadly, from a while ago. Like, 8 months ago or so, probably more.
    What marked the end of that period was a conversation on IRC one day: someone gave me a 5-or-so line snippet of code in PHP. It wasn't very complicated, but it showed a clean solution to something I needed to do with web development, which I was just getting into at the time - I can't really remember what the actual issue was, but I do remember that my choices were either to use the code snippet, or go through some looong complex process to complete whatever it was I wanted to do manually.
    The code didn't look too scary, so I installed PHP and gave it a whirl. And I've liked, used, and abused PHP for many months following that initial "well maybe this isn't so bad". I don't mind PHP's use of 14 functions or more/less to do the same thing, or the fact that PHP isn't multithreaded. I probably wouldn't take advantage of multithreading in my code for a long time anyway, and PHP does have pcntl_fork() if I want to do two things at once in a controlled way.
    However... I'm starting to outgrow PHP, and I'm a bit homesick of VB's visual ease of use as well. I want an environment that lets me drag'n'drop a picturebox onto a form, shove a pile of pictureboxes inside of it, then programmatically manage them all. Yes, that's exactly the kind of thing I'd do with VB 1.0, and what do you know, I created something good from it - a simple but very usable media center-ish user interface complete with animation and it all ran fast on the PC I was using, a Pentium 3 clocked at 450MHz, with only 128MB RAM.
    Yes, PHP-GTK, PHP-QT and PHP-TK do exist, and they've all failed on my system at various points: PHP-GTK compiles and works absolutely fine, but breaks PHP-CGI. PHP-QT won't compile on my system, and its compile process is just too hard to tweak so I can't try gcc-3.4 on it. And anything involving PHP-TK that doesn't amount to creating a single, empty, lifeless window titled "PHP/TK" produces warnings or segfaults.
    So I'm looking for a programming language that gives me something comparable or equal to what VB 1.0 had - a visual drag'n'drop development environment that didn't visually overwhelm, compilation, and speed, and what PHP has - simplicity, readability, and bindings to/for everything that isn't desktop application development, without the VB syntax format. I'm past VB, and about to surpass PHP.
    Possible candidates for a new language are pretty much anything that includes both a compiler and interpreter, looks and feels like PHP, has nothing PHP doesn't have, but offers more power by using more functions, not weird, non-C-like ASCII character soup. So, if you were to take the PHP parsing engine and couple that with a bunch of libraries that adds sane stuff like native window support, the ability to manage boxes and squares in code, and so on. OR anything equivalent. So if something had ability XYZ which I couldn't figure out how to use, but also let me complete goal ABC while *not* using XYZ, it meets my requirements. And if something has just an compiler, you'll have a bit of a hard time convincing me to like it, but if it only has an interpreter, you'll really need to sell it to me, since I'm starting to get the compilation bug again, just like I did 7-8 years ago when I gazed at the wonder that was the EXE and wanted so badly to create my own.
    Also, before you list Perl, let me stop you: Perl has too many unreadabilities. "test ? abc : def" is about as far as I'm prepared to go; I far prefer English text over regular expressions, Awk and the like. Also, C is just too much. It is, probably unsurprisingly considering what you've just read, too cool for my artistic brain. I don't want a language that can do everything: I get inspired by difficulty, not being able to do whatever I want. Yes, that's how my brain works, and I need to go with the flow, not against it, so simply because C can do absolutely anything and everything, I can't use it.
    I will, however, note that I also like the Bash language, and the way it works, if only it wasn't so slow!
    So, to sum up, the best things I've written include a media center user interface in a language that's 17 years old (same age as me! ), a telnet server using PHP (I wrote the RFC-compliant telnet parser myself, from scratch), and lastly a textual taskbar, an IRC client, and some animations using Bash.
    I want a language that is readable and doesn't try to extend or expound on its own using syntax but lets me do the thinking my own way, so I have nothing stopping me from using it for what it wasn't used for. Because isn't that what we all do with programming languages anyway?
    -dav7

    As promised...
    A little simple at the moment, but it's the result of a dream... to create The Perfect Language. I just may end up calling it TPL if it works out.
    ; dav7's view of what The Perfect Language is
    ; Licensed under the Nonexistant Public License (NPL) - "do w/e you want w/ it, just give me a bit of credit."
    ; 30-sep-08 - ?-oct-08
    ; <[email protected]>
    ; /me invents comment blocks so he doesn't have to keep typing ;s
    There. :D
    Now, the problem with most common programming languages (I'm looking at you, C) is that they
    - are rather unreadable
    - are really hard to work with for the unknowledgable
    - impose a 32768-second wait on the impatient, ADHD-infused programmer as the code file(s) compile for the
    247th time
    - involve a lot of typing, some of it needing to be a specific case (CAPS or lowercase)
    - requires a lot of input to get something basic functional, and has a very high initial code to output
    ratio: at the beginning of a project a high percentage of code is required to get a reasonable amount of
    output, and only after there is a fairly decent amount of code present will the code / output ratio
    decrease so that only a relatively small amount of code is needed to produce the application-specific
    output desired
    - is not natively very image-oriented - to display an image in a window without 5GB of libraries, I need to
    know Xlib, how to decode PNGs and how to manage double-buffering
    So, I want to create a language that
    - is both readable AND easy to type. No, I'm not going to do a survey of what word groups are the easiest
    for the eye to pick up on, or go anywhere near that extreme; rather, my language will have two "modes".
    One is amazingly quick to type, and the other, while relatively minimalistic, actually uses ASCII characters
    to denote function, data and flow, and my compiler/interpreter combo will have a converter that will pass
    through and convert a code file from one "syntax mode" to the other.
    - can be both interpreted or emitted, depending on the situation ("emitted" here means that instead of working on
    something that can generate native code for 784598754 platforms myself, I'll just output C-- code or something)
    - has bindings for X
    - makes it very easy to debug a program
    From a result-, goal- or solution-based person like myself, I don't see language design the way most others would.
    I don't value a language based on its algorithmic efficiency, I value it based on ease of use. I don't see things
    from a procedural perspective, but rather a tokenized object oriented tree of constructs that I must feed to the
    computter to achieve the result I want. This language adheres to that principle.
    So, let's get started with this new language. As I go along, I explain points of interest / trivia about whatever
    I'm referring to.
    ; The ubiquitous "Hello World". To print something, you encase it with single or double quotes and don't assign
    ; any meaning to it by telling the language to set the string to a variable or test it against something. A
    newline is automatically added at the end of a line of such output produced by quoting.
    "Hello world!"
    ; variable assignment by usage. There's no "true" or "false" here. Everything uses plain, un-expounded (in that 0
    won't mean false or 1 true) integers to represent state or status.
    x = 1
    ; if/then - the '? var : abc : def' construct compares 'var', and if 'var' is 1, it executes 'abc', otherwise it
    ; executes 'def'. This'll print "x = 1!". This construct could be used to do anything - I'd want it to operate
    ; as much like the C preprocessor as possible.
    ? x = 1: "x = 1!" : "x = 0!"
    ; the previous line could also be written as:
    ? x: "x = 1!" : "x = 0!"
    ; or even:
    "'x' is equal to $x, which would equal"; ? x: "TRUE" : "FALSE"; "in a lot of other programming languages."
    ; calling a procedure. See the procedure declaration below for more info.
    test x
    ; a loop. Loops start with a '[' and end with a ']'. This language doesn't have any for or while loops - you
    ; construct those on your own.
    [ ;; this demos both nested comment blocks, and the fact that I stole C's add-1 method -> ;; x++
    ; the ! operator breaks out of a loop. I might change this.
    ? x > 5: !
    ; Print the current index, up to 5. Using a $ next to a known variable name in a quoted string will
    ; print that variable's contents.
    "$x"
    ; Now for a for-esque loop - very similar to the previous example. Note that at the beginning of the block, a
    ; semicolon isn't required to denote its seperation of the pre- or proceeding code behind and in front of it.
    z = 0 [ z++; ? z > 10: !
    "$z"
    ; procedure start. No definition of the function or parameters is required - variables are accessible inside
    ; the function as 'a', 'b', 'c', etc. When 'z' is reached the next variable is indexed as 'aa', then the next
    ; as 'ab', etc. Also, functions can be defined after they're called - the parser will have the entire program
    ; in memory before it executes a single line of it, and the compiler will likewise parse the entire program
    ; before outputting any C.
    test:
    ; Yes, it looks like I have the quotes wrong, but I don't. This language allows for Bash-style
    ; variable-string combination ;)
    "ohai from teh procedure! You passed "$a"!"
    ; procedure end. Note that I start with "proc:" and end with ":proc" - this makes it very easy to see
    ; what function I might be seeing the end of if it's long and I can see any function starts.
    :test
    ; Now for everything demoed here as a one-liner.
    "Hello world!"; x = 1; ? x: "x = 1!" : "x = 0!"; "'x' is equal to $x, which would equal"; ? x: "TRUE" : "FALSE"; "in a lot of other programming languages."; test; [ ? x > 5: !; "$x" ] z = 0 [ z++; ? z > 10: !; "$z" ] test: "ohai from teh procedure!" :test
    ; And now for everything in its slightly more readable form...
    "Hello world!"
    x = 1
    if x = 1 then "x = 1!" else "x = 0!"
    if x then "x = 1!" else "x = 0!"
    "'x' is equal to $x, which would equal"; if x then "TRUE" else "FALSE"; "in a lot of other programming languages."
    test
    [ x++
    if x is greater than 5 then break
    ; OR
    ; if x > 5 then break
    "$x"
    z = 0 [ z++; if z > 10 then !
    "$z"
    test:
    "ohai from teh procedure!"
    :test
    ; And now for this version as its oneliner:
    "Hello world!"; x = 1; if x then "x = 1!" else "x = 0!"; "'x' is equal to $x, which would equal"; ? x: "TRUE" : "FALSE"; "in a lot of other programming languages."; test; [ if x is greather than 5 then break; "$x" ] z = 0 [ z++; if z > 10 then break; "$z" ] test: "ohai from teh procedure!" :test
    That's about it.
    What do you think?
    What language has the closest syntax as mine?
    Is this language viable? Could it survive actually being developed?
    Please do let me know your opinions/comments/suggestions/flames.
    -dav7

  • Can't get iscsi working

    Hi,
    First sorry about the long post but any help would be really appreciated. I can't seem to get iscsi working what am i doing wrong?
    May 24 09:53:39 edsrvscdm-01 iscsi: NOTICE: iscsi connection(5) unable to connect to target iqn.1992-08.com.netapp:sn.135042183
    bash-3.00# iscsiadm list target -v
    Target: iqn.1992-08.com.netapp:sn.135042183
    Alias: -
    ISID: 4000002a0000
    Connections: 0
    Discovery Method: Static
    Login Parameters (Negotiated):
    Data Sequence In Order: -
    Data PDU In Order: -
    Default Time To Retain: -
    Default Time To Wait: -
    Error Recovery Level: -
    First Burst Length: -
    Immediate Data: -
    Initial Ready To Transfer (R2T): -
    Max Burst Length: -
    Max Outstanding R2T: -
    Max Receive Data Segment Length: -
    Max Connections: -
    Header Digest: -
    Data Digest: -
    This is the setup I have done:
    # svcadm enable network/iscsi/initiator
    Collect the IQN number of the system.
    # iscsiadm list initiator-node
    Initiator node name: iqn.1986-03.com.sun:01:00144fa05cee.4ddb6b11
    Initiator node alias: edsrvscdm-01
    Login Parameters (Default/Configured):
    Header Digest: NONE/-
    Data Digest: NONE/-
    Authentication Type: NONE
    RADIUS Server: NONE
    RADIUS access: unknown
    Tunable Parameters (Default/Configured):
    Session Login Response Time: 60/-
    Maximum Connection Retry Time: 180/-
    Login Retry Time Interval: 60/-
    Configured Sessions: 1
    Create an lun on netapp filer
    lun setupThis setup will take you through the steps needed to create LUNs
    and to make them accessible by initiators. You can type ^C (Control-C)
    at any time to abort the setup and no unconfirmed changes will be made
    to the system.
    Do you want to create a LUN? [y]: y
    Multiprotocol type of LUN
    (solaris/windows/hpux/aix/linux/netware/vmware/windows_gpt/windows_2008/xen/hyper_v/solaris_efi)
    [linux]: solaris
    A LUN path must be absolute. A LUN can only reside in a volume or
    qtree root. For example, to create a LUN with name "lun0" in the
    qtree root /vol/vol1/q0, specify the path as "/vol/vol1/q0/lun0".
    Enter LUN path: /vol/edsrvss_01_iscsi/lun0
    A LUN can be created with or without space reservations being enabled.
    Space reservation guarantees that data writes to that LUN will never
    fail.
    Do you want the LUN to be space reserved? [y]: n
    Size for a LUN is specified in bytes. You can use single-character
    multiplier suffixes: b(sectors), k(KB), m(MB), g(GB) or t(TB).
    Enter LUN size: 40873m
    You can add a comment string to describe the contents of the LUN.
    Please type a string (without quotes), or hit ENTER if you don't
    want to supply a comment.
    Enter comment string: lun for edsrvscdm-01
    The LUN will be accessible to an initiator group. You can use an
    existing group name, or supply a new name to create a new initiator
    group. Enter '?' to see existing initiator group names.
    Name of initiator group []: group0
    Type of initiator group group0 (FCP/iSCSI) [FCP]: iSCSI
    An iSCSI initiator group is a collection of initiator node names.Each
    node name can begin with either 'eui.' or 'iqn.' and should be in the
    following formats: eui.{EUI-64 address} or iqn.yyyy-mm.{reversed domain
            name}:{optional string composed of alphanumeric characters, '-', '.'
            and ':'}
    Eg: iqn.2001-04.com.acme:storage.tape.sys1.xyz or eui.02004567A425678D
    You can separate node names by commas. Enter '?' to display a list of
    connected initiators. Hit ENTER when you are done adding node names to
    this group.
    Enter comma separated nodenames: iqn.1986-03.com.sun:01:00144fa05cee.4ddb6b11
    Enter comma separated nodenames:
    The initiator group has an associated OS type. The following are
    currently supported: solaris, windows, hpux, aix, linux, netware,
    vmware, xen or hyper_v.
    OS type of initiator group "group0" [solaris]:
    The LUN will be accessible to all the initiators in the
    initiator group. Enter '?' to display LUNs already in use
    by one or more initiators in group "group0".
    LUN ID at which initiator group "group0" sees "/vol/edsrvss_01_iscsi/lun0" [0]:
    LUN Path : /vol/edsrvss_01_iscsi/lun0
    OS Type : solaris
    Size : 39.9g (42858446848)
    Comment : lun for edsrvscdm-01
    Initiator Group : group0
    Initiator Group Type : iSCSI
    Initiator Group Members : iqn.1986-03.com.sun:01:00144fa05cee.4ddb6b11
    Mapped to LUN-ID : 0
    Do you want to accept this configuration? [y]:
    Tue May 24 10:34:01 BST [lun.map:info]: LUN /vol/edsrvss_01_iscsi/lun0 was mapped to initiator group group0=0
    Do you want to create another LUN? [n]:
    lun show
    /vol/edsrvss_01_iscsi/lun0 39.9g (42858446848) (r/w, online, mapped)
    iscsi nodename
    iSCSI target nodename: iqn.1992-08.com.netapp:sn.135042183
    Set up the Solaris host to find the new lun:
    iscsiadm modify discovery --static enable
    iscsiadm add static-config iqn.1992-08.com.netapp:sn.135042183,10.21.17.30
    Check it appears on the system:
    iscsiadm list static-config
    Static Configuration Target: iqn.1992-08.com.netapp:sn.135042183,10.21.17.30:3260
    iscsiadm list target
    Target: iqn.1992-08.com.netapp:sn.135042183
    Alias: -
    ISID: 4000002a0000
    Connections: 0
    Rescan the system to check for the new iscsi disk:
    devfsadm -Cv -i iscsi
    Chris

    opps forgot to enable iscsi on the filer! Enabled and all seems to be workin!

  • Initial Match Code Error

    All,
    We're deploying DQM 12.1.3 for our new CRM 7 installation.  So far everything has installed and been configured without issues.  However, when trying to run the Initial Match Code setup program (/FLDQ/RSADRINI), it fails within a few seconds of running it with the error message:  "Error executing RFC call      GET_MATCH_CODES"  it the continues with:  "Report execution ened with errors.  No updates done to match codes table."
    This issue is hapenning in our QA envrionement, this process successfully completed in DEV.  A major difference between the two systems is that there is almost no customer data in CRM-DEV.  In CRM-QA however, we loaded all the customers from our ECC system.
    Can anyone shed some like on the matter?  This is our first attempt in deploying DQM.
    Thanks in advance,
    Jose

    Hi Jose,
    Are you still having the problem as described?  If so, I would suggest checking that a Batch RFC Server is attached to your SAP application's gateway.  If you use the transaction SMGW > Logged on Clients, you should see at least two (2) entries related to DQM for SAP Solutions:
    FLRFCSRV (transactional rfc server, could be more of these)
    FLRFCBTC (This one is your batch server; only one allowed in 12.1.3 release).
    I believe that the RSADINI uses the batch RFC server.
    If you have no registered batch RFC Servers on the SAP gateway, then my initial guesses:
    1) It isn't started; start it.  When it states that initialization is complete, check in about 10 minutes SMGW for its presence.
    2) It has crashed (more difficult with the 12.1.3 release, but, can happen) > try to restart > fix any errors if present.
    If this error continues and the Batch RFC Server is running correctly, then you may have to start looking further down the stack.  RFC Server logs or Data Services Management Console Realtime_Batch_Name_And_Address_Match (I think that is the name).
    Not playing support here.  Just happen to see this post and thought I would drop off my two cents on the way by.
    David
    Edited by: David Sandy on Jan 29, 2011 12:13 AM

  • Dedicated CSV Network and Single iSCSI 10 GB Link?

    I just need some information on including a CSV dedicated Network or if that is over kill?  Designing a 2012 R2 environment with 4 blades for host.  On the back end we have two modules for redundancies that give us 8 usable NICs.  That are
    then routed through two redundant switches.  All 10 GB to the switch, etc..... 
    Management Network
    VM Network (Client Data)
    CSV Network
    Live Migration Network
    Cluster Heartbeat Network
    iSCSI (SAN)
    Backup Network
    Question for all my Hyper-V peers is this, I understand the reasoning behind the CSV Network.  Allowing data to move between the four host if one of the SAN networks goes down.  However, is it really needed?  If we use it I plan to just use
    the Live Migration Network as the CSV Network. 
    So, what do you think?  Should I keep the CSV Network and just combine it with the Live Migration Network and then make sure that network card is set to the lowest priority? 
    One more question.  Our current design gives us a 10 GB iSCSI connection.  Again on the back plane it is redundant and connected to redundant switches.  The only problem I see I will have is since the Host sees only one network that I will get
    warnings that I don't have redundancy?  So I should need to worry about MPIO and just ignore the warnings?
    Kristopher Turner | Not the brightest bulb but by far not the dimmest bulb.

    This looks good. The published
    best practices guide recommends min. 5 networks, so you're good. 
    About iSCSI and MPIO, you will need MPIO if there's more than 1 path between the initiator (your server using the iSCSI LUN) and the target (the SAN that's unmasking the LUN). So, if you have 1 iSCSI NIC on the Hyper-V host (initiator) and 1 iSCSI NIC on
    the SAN, there's no need for MPIO, since there's 1 path. If you have 2 iSCSI NICs on the host, and 2 iSCSI NICs on the SAN, you have 4 paths between that particular initiator and target. Depending on the SAN vendor you may have to manually spell out the 4
    path in MPIO config (simply pointing out the IPv4 address of each of the 4 NICs. You do not NIC team or port channel iSCSI NICs. Installing MPIO will require a reboot. Default MPIO algorithm is round robin, can be changed, but you rarely need to do so.
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

  • ISCSI Target Settings - disabling automatically enabled IP addresses

    Hey guys,
    I could find a way to disabling the "new network addresses will automatically be enabled" function within the iSCSI Target Settings or via powershell.
    Can anyone provide a good solution? For several reason I can't avoid to get new IPs regulary (dynamic IPv6 Environment)

    Hi,
    I’m a little unclear the issue. Do you want to the iSCSI Initiator always use a static IP address to connect the iSCSI Target even the IP address is automatically obtained? I cannot find there is such function. 
    You could refer to the article below to configure network connections between the initiator and Microsoft iSCSI Software Target.
    Microsoft iSCSI Software Target 3.2: Known Issues and Updates
    http://technet.microsoft.com/en-us/library/dd904411(v=ws.10).aspx
    Best Regards,
    Mandy 
    If you have any feedback on our support, please click
    here .
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • JSF page 'Initial load' problem

    I've found several threads touching on this already, but none seem to have a solution.
    When JSF loads a JSP page for the first time, it goes through the restore view phase which creates an initial view (as there isn't a current one to restore). It then goes directly to the render response phase.
    My problem is, I have a JSP/JSF page that I pass paramaters to via html GET. For example:
    http://localhost:8080/jsf/region.jsp?locationForm:directorate=1&locationForm=locationForm
    Because the first load goes directly to the render response phase, the parsing of these paramaters is never done & the page does not update as expected.
    The second time you perform the same request, JSF goes through the standard request processing lifecycle and works as you would expect, setting directorate to 1 in the backing bean and displaying an updated page.
    Is there any way to change JSF's default behaviour on a JSP initial load to do the whole lifecycle? Is there another way to get around this, short of loading the page twice to ensure it has the right information in it (which would be quite a hack)?
    I need to use html GET (as opposed to html POST) because:
    I'm using a technique of a hidden iframe that loads dynamically created javascript to update a dropdown list (DDL) on the main page without reloading the page in its entirity. This is to minimise network chatter as the system will be run on a 56k network. I have an onchange event on my JSF DDL that calls javascript to reload the hidden iframe.

    Thanks for the replies.
    I tried both of the suggested options
    1. If your bean is managed (declared as managed bean in faces_config), you can set the initial value of the property as, for example, #{param.locationFor }.
    Unfortunately I can't use this option as the backing bean i'm using has to be session scope. This is because the DDL options are set by the iframe page, not the main page. There could be many request/responses between client/server before the user finally presses the submit button. If I change the backing bean to request scope, I end up getting "Validation Error: Value is not valid" for the DDL because the selected ID is not in the backing bean's list of possible values for the DDL.. #{param} can't be used for session level BBs.
    2. If you don't want to use the managed bean properties, you can go get your parameters in your bean's constructor.
    I'm unable to use this option either. The backing bean is shared between the main page and the hidden iframe page. When the main page loads, the backing bean's constructor is called but that isn't the time when parameters need to be parsed. When the iframe page is loaded for the first time (via javascript onchange on a DDL on the main page) using http://localhost/iframe.jsf?iframeForm:ddlId=1&iframeForm=iframeForm is when I need to parse the parameters, by which time the backing bean is already instanciated and the constructor has already been called.
    I'm looking at where else I could get the parameters other than the constructor. I might be able to do it elsewhere.
    My guess as to why the following code works is it's not using a backing bean & isn't updating backing bean values on the first run:
    <f:view>
    <h:outputText value="param= #{param}"/>
    </f:view>To replicate the problem, create a simple backing bean, for example:
    public class sample {
        private Integer selectedId
        public String getSelectedId() {
            return selectedId
        public void setSelectedId(Integer selectedId) {
            this.selectedId = selectedId;
    }Then create the following sample.jsp:
    <!doctype html public "-//w3c//dtd html 4.01 transitional//en">
    <!--
      Copyright 2004 ArcMind, Inc. All Rights Reserved.
    -->
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <html>
    <head>
    <f:view>
      <h:form id="iframeForm">
        <h:panelGroup>
          <h:inputText id="selectedId" value="#{sample.selectedId}" />
        </h:panelGroup>
      </h:form>
    </f:view>
    </head>
    </html>Then try going to sample.jsp?iframeForm:selectedId=10&iframeForm=iframeForm (Similar to the request my main page is doing via javascript to populate the hidden iframe)
    The first time you do this, the text box will be populated with 0 (ie, it skipped the JSF lifecycle and ignored your 10 input). The second time and subsequent times it works as expected, with the text box containing the number 10.

  • Problems when updating amavisd-new to 2.5.0

    Hi the list !
    Thanks for the great tips and support we got here. I’m really newbie on mac os x server while it’s now a long time I’m on clients ones.
    I wanted to follow topicdesk.com tutorials to update spamassassin and clamav as I saw here the initial conf by Apple isn’t working.
    Then, I saw before updating SpamAssassin that I had to update amavisd-new first. So, I begin with this tutorial. Here’s what happened (sorry for the long-long post) :
    First installed Xcode 2.4.1.
    Everything was fine until the CPAN Perl Module updates, as I always had the “make had returned bad status, install seems impossible” error. Looking for some info on the net, I then understand that you have to install everything Apple suggests as if you don’t, you’ll have later problems whith “make” command (I know, I first wanted to install only gcc that seemed necessary to me, and when nothing works as expected, I had to go back and install everything ...) In fact, the missing BSD SDK was supsected to be the missing thing, but not only. Then, just install everything and this is fine.
    Updated the whole asked Perl module without any problem, following the tutorial
    Then Reboot the server when asked ; amavisd-new new version 2.5.0 seems OK. Then, the beginning of problems...
    My smtp log which is set in debug mode shows lots of error entries such as
    May 24 13:11:21 xserve postfix/smtpd[302]: connect from xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    May 24 13:11:22 xserve postfix/smtpd[302]: 0A64A71E1A: client=xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    May 24 13:11:22 xserve postfix/cleanup[349]: 0A64A71E1A: message-id=<890420070524111120@broilingwhelped>
    May 24 13:11:22 xserve postfix/qmgr[74]: 0A64A71E1A: from=<[email protected]>, size=1188, nrcpt=1 (queue active)
    May 24 13:11:22 xserve postfix/smtp[350]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    May 24 13:11:22 xserve postfix/smtp[350]: 0A64A71E1A: to=<[email protected]>, relay=none, delay=1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    May 24 13:11:22 xserve postfix/smtpd[302]: disconnect from xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    Obviously, amavisd-new isn’t running. Then, trying sudo /usr/bin/amavisd and it say there are mistakes in the conf file. BTW, it’s not really obvious trying to migrate settings from the old conf file to the new one :
    I don't understand how this old conf settings
    @local_domains_acl = ( ".$mydomain" ); # $mydomain and its subdomains
    @local_domains_maps = ( 1 );
    # @local_domains_acl = qw(); # default is empty, no recipient treated as local
    # @local_domains_acl = qw( .example.com );
    # @local_domains_acl = qw( .example.com !host.sub.example.net .sub.example.net );
    # @local_domains_acl = ( ".$mydomain", '.example.com', 'sub.example.net' );
    has to bee changed in the new one way :
    @local_domains_maps = ( [".$mydomain"] ); # $mydomain and its subdomains
    # @local_domains_maps = (); # default is empty list, no recip. considered local
    # @local_domains_maps = # using ACL lookup table
    # ( [ ".$mydomain", 'sub.example.net', '.example.com' ] );
    # @local_domains_maps = # similar, split list elements on whitespace
    # ( [qw( .example.com !host.sub.example.net .sub.example.net )] );
    # @local_domains_maps = ( new_RE( qr'[@.]example\.com$'i ) ); # using regexp
    # @local_domains_maps = ( read_hash("$MYHOME/local_domains") ); # using hash
    # perhaps combined with Postfix: mydestination = /var/amavis/local_domains
    # for debugging purposes: dump_hash($local_domains_maps[0]);
    Anyway, I doubt this is the (real?) reason to my problems
    I correct some of these problems (in fact I forgot to look at amavis.log, but here is what it said) :
    May 24 13:53:30 xserve amavis[1072]: INFO: SA version: 3.0.1, 3.000001, no optional modules: Mail::SpamAssassin::SQLBasedAddrList Net::DNS::RR::SOA Net::DNS::RR::NS Net::DNS::RR::MX Net::DNS::RR::A Net::DNS::RR::AAAA Net::DNS::RR::PTR Net::DNS::RR::CNAME Net::DNS::RR::TXT Net::CIDR::Lite Sys::Hostname::Long DBD::mysql IP::Country::Fast Mail::SPF Mail::SPF::Query Mail::SPF::Mech Mail::SPF::Mech::A Mail::SPF::Mech::All Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include Mail::SPF::Mech::MX Mail::SPF::Mech::PTR Mail::SPF::Mod Mail::SPF::Mod::Exp Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech Mail::SPF::v1::Record Mail::SPF::v2::Record
    May 24 13:53:30 xserve amavis[1072]: SpamControl: init_pre_chroot done
    May 24 13:53:30 xserve amavis[1072]: Net::Server: 2007/05/24-13:53:30 Amavis (type Net::Server::PreForkSimple) starting! pid(1072)
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Setting gid to "82 82"
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Setting uid to "82"
    May 24 13:53:30 xserve amavis[1072]: Module Amavis::Conf 2.086
    May 24 13:53:30 xserve amavis[1072]: Module Archive::Zip 1.18
    May 24 13:53:30 xserve amavis[1072]: Module BerkeleyDB 0.26
    May 24 13:53:30 xserve amavis[1072]: Module Compress::Zlib 2.004
    May 24 13:53:30 xserve amavis[1072]: Module Convert::TNEF 0.17
    May 24 13:53:30 xserve amavis[1072]: Module Convert::UUlib 1.08
    May 24 13:53:30 xserve amavis[1072]: Module DB_File 1.810
    May 24 13:53:30 xserve amavis[1072]: Module Digest::MD5 2.36
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Entity 5.420
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Parser 5.420
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Tools 5.420
    May 24 13:53:30 xserve amavis[1072]: Module Mail::Header 1.77
    May 24 13:53:30 xserve amavis[1072]: Module Mail::Internet 1.77
    May 24 13:53:30 xserve amavis[1072]: Module Mail::SpamAssassin 3.000001
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server::PreFork 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server::PreForkSimple 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Time::HiRes 1.9707
    May 24 13:53:30 xserve amavis[1072]: Module URI 1.35
    May 24 13:53:30 xserve amavis[1072]: Module Unix::Syslog 0.99
    May 24 13:53:30 xserve amavis[1072]: Amavis::DB code loaded
    May 24 13:53:30 xserve amavis[1072]: Amavis::Cache code loaded
    May 24 13:53:30 xserve amavis[1072]: SQL base code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SQL::Log code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SQL::Quarantine NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Lookup::SQL code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Lookup::LDAP code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: AM.PDP-in proto code loaded
    May 24 13:53:30 xserve amavis[1072]: SMTP-in proto code loaded
    May 24 13:53:30 xserve amavis[1072]: Courier proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SMTP-out proto code loaded
    May 24 13:53:30 xserve amavis[1072]: Pipe-out proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: BSMTP-out proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Local-out proto code loaded
    May 24 13:53:30 xserve amavis[1072]: OS_Fingerprint code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-VIRUS code loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-SPAM code loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-SPAM-SA code loaded
    May 24 13:53:30 xserve amavis[1072]: Unpackers code loaded
    May 24 13:53:30 xserve amavis[1072]: Found $file at /usr/bin/file
    May 24 13:53:30 xserve amavis[1072]: No $dspam, not using it
    May 24 13:53:30 xserve amavis[1072]: No $altermime, not using it
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .mail
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .asc
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .uue
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .hqx
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .ync
    May 24 13:53:30 xserve amavis[1072]: No decoder for .F tried: unfreeze, freeze -d, melt, fcat
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .Z at /usr/bin/uncompress
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .gz at /usr/bin/gzip -d
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .gz (backup, not used)
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .bz2 at /usr/bin/bzip2 -d
    May 24 13:53:30 xserve amavis[1072]: No decoder for .lzo tried: lzop -d
    May 24 13:53:30 xserve amavis[1072]: No decoder for .rpm tried: rpm2cpio.pl, rpm2cpio
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .cpio at /bin/pax
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .tar at /bin/pax
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .deb at /usr/bin/ar
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .zip
    May 24 13:53:30 xserve amavis[1072]: No decoder for .7z tried: 7zr, 7za, 7z
    May 24 13:53:30 xserve amavis[1072]: No decoder for .rar tried: rar, unrar
    May 24 13:53:30 xserve amavis[1072]: No decoder for .arj tried: arj, unarj
    May 24 13:53:30 xserve amavis[1072]: No decoder for .arc tried: nomarch, arc
    May 24 13:53:30 xserve amavis[1072]: No decoder for .zoo tried: zoo, unzoo
    May 24 13:53:30 xserve amavis[1072]: No decoder for .lha tried: lha
    May 24 13:53:30 xserve amavis[1072]: No decoder for .cab tried: cabextract
    May 24 13:53:30 xserve amavis[1072]: No decoder for .tnef tried: tnef
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .tnef
    May 24 13:53:30 xserve amavis[1072]: No decoder for .exe tried: rar, unrar; lha; arj, unarj
    May 24 13:53:30 xserve amavis[1072]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    May 24 13:53:30 xserve amavis[1072]: (!!)TROUBLE in pre_loop_hook: Please create an empty directory /var/amavis/db to hold a database (config variable $db_home)
    I created the directory, then it says
    May 24 13:58:12 xserve amavis[1133]: (!!)TROUBLE in pre_loop_hook: db_home directory is not writable: /var/amavis/db at /usr/bin/amavisd line 7783.
    I changed CHMOD to 777 (just see later to be more restricitve)
    And then it seems OK
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: starting. /usr/bin/amavisd at localhost amavisd-new-2.2.0 (20041102), Unicode aware
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: user=, EUID: 0 (0); group=, EGID: 0 0 (0 0)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Perl version 5.008006
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: 2007/05/24-14:11:49 Amavis (type Net::Server::PreForkSimple) starting! pid(44)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Setting gid to "82 82"
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Setting uid to "82"
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Amavis::Conf 2.033
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Archive::Tar 1.22
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Archive::Zip 1.18
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Compress::Zlib 2.004
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Convert::TNEF 0.17
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Convert::UUlib 1.08
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module DB_File 1.810
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Entity 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Parser 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Tools 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::Header 1.77
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::Internet 1.77
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::SpamAssassin 3.000001
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::Cmd 2.26
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::SMTP 2.29
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::Server 0.96
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Time::HiRes 1.9707
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Unix::Syslog 0.99
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Amavis::DB code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Amavis::Cache code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Lookup::SQL code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Lookup::LDAP code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: AMCL-in protocol code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: SMTP-in protocol code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: ANTI-VIRUS code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: ANTI-SPAM code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Unpackers code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $file at /usr/bin/file
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $arc, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $gzip at /usr/bin/gzip
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $bzip2 at /usr/bin/bzip2
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $lzop, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $lha, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unarj, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $uncompress at /usr/bin/uncompress
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unfreeze, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unrar, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $zoo, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $cpio at /usr/bin/cpio
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $ar, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $rpm2cpio, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $cabextract, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $dspam, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: KasperskyLab AntiViral Toolkit Pro (AVP)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: KasperskyLab AVPDaemonClient
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: H+BEDV AntiVir or CentralCommand Vexira Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Command AntiVirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Symantec CarrierScan via Symantec CommandLineScanner
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: DrWeb Antivirus for Linux/FreeBSD/Solaris
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: F-Secure Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: CAI InoculateIT
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: MkS_Vir for Linux (beta)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: MkS_Vir daemon
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: ESET Software NOD32
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: ESET Software NOD32 - Client/Server Version
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Norman Virus Control v5 / Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Panda Antivirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: NAI McAfee AntiVirus (uvscan)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: VirusBuster (Client + Daemon)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: CyberSoft VFind
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Ikarus AntiVirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: BitDefender
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No secondary av scanner: FRISK F-Prot Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No secondary av scanner: Trend Micro FileScanner
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: SpamControl: initializing Mail::SpamAssassin
    May 24 14:11:52 localhost /usr/bin/amavisd[44]: SpamControl: done
    But in fact there's still a problem :
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) ESMTP::10024 /var/amavis/amavis-20070524T141222-00219: <p.estxxxx@xxxxxxx> -> <pacvolley@ xxxxxxx > Received: SIZE=5929 from xserve.xxxxx ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00219-01 for <pacvolley@ xxxxxxx>; Thu, 24 May 2007 14:12:22 +0200 (CEST)
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) body hash: 05f429e5a692012d98323c55a540b730
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) Checking: [82.241.222.174] <p.estxxx@xxxxx> -> <pacvolley@xxxxx>
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p003 1 Content-Type: multipart/alternative
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p001 1/1 Content-Type: text/plain, size: 394 B, name:
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p002 1/2 Content-Type: text/html, size: 3962 B, name:
    May 24 14:12:22 localhost /usr/bin/amavisd[302]: (00219-01) run_command: child process [302]: Can't close main::stdin: Bad file descriptor at /usr/bin/amavisd line 1589.\n
    May 24 14:12:22 localhost /usr/bin/amavisd[302]: (00219-01) SMTP shutdown: tempdir is being removed: /var/amavis/amavis-20070524T141222-00219
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TROUBLE in check_mail: mime_decode-1 FAILED: parsing file(1) results - missing last 2 results at (eval 40) line 150.
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) PRESERVING EVIDENCE in /var/amavis/amavis-20070524T141222-00219
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TIMING [total 284 ms] - SMTP EHLO: 21 (7%), SMTP pre-MAIL: 3 (1%), mkdir tempdir: 1 (0%), create email.txt: 2 (1%), SMTP pre-DATA-flush: 8 (3%), SMTP DATA: 5 (2%), body_hash: 2 (1%), mkdir parts: 3 (1%), mime_decode: 57 (20%), rundown: 181 (64%)
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TROUBLE in process_request: Error writing a SMTP response to the socket: Broken pipe at (eval 36) line 760, <GEN3> line 208.
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) Requesting process rundown after fatal error
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) load: 100 %, total idle 0.001 s, busy 0.287 s
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) SMTP shutdown: Error writing a SMTP response to the socket: Bad file descriptor at (eval 36) line 760.\n
    And in the mail log I get corresponding errors such as :
    May 24 14:30:20 xserve postfix/smtpd[626]: connect from xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/smtpd[626]: 5580872531: client= xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/cleanup[452]: 5580872531: message-id=<00e301c79dff$49859120$0100a8c0@pcservice>
    May 24 14:30:20 xserve postfix/smtpd[626]: disconnect from xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/qmgr[64]: 5580872531: from=<[email protected]>, size=95594, nrcpt=1 (queue active)
    May 24 14:30:20 xserve postfix/smtp[464]: 5580872531: to=<sjoly@ xxxxxx.com>, relay=127.0.0.1[127.0.0.1], delay=0, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to end of DATA command))
    I first thought mails were lost, and obviously as it won’t be so easy to fix alone without any help (and time is running loosing mails), I decided to come back to the old amavisd-new version, restoring /usr/bin/amavis and amavis.conf, and rebooting computer.
    Then, another problem with Perl modules that were updated so that old amavis seemed also not working. I decided to replace /Library/Perl and System/Library/Perl with new ones from a clean fresh install on my local server. Rebooted, and seems to be OK as before. Then looked for Postfix and understood than flushing will force deferred mails to be processed.
    Anyway, all is to be done again. If anybody here as an idea of what's going wrong, I'll be glad to learn ...
      Mac OS X (10.4.9)  

    well, there you have it – a classical if then loop.
    seems i'm still stuck somewhere in the middle of the amavisd.conf nightmare. had amavisd-new 2.4.5 / spamassassin 3.1.8 up and running after a real nightmare (which had to do with daemonize=1).
    after i tried to get up-to-date with amavisd-new 2.5.1 and spamassassin 3.2.1 i saw the same problems (see below) again, while launchd tried to get amavisd started.
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: exited with exit code: 2
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: respawning too quickly! throttling
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: 9 more failures without living at least 60 seconds will cause job removal
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: will restart in 10 seconds
    remembering the previous troubles, i double checked all things, which could be set wrong (daemonize, etc.) and all was well. tried a second install and all to no success.
    later i had the idea, it might be the new amavisd.conf, which troubles (why ever) the startup. so i used the v2.4.5 one and lo and behold, it worked. but why? what is so strange/new/different in 2.5.1, that the startup of amavisd gets broken?
    now i read, that they changed a bunch of stuff and i certainly would be using the newer versions conf file, but it seems i don't get it right configured. i'm on the latest updated 10.4.9 server with all fixes installed. every service is working, mail gets in/out and gets even tagged.
    well, i didn't do the setup with the 2 users junkmail/nojunkmail yet. is it really necessary to set them up as local users? can't they be handled as every other user which has mail enabled via wgm?
    anyone can help me here? thx.
    Various   Mac OS X (10.4.9)   Mac OS X Server (10.4.9)

  • A problem with annotation @EJB

    Hi,
    My application uses servlet+JSP+EJB+JBOSS. I want to use a pure java object that is a singleton and within this singleton call an EJB.
    I have a servlet that call a singleton:
    My servlet
    public class FindAdministratorForumServlet extends HttpServlet {
         private static final long serialVersionUID = 1L;
         // ======================================
         // = Entry point method =
         // ======================================
         @Override
         protected void service(final HttpServletRequest request,
                   final HttpServletResponse response) throws ServletException,
                   IOException {
              final int rows=3;
              int page = Integer.parseInt(request.getParameter("page"));
              List<Topic> discussionList = ListHandlerService.getForumTopics(page); My singleton :
    package service;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.ListIterator;
    import javax.ejb.EJB;
    import sessionbean.TopicService;
    import entitybean.Topic;
    public class ListHandlerService {
         private final static int rows=3;
        /** L'instance statique */
        private static ListHandlerService instance;
        /** objet pour la synchronisation.
         * j'ajoute deux "soulignés" (__) au nom de l'attribut car il n'a
         * qu'un intérêt purement technique.
        private static Object objetSynchrone__;
        private static List<Topic> listTopic;
         @EJB
         private static TopicService discussionService;
        /** Récupère l'instance unique de la class Singleton.
        * Remarque : le constructeur est rendu inaccessible
        public static ListHandlerService getInstance() {
            if (null == instance) { // Premier appel
                synchronized(objetSynchrone__) {
                    if (null == instance) {
                        instance = new ListHandlerService();
            return instance;
        /** Constructeur redéfini comme étant privé pour interdire
        * son appel et forcer à passer par la méthode
        private ListHandlerService() {
        public static List<Topic> getForumTopics(int page) {
             int i = 0;
              Topic topic;
              LinkedList<Topic> result = new LinkedList<Topic>();
             if (page==1) {
                  listTopic = discussionService.getForumTopics();
                  ListIterator<Topic> listIterator = listTopic.listIterator();
                  while (listIterator.hasNext() && (i< rows)) {
                       topic = listIterator.next();
                       result.add(topic);
                       i++;
             } else {
                  ListIterator<Topic> listIterator = listTopic.listIterator();
                  while (listIterator.hasNext() && (i< rows*(page-1))) {
                       listIterator.hasNext();
                       i++;
                  while (listIterator.hasNext() && (i< rows*page)) {
                       topic = listIterator.next();
                       result.add(topic);
                       i++;
             return result;
        public static int getSize() {
             return listTopic.size();
    } In my singleton that is a pure JAVA object, the injection of my EJB with annotation @EJB doesn't seem to work. Indeed when executing, "discussionService" that should be injected and initialized, is null. Isn't it possible to inject an EJB in a pure java object which is a singleton ?
    Thank you for your answers.

    Is it deployed in the same application?
    In they are not in the same application you need to use some other techniques. See the following thread for info:
    http://forums.sun.com/thread.jspa?threadID=5332558

  • Migrating from Centura/Gupta to Oracle forms

    Hi
    I work at an organistion that is the result of a merger, we have two main bespoke systems, one in Oracle Forms which has recently been upgraded to the web based version (6.5) and a second written in Gupta / Centura SQL Windows client server. Both use Oracle databases thought the Centura application is still on 8i.
    We want to move to Forms over time but will have to run both for a while and would like to try and run them as more of a single system in the interim. e.g a single security system so users can move from one to the other without having to use 2 userids & passwords. My initial investigations suggest this isn't going to be easy.
    I wondered if anyone had any experience/ tips, or could point me at any useful resources.
    Thanks

    We want migrate from gupta 9.0 (sql base) to oracle db 11.1. We need some help or information. Could you give us any procedure of migration ?
    Thanks you. We hope for your help.

  • Best Practices - VMware ESX 4.0 in a Cisco Environment?

    Hello,
    I'm presently designing a VMware ESX 4.0 deployment and integrating it with our Cisco environment.  I've found the following document:
    http://www.cisco.com/en/US/docs/solutions/Enterprise/Data_Center/vmware/VMware.html "VMware Infrastructure 3 in a Cisco Network Environment" and I was just wondering if there was a newer document applicable to ESX 4.x or if these best practices still applied?
    I'm particularly interested in proper vlan design for the various port-groups with in ESX and etherchannel configuration between ESX hosts and Cisco switches.
    Thanks,
    Rob

    Well, in that this is a Storage group, I'll answer froma storage noetworking point of view.
    ESX hosts are no different to any other host,  Just stick with the standard best practice of single initiator zoning and you'll be fine.
    As a slight aside, from an array point of view, I've tended to configure all the pWWN's of the whole cluster into one "host" definition, as this makes LUN mapping easier.
    Steven

  • HOW TO MAKE IMAGE TRANSPERANT

    Hello All,
    I have two images one as background and another one is to
    place on background image.
    Upper one I need transperant. How to write code to
    make image transperant?
    CAN ANY ONE HELP?
    Sharmila.

    If you want to do on the fly image transparencies then you want to look in the java.awt.image package. There is are some pretty powerful image filters in here and after the initial learning curve, it isn't terribly complex to create your own image filters. For a school group project we created a logic puzzle game based on a shareware program alreay out there. The shareware program had a tileset format that we wanted to use in our application, but the transparencies weren't set up correctly. We ended up adding the transparencies on the fly. I wish I had the piece of code handy but I can remember enough to point you on the right path.
    If you subclass java.awt.image.ImageFilter and override the two setPixels() methods, you can provide any manipulation you need to. Basically the image producer will pass in the pixels in one huge byte (or int) array top left to bottom right order. What we did, was get the color out of the first pixel and make that our transparency color. The byte method has two bits per color while the int method has 8 bits per pixel. The color is divided into r(ed), g(reen), b(lue), a(lpha) (I can't remember if alpha was first or last, a little expirimentation will tell you). The alpha is opaque at one extreme and fully transparent at the other extreme. Loop through the array and if the color is the same as your first pixel then set the alpha to 0 (or was it 15/255?).
    Good luck!

  • Raw Files show Broken Box Symbol in PSE 6

    I was on here over a year ago and employed a work around for the broken box symbol that I get on some of my Raw files in PSE6.  Lately the work around is not working.  The question that I have is did Adobe fix the problem in PSE7 or PSE8 rather than some of the users helping each other out with the work arounds?  I would purchase 7 or 8 just to be rid of this annoying bug.......Rob

    Before you spend the money on the upgrade to 7 or 8, you might try the following:
    1. Delete the thumbnail cache file "thumb.5.cache" as described here:
    http://www.johnrellis.com/psedbtool/photoshopelements-6-7-faq.htm#_Recreate_Organizer_thum bnails
    2. Try solution 2 of the tech note:
    http://kb2.adobe.com/cps/403/kb403728.html
    If this works, then go back and try solution 3 one more time.
    If you do decide to upgrade, I suggest waiting a couple of weeks if you can before deciding on 7 versus 8 -- the initial feedback on 8 isn't looking very good.

  • Driver interval timing

    I posted this in the Solaris 10 forum in error yesterday. No joy there, but you guys MUST know the answer.
    Simple question really. Lots of tools (like iostat) report device service times (or response times) in milliseconds even when the clock interrupts are in 10 millisecond intervals. I gather that device drivers are supposed to record timestamps at various points, and I have even gone as far as determining that they do so in a structure known as a kstat (I think).
    But how does a disk driver which services an interrupt on a different CPU to the one on which the I/O was initiated measure intervals? Isn't "gethrestime" based on the caller's CPU registers?
    Google has utterly failed me, as has every Solaris internals reference that I can find. I am getting frustrated. Can anybody put me out of my misery?

    I'd think you should be posting in the forum for the Solaris 10 os, not a Java forum. Maybe someone in the Java Native Methods forum would have the necessary Solaris 10 expertise, also.
    If you do post elsewhere, either close this out with a final post or put a reference(s) to any other posts and say where you want replies posted, so replies aren't needlessly duplicated.

  • Please, help the beginner with navigation

    Hello to everyone!
    I have found similar questions from other users, but they were not answered. May be, the question is very stupid? However, there's nobody else who I can ask.
    So, user Wojo had almost the same trouble:
    "I have a hyperlink that has an action attached, say hyperlink_action. I have set target="_blank" for this hyperlink because I want the page to be pulled up in a different window. When I click on the hyperlink, the event handler (hyperlink_action) is called and the navigation.xml tells the right page to display in a new window! Everything is good so far. However, when I go back to the parent window and click on any other button or link (ANY ONE), then the hyperlink_action handler is called first followed by the event handler for the button or link I clicked on. This only happens the first time I click on the parent page again. ..."
    Please, explain why "hyperlink_action()" is executed twice?
    Thanks.

    So, the problem's been solved. It's required to modify the current theme.
    (in "formElements.js" file)
    We remove the form attribute "target" from initial form, if it isn't null, and hidden fields, created before.
    function hyperlink_submit(hyperlink, formId, params) {
    //params are name value pairs but all one big string array
    //so params[0] and params[1] form the name and value of the first param
    var theForm = document.getElementById(formId);
    if (params != null) {
    for (var i=0; i<params.length; i++) {
    common_insertHiddenField(params, params[i+1], theForm);
    i++;
    common_insertHiddenField(hyperlink.id + "_submittedField", hyperlink.id, theForm);
    var formTargetOrig = theForm.target;
    if (hyperlink.target != null) {
    theForm.target = hyperlink.target;
    theForm.submit();
    theForm.target = formTargetOrig;
    if (hyperlink.target != null && hyperlink.target == "_blank") {
    if (params != null) {
    for(var i=0; i<params.length; i+=2) {
    var childElem = document.getElementById(params[i]);
    theForm.removeChild(childElem);
    var childElem = document.getElementById(hyperlink.id + "_submittedField");
    theForm.removeChild(childElem);
    return false;

Maybe you are looking for

  • How to transfer video songs from pc to iphone 4s

    I cant transfer video songs through Itunes from my computer to my Iphone 4S. please give tips and better ways. i am new user thanks

  • Configuration frame pop out of the main frame - how to do (architecture) ?

    Hi, I have a main frame that upon it I have a config button I did. This button pop open another frame in which the user config some variables which I need to use in the main frame actions. What is the right way to do it? - 1. in the main frame constr

  • Can't play multiple videos

    Hi All I am hoping someone can help, doesn't matter what I do I cannot get the IPOD to play more than one video at once. Is there a way of getting it to automatically move to the next video after it finishes the one it was playing?

  • Help for automating last six months aggregation

    Hi, I want to create a report which has to show last six month's total asset by monthwise (september, august, july, june, may, april). when i calculate last months total asset, then i should see total asset between september'08 and (september - 12) m

  • Prep HDV material in Windows (!) ?

    Hi and sorry if this has been a topic before (can't find it, though). A client has tons of HDV tapes that he wants to transfer to a hard drive himself and also likes to sort through the video in order to prepare for the editing. He wants to bring the