Pattern Exception

HI All
I am developing a semi seach engine. I want to split the string using (+) operator. I write the following code:
          } else if( source.contains("+")) {
            words = source.split("+");
            for ( String str : words ) {
                out.println( str );
When running the program, I got the following exception:
Exception in thread "AWT-EventQueue-0" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
+
Any help will be appreciated
Thank you

split() uses a "regular expression" as its argument and "+" is a symbol in
these. You would have to split withsource.split("\\+");

Similar Messages

  • Xs:pattern - Exception: Unable to parse schema

    JDeveloper BPEL displays the following error when I try to use a variable type from a specific schema.
    Exception: Unable to parse schema
    It doesn't display the above error if I remove all the schema references to
    {http://www.w3.org/2001/XMLSchema}pattern
    Can I infer that xs:pattern is not supported, or is this a bug?
    Thanks,
    Peter T

    JDeveloper BPEL displays the following error when I try to use a variable type from a specific schema.
    Exception: Unable to parse schema
    It doesn't display the above error if I remove all the schema references to
    {http://www.w3.org/2001/XMLSchema}pattern
    Can I infer that xs:pattern is not supported, or is this a bug?
    Thanks,
    Peter T

  • Pattern Exception where I did not expect it

    I am getting an exception on the following code:
    protected void dosomething(File path) {
      String [] parts = path.getPath().split(File.separator);
    }It turns out that on DOS (um, Windows) that File.separator is "\\" which is not a valid pattern for the split() method, so an exception gets thrown from the split() method. I think this does what is expect on a *nix system.   Is there an OS-safe way of doing this?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    AlanObject wrote:
    I am getting an exception on the following code:
    protected void dosomething(File path) {
    String [] parts = path.getPath().split(File.separator);
    }It turns out that on DOS (um, Windows) that File.separator is "\\" which is not a valid pattern for the split() method, so an exception gets thrown from the split() method. I think this does what is expect on a *nix system.   Is there an OS-safe way of doing this?
    split("\\Q"+File.separator+"\\E")

  • Invalid URL Pattern exception when deploying ear file

    Hi,
    I encountered some problem during deploying an ear file into SJSAS PE. This ear file has successfully been deployed into WebLogic Server and works fine.
    The error message is as follows:
    Deploying application in domain failed; Error loading deployment descriptors for module [wsgServerRel1_0] -- Invalid URL Pattern: [pfk/PfkMainServlet] Error loading deployment descriptors for module [wsgServerRel1_0] -- Invalid URL Pattern: [pfk/PfkMainServlet] The following is the relevant part regarding URL pattern:
         <servlet>
              <servlet-name>PfkMainServlet</servlet-name>
              <servlet-class>com.sns.pfk.servlet.PfkMainServlet</servlet-class>
              <load-on-startup>0</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>PfkMainServlet</servlet-name>
              <url-pattern>pfk/PfkMainServlet</url-pattern>
         </servlet-mapping>What else I need to do to make it work?
    Regards,
    Xinjun

    You have an error in your url-pattern. A url-pattern must either begin with a slash ("/") for the exact match or directory match or it could begin an asteric("*") for the extension match(refer to the servlet spec).
    In your case it should be something like:
    <servlet-mapping>
              <servlet-name>PfkMainServlet</servlet-name>
              <url-pattern>/pfk/PfkMainServlet</url-pattern>
    </servlet-mapping>
    or
    <servlet-mapping>
              <servlet-name>PfkMainServlet</servlet-name>
              <url-pattern>/pfk/*</url-pattern>
    </servlet-mapping>

  • New(?) pattern looking for a good home

    Hi everyone, this is my second post to sun forums about this, I initially asked people for help with the decorator and strategy pattern on the general Java Programming forum not being aware that there was a specific section for design pattern related questions. Since then I refined my solution somewhat and was wondering if anyone here would take a look. Sorry about the length of my post, I know it's best to keep it brief but in this case it just seemed that a fully functional example was more important than keeping it short.
    So what I'd like to ask is whether any of you have seen this pattern before and if so, then what is it called. I'm also looking for some fresh eyes on this, this example I wrote seems to work but there are a lot of subtleties to the problem so any help figuring out if I went wrong anywhere is greatly appreciated. Please do tell me if you think this is an insane approach to the problem -- in short, might this pattern have a chance at finding a good home or should it be put down?
    The intent of the pattern I am giving below is to modify behavior of an object at runtime through composition. In effect, it is like strategy pattern, except that the effect is achieved by wrapping, and wrapping can be done multiple times so the effect is cumulative. Wrapper class is a subclass of the class whose instance is being wrapped, and the change of behavior is accomplished by overriding methods in the wrapper class. After wrapping, the object "mutates" and starts to behave as if it was an instance of the wrapper class.
    Here's the example:
    public class Test {
         public static void main(String[] args) {
              double[] data = { 1, 1, 1, 1 };
              ModifiableChannel ch1 = new ModifiableChannel();
              ch1.fill(data);
              // ch2 shifts ch1 down by 1
              ModifiableChannel ch2 = new DownShiftedChannel(ch1, 1);
              // ch3A shifts ch2 down by 1
              ModifiableChannel ch3A = new DownShiftedChannel(ch2, 1);
              // ch3B shifts ch2 up by 1, tests independence from ch3A
              ModifiableChannel ch3B = new UpShiftedChannel(ch2, 1);
              // ch4 shifts ch3A up by 1, data now looks same as ch2
              ModifiableChannel ch4 = new UpShiftedChannel(ch3A, 1);
              // print channels:
              System.out.println("ch1:");
              printChannel(ch1);
              System.out.println("ch2:");
              printChannel(ch2);
              System.out.println("ch3A:");
              printChannel(ch3A);
              System.out.println("ch3B:");
              printChannel(ch3B);
              System.out.println("ch4:");
              printChannel(ch4);
         public static void printChannel(Channel channel) {
              for(int i = 0; i < channel.size(); i++) {
                   System.out.println(channel.get(i) + "");
              // Note how channel's getAverage() method "sees"
              // the changes that each wrapper imposes on top
              // of the original object.
              System.out.println("avg=" + channel.getAverage());
    * A Channel is a simple container for data that can
    * find its average. Think audio channel or any other
    * kind of sampled data.
    public interface Channel {
         public void fill(double[] data);
         public double get(int i);
         public double getAverage();
         public int size();
    public class DefaultChannel implements Channel {
         private double[] data;
         public void fill(double[] data) {
              this.data = new double[data.length];
              for(int i = 0; i < data.length; i++)
                   this.data[i] = data;
         public double get(int i) {
              if(i < 0 || i >= data.length)
                   throw new IndexOutOfBoundsException("Incorrect index.");
              return data[i];
         public double getAverage() {
              if(data.length == 0) return 0;
              double average = this.get(0);
              for(int i = 1; i < data.length; i++) {
                   average = average * i / (i + 1) + this.get(i) / (i + 1);
              return average;
         public int size() {
              return data.length;
    public class ModifiableChannel extends DefaultChannel {
         protected ChannelModifier modifier;
         public void fill(double[] data) {
              if (modifier != null) {
                   modifier.fill(data);
              } else {
                   super.fill(data);
         public void _fill(double[] data) {
              super.fill(data);
         public double get(int i) {
              if(modifier != null)
                   return modifier.get(i);
              else
                   return super.get(i);
         public double _get(int i) {
              return super.get(i);
         public double getAverage() {
              if (modifier != null) {
                   return modifier.getAverage();
              } else {
                   return super.getAverage();
         public double _getAverage() {
              return super.getAverage();
    public class ChannelModifier extends ModifiableChannel {
         protected ModifiableChannel delegate;
         protected ModifiableChannel root;
         protected ChannelModifier tmpModifier;
         protected boolean doSwap = true;
         private void pre() {
              if(doSwap) { // we only want to swap out modifiers once when the
                   // top call in the chain is made, after that we want to
                   // proceed without it and finally restore doSwap to original
                   // state once ChannelModifier is reached.
                   tmpModifier = root.modifier;
                   root.modifier = this;
                   if(delegate instanceof ChannelModifier)
                        ((ChannelModifier)delegate).doSwap = false;
         private void post() {
              if (doSwap) {
                   root.modifier = tmpModifier;
              } else {
                   if(delegate instanceof ChannelModifier)
                             ((ChannelModifier)delegate).doSwap = true;
         public ChannelModifier(ModifiableChannel delegate) {
              if(delegate instanceof ChannelModifier)
                   this.root = ((ChannelModifier)delegate).root;
              else
                   this.root = delegate;
              this.delegate = delegate;
         public void fill(double[] data) {
              pre();
              if(delegate instanceof ChannelModifier)
                   delegate.fill(data);
              else
                   delegate._fill(data);
              post();
         public double get(int i) {
              pre();
              double result;
              if(delegate instanceof ChannelModifier)
                   result = delegate.get(i);
              else
                   result = delegate._get(i);
              post();
              return result;
         public double getAverage() {
              pre();
              double result;
              if(delegate instanceof ChannelModifier)
                   result = delegate.getAverage();
              else
                   result = delegate._getAverage();
              post();
              return result;
         public int size() {
              //for simplicity no support for modifying size()
              return delegate.size();
    public class DownShiftedChannel extends ChannelModifier {
         private double shift;
         public DownShiftedChannel(ModifiableChannel channel, final double shift) {
              super(channel);
              this.shift = shift;
         @Override
         public double get(int i) {
              return super.get(i) - shift;
    public class UpShiftedChannel extends ChannelModifier {
         private double shift;
         public UpShiftedChannel(ModifiableChannel channel, final double shift) {
              super(channel);
              this.shift = shift;
         @Override
         public double get(int i) {
              return super.get(i) + shift;
    Output:ch1:
    1.0
    1.0
    1.0
    1.0
    avg=1.0
    ch2:
    0.0
    0.0
    0.0
    0.0
    avg=0.0
    ch3A:
    -1.0
    -1.0
    -1.0
    -1.0
    avg=-1.0
    ch3B:
    1.0
    1.0
    1.0
    1.0
    avg=1.0
    ch4:
    0.0
    0.0
    0.0
    0.0
    avg=0.0

    jduprez wrote:
    Hello,
    unless you sell your design better, I deem it is an inferior derivation of the Adapter pattern.
    In the Adapter pattern, the adaptee doesn't have to be designed to support adaptation, and the instance doesn't even know at runtime whether it is adapted.
    Your design makes the "modifiable" class aware of the modification, and it needs to be explicitly designed to be modifiable (in particular this constrains the implementation hierarchy). Overall DesignPattern are meant to provide flexibility, your version offers less flexibility than Adapter, as it poses more constraint on the modifiable class.
    Another sign of this inflexibility is your instanceof checks.
    On an unrelated note, I intensely dislike your naming choice of fill() vs _fill()+, I prefer more explicit names (I cannot provide you one as I didn't understand the purpose of this dual method, which a good name would have avoided, by the way).
    That being said, I haven't followed your original problem, so I am not aware of the constraints that led you to this design.
    Best regards,
    J.
    Edited by: jduprez on Mar 22, 2010 10:56 PMThank you for your input, I will try to explain my design better. First of all, as I understand it the Adapter pattern is meant to translate one interface into another. This is not at all what I am trying to do here, I am trying to keep the same interface but modify behavior of objects through composition. I started thinking about how to do this when I was trying to apply the Decorator pattern to filter some data. The way I would do that in my example here is to write an AbstractChannelDecorator that delegates all methods to the Channel it wraps:
    public abstract class AbstractChannelDecorator implements Channel {
            protected Channel delegate;
    ...// code ommitted
         public double getAverage() {
              return delegate.getAverage();
    ...// code ommitted
    }and then to filter the data I would extend it with concrete classes and override the appropriate methods like so:
    public class DownShiftedChannel extends AbstractChannelDecorator {
         ...// code ommitted
         public double get(int i) {
              return super.get(i) - shift;
           ...// code ommitted
    }(I am just shifting the data here to simplify the examples but a more realistic example would be something like a moving average filter to smooth the data).
    Unfortunately this doesn't get me what I want, because getAverage() method doesn't use the filtered data unless I override it in the concrete decorator, but that means I will have to re-implement the whole algorithm. So that's pretty much my motivation for this, how do I use what on the surface looks like a Decorator pattern, but in reality works more like inheritance?
    Now as to the other points of critique you mentioned:
    I understand your dislike for such method names, I'm sorry about that, I had to come up with some way for the ChannelModifier to call ModifiableChannel's super's method equivalents. I needed some way to have the innermost wrapped object to initiate a call to the topmost ChannelModifier, but only do it once -- that was one way to do it. I suppose I could have done it with a flag and another if/else statement in each of the methods, or if you prefer, the naming convention could have been fill() and super_fill(), get() and super_get(), I didn't really think that it was that important. Anyway, those methods are not meant to be used by any other class except ChannelModifier so I probably should have made them protected.
    The instanceof checks are necessary because at some point ChannelModifier instance runs into a delegate that isn't a ChannelModifier and I have to somehow detect that, because otherwise instead of calling get() I'd call get() which in ModifiableChannel would take me back up to the topmost wrapper and start the whole call chain again, so we'd be in infinite recursion. But calling get() allows me to prevent that and go straight to the original method of the innermost wrapped object.
    I completely agree with you that the example I presented has limited flexibility in supporting multiple implementations. If I had two different Channel implementations I would need two ModifiableChannel classes, two ChannelModifiers, and two sets of concrete implementations -- obviously that's not good. Not to worry though, I found a way around that. Here's what I came up with, it's a modification of my original example with DefaultChannel replaced by ChannelImplementation1,2:
    public class ChannelImplementation1 implements Channel { ... }
    public class ChannelImplementation2 implements Channel { ... }
    // this interface allows implementations to be interchangeable in ChannelModifier
    public interface ModifiableChannel {
         public double super_get(int i);
         public double super_getAverage();
         public void setModifier(ChannelModifier modifier);
         public ChannelModifier getModifier();
    public class ModifiableChannelImplementation1
              extends ChannelImplementation1
              implements ModifiableChannel {
         ... // see DefaultChannel in my original example
    public class ModifiableChannelImplementation2
              extends ChannelImplementation1
              implements ModifiableChannel { ...}
    // ChannelModifier is a Channel, but more importantly, it takes a Channel,
    // not any specific implementation of it, so in effect the user has complete
    // flexibility as to what implementation to use.
    public class ChannelModifier implements Channel {
         protected Channel delegate;
         protected Channel root;
         protected ChannelModifier tmpModifier;
         protected boolean doSwap = true;
         public ChannelModifier(Channel delegate) {
              if(delegate instanceof ChannelModifier)
                   this.root = ((ChannelModifier)delegate).root;
              else
                   this.root = delegate;
              this.delegate = delegate;
         private void pre() {
              if(doSwap) {
                   if(root instanceof ModifiableChannel) {
                        ModifiableChannel root = (ModifiableChannel)this.root;
                        tmpModifier = root.getModifier();
                        root.setModifier(this);
                   if(delegate instanceof ChannelModifier)
                        ((ChannelModifier)delegate).doSwap = false;
         private void post() {
              if (doSwap) {
                   if(root instanceof ModifiableChannel) {
                        ModifiableChannel root = (ModifiableChannel)this.root;
                        root.setModifier(tmpModifier);
              } else {
                   if(delegate instanceof ChannelModifier)
                             ((ChannelModifier)delegate).doSwap = true;
         public void fill(double[] data) {
              delegate.fill(data);
         public double get(int i) {
              pre();
              double result;
              if(delegate instanceof ModifiableChannel)
    // I've changed the naming convention from _get() to super_get(), I think that may help show the intent of the call
                   result = ((ModifiableChannel)delegate).super_get(i);
              else
                   result = delegate.get(i);               
              post();
              return result;
         public double getAverage() {
              pre();
              double result;
              if(delegate instanceof ModifiableChannel)
                   result = ((ModifiableChannel)delegate).super_getAverage();
              else
                   result = delegate.getAverage();
              post();
              return result;
         public int size() {
              return delegate.size();
    public class UpShiftedChannel extends ChannelModifier { ...}
    public class DownShiftedChannel extends ChannelModifier { ... }

  • Can someone help me clarify a bridge pattern?

    So I have this qualm about bridge patterns. A professor I have is telling me I should never be doing switch statements in my driver if I'm using bridge patterns (except for at object creation), but I think he's wrong and I want to clarify when I think you're going to have to use one of two faux pas.
    Let's take a look at the good old Shape example. So we have a Square and a Circle and we want them to be able to draw themselves. The square uses two points (top left, and bottom right let's say) to draw itself and the Circle uses a center point and a radius to draw itself. It's obvious we need a switch statement at creation to determine which one we're making. My question then comes in, what about when we edit it? Let's say we want to change the points in the rectangle or the point/radius on the circle. We'd either need to do one of two things:
    a) if we put our editShape function in our driver class, we'd have to do a switch to see what type of shape we're editing before we can find out if we need to get input for two points or if we need to get input for a point and a radius length, and then pass that to our edit functions within the objects themselves.
    b) the other option requires we have both objects contain an editShape function (which would probably be an abstract method within Shape that we'd override) and each object would implement them different. Within this function, the object itself is displaying prompts and getting input.
    A is clearly not the right choice, because it results in high coupling and we're having to switch on our objects and we'd have to change the code every time we add new shape classes. B makes sense because we can just call Shape.editShape() from the driver and depending on which type it is it will ask for the proper input from within the object. However, I thought it was bad practice to have input (specifically prompts and scan reads) from within an object.
    Is this where the bridge class comes into play? For example, would I have a ShapeIO class (which could then have an extended ShapeIOConsole class possibly vs a ShapeIOFile class that would read input from a file?) that would contain the prompting from there? And then that class would handle all possible inputs I'd be prompting for?
    E.G. ShapeIOConsole.getPoint() would have the scanner and prompting calls and would return a Point while my Shape.editShape for Square would just call ShapeIO.getPoint() (assuming I have a ShapeIO object within Shape that's been instantiated as a ShapeIOConsole object) to get two points and my Shape.editShape for Circle would call a ShapeIO.getPoint() and a ShapeIO.getRadius? This would mean anytime I have a new Object that has a new type of property to get input for, I'd have to add a function to my ShapeIO, right?
    Anyways, I hope that made some sort of sense. I guess my question is am I correct in most of what I said, if I even said it clear enough for anyone to understand it ^^.

    benirose wrote:
    Thanks for your reply lance! I have a few responses if it's not too much trouble:None at all.
    >
    >
    >>
    That isn't obvious to me at all. Why do you need a switch?
    I would assume you need a switch statement because you need to know what constructor to call, right? For example if you have Shape myShape, wouldn't you need to determine if you're instantiating that as a Square or Circle? I mean you could do it with if statements and not a switch, but you'd need to conditionalize (is that a word?!) the creation, correct?Presumably something has caused the need to instantiate a particular shape. Let's suppose that the action that caused it was that a user pressed a button on a GUI. Now presumably there is a button for a new circle and another button for a new square. Each of these buttons can have their own event handler. The event handler for the 'New Circle' button can instantiate a new circle (or call something else that does it) and the event handler for 'New Square' can instantiate a new square (or call something else that does it). Where does the conditional logic come in?
    It could be that your user interface is a text based list of items to create, and the user has to type a number to choose. In this case, you might need to do some conditional logic, yes.
    Of course there are times when context is not given or insufficient. Often at the fringes of systems, when interacting with other systems, you need to determine what kind of message you've been given before processing it. But even then, there are usually better ways than lots of conditional logic (dispatch tables, for example).
    Having said all of that, I have worked on a system where a GUI had something like 150 different buttons / menu items / other things that could cause actions to occur. The original developer had decided to give each of these things a number so that he could save himself the bother of creating a new ActionListener or whatever for each item, and routed every action through the same switch statement to try to recover the information he'd just thrown away. Bizarre.
    >
    >>
    You could use a visitor rather than doing a switch.
    I don't really know much about the visitor class, but I'll give it a look.
    I assume you mean 'from within a "domain model" class'. I think the bad practice you're referring to is the failure to separate model concerns from view concerns (or, more generally, the failure to separate the concerns of different domains).
    Yeah, I suppose so. I just don't see many classes asking for it's own input, you usually pass it from the driver class. There's no editString() function which asks for input of a new string, you do that in the driver and then set the new string.Try not to think in terms of a 'driver'. This suggests procedural thinking. Think instead of a collaborating eco-system of objects where one object may delegate to another to do some work on it's behalf. The delegator may, when delegating, also give the delegate something that it might find useful to do its work (such as a means of obtaining data or something that it can further delegate some of the work to). If you do it right, the delegate only sees an abstraction appropriate to its place in the eco-system, behind which could exist any number of implementations. If you're just starting out, this may seem a bit heady. Don't worry about it, it'll come...
    >
    >
    >>
    I wouldn't necessarily do any of it this way; I'm only trying to address your question about Bridge. It probably is a good idea to go and talk to your professor again. If you do, come back here and tell us what he said...
    Yeah, I'm not sure I'd do it this way either, but the assignment is a Survey taking program, and the basic implementation was to have an abstract Question class which has a two level inheritence tree of MultipleChoice, Essay, and Matching inheriting from Question, and TF, Short Answer, and Ranking inheriting from MC, Essay, and Matching respectively. So our Survey class would have a Vector of Questions, which is fine, but he said we couldn't do any conditioning to see what type of Question we have, and that we should just be able to make calls to abstract functions in Question that will handle everything.It sounds like he's trying to get you to put behaviour into the Question subclasses, rather than having it in the Survey (i.e. to do what I said above :-). This may feel a bit strange at first, and you might be saying to yourself 'I thought OO was supposed to model the real world, but a question doesn't do anything in the real world'. One of the core concepts in OO is that if you find yourself doing something to an object in the real world, then ask the object to do it for you in your model. That way, system intelligence gets distributed evenly throughout your model.
    You do run into odd issues though. For example, in a library, suppose you have a book and a bookshelf. Supposing the book has just been returned to the library, should the book now goBackToShelf(), or should the shelf receiveBook(). It might even be both under some circumstances. It could also be neither, if you decide that a Librarian is part of your model. But be careful about doing that. You could get all of your behaviour concentrated in the Librarian with everything else in the system being dumb containers of data (some might argue that would be a good thing).
    >
    On a side note, I know if you type a variable with the abstract class (E.G. Question) and then instantiate it as an inherited class (E.G. MC), you can only make calls to the abstract functions (at least Eclipse tells me so). Is it the same way with an interface? What if my Question class wasn't abstract, then I should be fine, right?You can only make calls to the methods declared by Question and it's supertypes (it doesn't matter whether those methods are abstract or not). This is the same for interfaces and it would also be the same if Question was not abstract. The reason is that when you have a declaration like this
    Question question;you are defining a variable called 'question' of type Question. The only things you can ask 'question' to do are those things that its type knows about, which are the methods declared by Question and it's supertypes. The fact that 'question' refers to an object of some subclass of Question doesn't matter. All that matters is the type of the variable, which is Question.
    Regards,
    Lance

  • Still can't print

    Hi Folks,
    I'm having problems printing and creating in Acrobat, per the conversation from another thread that I've pasted below.  I pasted it here because that thread seems to have given out.  The fellow with whom I was corresponding gave me some pretty good ideas and I tried them.  But they didn't pan out.
    Can anyone save me on this?
    Thanks,
    CS
    Hi There,
    I was having some problems with Acrobat and with other CS3 components, too, so I just ran the CS5 Cleaner Tool and reinstalled CS3.  As far as I can tell, the only problems I have now are with Acrobat 8 Professional.
    - It appears that I'm able to Save As any file as a PDF
    - I can't Create a PDF, either by opening of dragging a file into Acrobat Professional.   The error message says either the "file type is not supported" or "the file is corrupt".  Word is supported and my files are new.  Then I get another box that says "Missing PDFMaker files.  Do you want to run the installer in repair mode?"  If I run that, nothing happens.
    - I can't print a PDF.  The error here is "Error - Printing" or "Error - Sent to Printer" in the print dialogue box.
    Any ideas?  I'm a bit stuck.
    Thanks,
    CS
    Reply
    Bill@VT6,961 posts since
    Aug 11, 2002
    Currently Being Moderated
    1. Jan 1, 2011 6:54 AM in response to: Crellin Sound
    Re: Create - No Go
    You gave no indication of the OS or the WORD versions. AA8 has problems with Win 7 and also OFFICE 2010. If you have not updated, you might update AA8 and something like AA8.3.4 or so (did not check lately).
    As far as printing, the most basic process of all the PDF creation processes with AA8 are to print to the Adobe PDF printer with print to file selected. Then open that file in Distiller to complete the process. If that works, you can then at least create PDFs. The next step is to check for AcroTray running in the background (ctrl-alt-del > tasks and you should see AcroTray running in the background. You might try killing it and restarting (from the Distiller folder).
    PDF Maker requires WORD to be activated for the PDF Maker macro. If you have the PDF maker menu in WORD, then opening in Acrobat should also work. The latter simply uses the macro in WORD.
    Report Abuse Reply
    Crellin Sound64 posts since
    Apr 21, 2009
    Currently Being Moderated
    2. Jan 3, 2011 5:22 AM in response to: Bill@VT
    Re: Create - No Go
    Hi Bill,
    I'm running Windows Vista and, I believe, Office 2007.  Sorry about the omission.
    I'll try your print-to-file trick and see what happens.
    I'll also try what you suggest about the Acrotray, too.
    There's no PDF Maker menu in Word, though I can select PDF as a printer.  How do I activate Word in this case?
    Thanks,
    CS
    Reply
    Crellin Sound64 posts since
    Apr 21, 2009
    Currently Being Moderated
    3. Jan 3, 2011 9:56 PM in response to: Crellin Sound
    Re: Create - No Go
    Hi Bill,
    I can create PDFs by Saving As to PDF and then printing, but I still can't Print of Create.  It's a bit of a pain when working with AI.
    I tried your idea of printing to file and then opening Distiller to complete the process.  I couldn't print to file without an error, so I couldn't even get to Distiller.  Or maybe I don't quite understand what you're saying here.
    I killed the AcroTray, got it going again, and that didn't make any difference.
    There's no PDF Maker Menu in Word or Excel.
    Any ideas?  I'm stuck.
    Thanks,
    CS

    Well, I found the solution, although it was a trial and error thingy. I have my HP Deskjet 5400 running an apple driver in windows XP. My Brother HL-5140 worked with the proper drivers in XP but I had to reinstall the drivers setup utility in the mac for the HL-5140.
    I don't see any patterns except that it is having software conflicts.

  • Please help - frustrating kernel panic in 10.4.5

    Hi everyone,
    I am helping a friend on his iMac Flat Panel. He is running 10.4.5, and his computer's RAM was upgraded at the Apple Store from 256 to 512 Megs when he bought it a few years back.
    He just did an erase and install of Tiger, and has been having intermittent kernel panics for a week now. They don't seem to follow a pattern, except that they happen more often when he wakes his computer from sleep mode and also when he is in Dashboard.
    I ran MEMTEST, the Apple Hardware Test, and Disk Utility (the latter two from their appropriate startup CDs), and no issues were raised by these programs.
    What am I missing here? I am posting the last couple kernel panics from his panic log. Can anyone decypher this??? Any help with this would be most appreciated!!!
    Sat Feb 18 08:55:29 2006
    panic(cpu 0 caller 0x008C2A4C): Apparent UniNorth Hang: AGP STATUS = 0x00000004
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x00095564 0x00095A7C 0x00026838 0x008C2A4C 0x008C2BA8 0x008C35CC 0x008C9A88 0x008C93C8
    0x008C6AB8 0x008C6CF0 0x008AABE8 0x002E5B98 0x002E7A64 0x0008C424 0x000291BC 0x000233A8
    0x000ABBAC 0x32382226
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.GeForce(4.0.0)@0x8a3000
    dependency: com.apple.iokit.IOPCIFamily(1.6)@0x456000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4)@0x5c7000
    dependency: com.apple.iokit.IONDRVSupport(1.4)@0x5eb000
    dependency: com.apple.NVDAResman(4.0.0)@0x601000
    Proceeding back via exception chain:
    Exception state (sv=0x20CACA00)
    PC=0x9000A758; MSR=0x0200F030; DAR=0x000FE048; DSISR=0x40000000; LR=0x9000A69C; R1=0xBFFFE9D0; XCP=0x00000030 (0xC00 - System call)
    Kernel version:
    Darwin Kernel Version 8.0.0: Sat Mar 26 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC
    Sat Feb 18 09:30:23 2006
    panic(cpu 0 caller 0x008C2A4C): Apparent UniNorth Hang: AGP STATUS = 0x00000004
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x00095564 0x00095A7C 0x00026838 0x008C2A4C 0x008C316C 0x008AB1D0 0x002E5B98 0x002E7A64
    0x0008C424 0x000291BC 0x000233A8 0x000ABBAC 0x49445245
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.GeForce(4.0.0)@0x8a3000
    dependency: com.apple.iokit.IOPCIFamily(1.6)@0x456000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4)@0x5c7000
    dependency: com.apple.iokit.IONDRVSupport(1.4)@0x5eb000
    dependency: com.apple.NVDAResman(4.0.0)@0x601000
    Proceeding back via exception chain:
    Exception state (sv=0x2E463C80)
    PC=0x9000A758; MSR=0x0200F030; DAR=0x01011354; DSISR=0x40000000; LR=0x9000A69C; R1=0xBFFFE9D0; XCP=0x00000030 (0xC00 - System call)
    Kernel version:
    Darwin Kernel Version 8.0.0: Sat Mar 26 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC
    Sat Feb 18 11:37:26 2006
    panic(cpu 0 caller 0x31E40C9C): Apparent UniNorth Hang: AGP STATUS = 0x00000004
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x00095718 0x00095C30 0x0002683C 0x31E40C9C 0x31E40DF8 0x31E4182C 0x31E4C528 0x31E4BDC0
    0x31E47744 0x31E479D0 0x31E29CDC 0x002E7EE0 0x002E9DAC 0x0008C4B0 0x000291C0 0x000233AC
    0x000AC02C 0x00000000
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.GeForce(4.1.8)@0x31e1e000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x1d891000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.1)@0x21f1b000
    dependency: com.apple.iokit.IONDRVSupport(1.4.1)@0x21f3f000
    dependency: com.apple.NVDAResman(4.1.8)@0x31b6e000
    Proceeding back via exception chain:
    Exception state (sv=0x2291A280)
    PC=0x9000B1E8; MSR=0x0200F030; DAR=0x34FDE000; DSISR=0x42000000; LR=0x9000B13C; R1=0xBFFFE900; XCP=0x00000030 (0xC00 - System call)
    Kernel version:
    Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46 PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC
    iMac   Mac OS X (10.4.5)   512 Megs RAM

    Hi David,
    to answer your question, no there is no database you can access to help decipher the information contained in a panic log. That information is really intended for Unix experts and programmers, not us mere mortals.
    However, both of the logs you posted clearly point to the video card. Both of the logs mention it in the backtrace. In my opinion, removing regular ram will have no affect on this issue. Removing all peripheral devices except your keyboard, mouse, and monitor is always a good troubleshooting step when trying to track down the cause of a panic.
    There is some excellent advice for resolving kernel panics available here:
    http://www.thexlab.com/faqs/kernelpanics.html
    In my opinion though I believe this is a hardware issue with the video card and since it is not a user upgradable part in an iMac your friend probably will have to put it in the shop for repair.

  • Network Security Requirement : Confidential - Not Enforced

    I am having a perplexing problem with the network security requirement feature in SJSAS 8 Update 1.
    In deploytool, under my WAR, in the security tab, for my only SecurityConstraint, I set the Network Security Requirement to CONFIDENTIAL. This should cause any access to thse objects over port 80 to be redirected to https via for 443.
    The failure is that it does not redirect clients accessing over port 80 to a secure connection. The tricky part is that it fails in a completely random way. Sometimes for some WARs it will work as expected, then after X number of server restarts / redeployments, some of the same WARs will not do the redirect as expected. Through continuous redeploys and restarts during development, all WARs will or will not do the redirect in any given situation.
    Has anyone else experienced this problem and worked around it? Any help is greatly appreciated! Thanks in advance!
    mod_critical

    The following is the deployment descriptor for one of the WARs (this problem affects them all, on multiple different machines with different setups).
    The following is from the Security Contraint:
    <security-constraint> <display-name>SecurityConstraint</display-name> <web-resource-collection> <web-resource-name>WRCollection</web-resource-name> <url-pattern>/participant/*</url-pattern> <url-pattern>/assetmodel/*</url-pattern> <url-pattern>/*</url-pattern> <http-method>POST</http-method> <http-method>GET</http-method> </web-resource-collection> <auth-constraint> <role-name>asadmin</role-name> <role-name>cvbdataentry</role-name> <role-name>cvbadmin</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
    The rest is as follows:
    <?xml version='1.0' encoding='UTF-8'?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > <display-name>CVBadmin</display-name> <servlet> <display-name>assetmodel/OpenRecord</display-name> <servlet-name>assetmodel/OpenRecord</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.OpenRecord</servlet-class> </servlet> <servlet> <display-name>participant/personell/account/Lookup</display-name> <servlet-name>participant/personell/account/Lookup</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.account.Lookup</servlet-class> </servlet> <servlet> <display-name>participant/personell/account/record</display-name> <servlet-name>participant/personell/account/record</servlet-name> <jsp-file>/participant/personell/account/record.jsp</jsp-file> </servlet> <servlet> <display-name>assetmodel/line/Remove</display-name> <servlet-name>assetmodel/line/Remove</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.line.Remove</servlet-class> </servlet> <servlet> <display-name>participant/location/record</display-name> <servlet-name>participant/location/record</servlet-name> <jsp-file>/participant/location/record.jsp</jsp-file> </servlet> <servlet> <display-name>assetmodel/Save</display-name> <servlet-name>assetmodel/Save</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.Save</servlet-class> </servlet> <servlet> <display-name>syncError</display-name> <servlet-name>syncError</servlet-name> <jsp-file>/syncError.jsp</jsp-file> </servlet> <servlet> <display-name>participant/Search</display-name> <servlet-name>participant/Search</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.Search</servlet-class> </servlet> <servlet> <display-name>participant/location/List</display-name> <servlet-name>participant/location/List</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.location.List</servlet-class> </servlet> <servlet> <display-name>participant/personell/account/Create</display-name> <servlet-name>participant/personell/account/Create</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.account.Create</servlet-class> </servlet> <servlet> <display-name>participant/personell/listresults</display-name> <servlet-name>participant/personell/listresults</servlet-name> <jsp-file>/participant/personell/listresults.jsp</jsp-file> </servlet> <servlet> <display-name>participant/record</display-name> <servlet-name>participant/record</servlet-name> <jsp-file>/participant/record.jsp</jsp-file> </servlet> <servlet> <display-name>participant/personell/account/Passwd</display-name> <servlet-name>participant/personell/account/Passwd</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.account.Passwd</servlet-class> </servlet> <servlet> <display-name>participant/location/Create</display-name> <servlet-name>participant/location/Create</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.location.Create</servlet-class> </servlet> <servlet> <display-name>Logout</display-name> <servlet-name>Logout</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.Logout</servlet-class> </servlet> <servlet> <display-name>participant/location/Remove</display-name> <servlet-name>participant/location/Remove</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.location.Remove</servlet-class> </servlet> <servlet> <display-name>participant/Save</display-name> <servlet-name>participant/Save</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.Save</servlet-class> </servlet> <servlet> <display-name>assetmodel/listresults</display-name> <servlet-name>assetmodel/listresults</servlet-name> <jsp-file>/assetmodel/listresults.jsp</jsp-file> </servlet> <servlet> <display-name>assetmodel/line/record</display-name> <servlet-name>assetmodel/line/record</servlet-name> <jsp-file>/assetmodel/line/record.jsp</jsp-file> </servlet> <servlet> <display-name>assetmodel/line/List</display-name> <servlet-name>assetmodel/line/List</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.line.List</servlet-class> </servlet> <servlet> <display-name>participant/personell/Save</display-name> <servlet-name>participant/personell/Save</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.Save</servlet-class> </servlet> <servlet> <display-name>assetmodel/line/Create</display-name> <servlet-name>assetmodel/line/Create</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.line.Create</servlet-class> </servlet> <servlet> <display-name>participant/personell/List</display-name> <servlet-name>participant/personell/List</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.List</servlet-class> </servlet> <servlet> <display-name>assetmodel/Create</display-name> <servlet-name>assetmodel/Create</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.Create</servlet-class> </servlet> <servlet> <display-name>participant/Remove</display-name> <servlet-name>participant/Remove</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.Remove</servlet-class> </servlet> <servlet> <display-name>participant/Create</display-name> <servlet-name>participant/Create</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.Create</servlet-class> </servlet> <servlet> <display-name>assetmodel/line/listresults</display-name> <servlet-name>assetmodel/line/listresults</servlet-name> <jsp-file>/assetmodel/line/listresults.jsp</jsp-file> </servlet> <servlet> <display-name>participant/personell/Remove</display-name> <servlet-name>participant/personell/Remove</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.Remove</servlet-class> </servlet> <servlet> <display-name>assetmodel/List</display-name> <servlet-name>assetmodel/List</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.List</servlet-class> </servlet> <servlet> <display-name>assetmodel/record</display-name> <servlet-name>assetmodel/record</servlet-name> <jsp-file>/assetmodel/record.jsp</jsp-file> </servlet> <servlet> <display-name>participant/searchresults</display-name> <servlet-name>participant/searchresults</servlet-name> <jsp-file>/participant/searchresults.jsp</jsp-file> </servlet> <servlet> <display-name>menu</display-name> <servlet-name>menu</servlet-name> <jsp-file>/menu.jsp</jsp-file> </servlet> <servlet> <display-name>assetmodel/line/OpenRecord</display-name> <servlet-name>assetmodel/line/OpenRecord</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.line.OpenRecord</servlet-class> </servlet> <servlet> <display-name>participant/location/listresults</display-name> <servlet-name>participant/location/listresults</servlet-name> <jsp-file>/participant/location/listresults.jsp</jsp-file> </servlet> <servlet> <display-name>exception</display-name> <servlet-name>exception</servlet-name> <jsp-file>/exception.jsp</jsp-file> </servlet> <servlet> <display-name>participant/OpenRecord</display-name> <servlet-name>participant/OpenRecord</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.OpenRecord</servlet-class> </servlet> <servlet> <display-name>participant/location/Save</display-name> <servlet-name>participant/location/Save</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.location.Save</servlet-class> </servlet> <servlet> <display-name>participant/personell/OpenRecord</display-name> <servlet-name>participant/personell/OpenRecord</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.OpenRecord</servlet-class> </servlet> <servlet> <display-name>participant/personell/Create</display-name> <servlet-name>participant/personell/Create</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.Create</servlet-class> </servlet> <servlet> <display-name>participant/personell/account/Remove</display-name> <servlet-name>participant/personell/account/Remove</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.personell.account.Remove</servlet-class> </servlet> <servlet> <display-name>participant/personell/record</display-name> <servlet-name>participant/personell/record</servlet-name> <jsp-file>/participant/personell/record.jsp</jsp-file> </servlet> <servlet> <display-name>assetmodel/Remove</display-name> <servlet-name>assetmodel/Remove</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.Remove</servlet-class> </servlet> <servlet> <display-name>assetmodel/PreRecord</display-name> <servlet-name>assetmodel/PreRecord</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.PreRecord</servlet-class> </servlet> <servlet> <display-name>assetmodel/line/Save</display-name> <servlet-name>assetmodel/line/Save</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.assetmodel.line.Save</servlet-class> </servlet> <servlet> <display-name>participant/location/OpenRecord</display-name> <servlet-name>participant/location/OpenRecord</servlet-name> <servlet-class>com.deerteck.cvb.servlet.CVBadmin.participant.location.OpenRecord</servlet-class> </servlet> <servlet-mapping> <servlet-name>assetmodel/OpenRecord</servlet-name> <url-pattern>/assetmodel/openrecord</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/account/Lookup</servlet-name> <url-pattern>/participant/personell/account/lookup</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/account/record</servlet-name> <url-pattern>/participant/personell/account/record</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/line/Remove</servlet-name> <url-pattern>/assetmodel/line/remove</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/location/record</servlet-name> <url-pattern>/participant/location/record</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/Save</servlet-name> <url-pattern>/assetmodel/save</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>syncError</servlet-name> <url-pattern>/syncError</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/Search</servlet-name> <url-pattern>/participant/search</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/location/List</servlet-name> <url-pattern>/participant/location/list</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/account/Create</servlet-name> <url-pattern>/participant/personell/account/create</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/listresults</servlet-name> <url-pattern>/participant/personell/listresults</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/record</servlet-name> <url-pattern>/participant/record</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/account/Passwd</servlet-name> <url-pattern>/participant/personell/account/passwd</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/location/Create</servlet-name> <url-pattern>/participant/location/create</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Logout</servlet-name> <url-pattern>/logout</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/location/Remove</servlet-name> <url-pattern>/participant/location/remove</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/Save</servlet-name> <url-pattern>/participant/save</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/listresults</servlet-name> <url-pattern>/assetmodel/listresults</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/line/record</servlet-name> <url-pattern>/assetmodel/line/record</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/line/List</servlet-name> <url-pattern>/assetmodel/line/list</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/Save</servlet-name> <url-pattern>/participant/personell/save</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/line/Create</servlet-name> <url-pattern>/assetmodel/line/create</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/List</servlet-name> <url-pattern>/participant/personell/list</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/Create</servlet-name> <url-pattern>/assetmodel/create</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/Remove</servlet-name> <url-pattern>/participant/remove</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/Create</servlet-name> <url-pattern>/participant/create</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/line/listresults</servlet-name> <url-pattern>/assetmodel/line/listresults</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/Remove</servlet-name> <url-pattern>/participant/personell/remove</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/List</servlet-name> <url-pattern>/assetmodel/list</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/record</servlet-name> <url-pattern>/assetmodel/record</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/searchresults</servlet-name> <url-pattern>/participant/searchresults</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>menu</servlet-name> <url-pattern>/menu</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/line/OpenRecord</servlet-name> <url-pattern>/assetmodel/line/openrecord</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/location/listresults</servlet-name> <url-pattern>/participant/location/listresults</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>exception</servlet-name> <url-pattern>/exception</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/OpenRecord</servlet-name> <url-pattern>/participant/openrecord</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/location/Save</servlet-name> <url-pattern>/participant/location/save</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/OpenRecord</servlet-name> <url-pattern>/participant/personell/openrecord</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/Create</servlet-name> <url-pattern>/participant/personell/create</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/account/Remove</servlet-name> <url-pattern>/participant/personell/account/remove</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/personell/record</servlet-name> <url-pattern>/participant/personell/record</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/Remove</servlet-name> <url-pattern>/assetmodel/remove</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/PreRecord</servlet-name> <url-pattern>/assetmodel/prerecord</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>assetmodel/line/Save</servlet-name> <url-pattern>/assetmodel/line/save</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>participant/location/OpenRecord</servlet-name> <url-pattern>/participant/location/openrecord</url-pattern> </servlet-mapping> <session-config> <session-timeout>60</session-timeout> </session-config> <error-page> <error-code>500</error-code> <location>/exception.jsp</location> </error-page> <security-constraint> <display-name>SecurityConstraint</display-name> <web-resource-collection> <web-resource-name>WRCollection</web-resource-name> <url-pattern>/participant/*</url-pattern> <url-pattern>/assetmodel/*</url-pattern> <url-pattern>/*</url-pattern> <http-method>POST</http-method> <http-method>GET</http-method> </web-resource-collection> <auth-constraint> <role-name>asadmin</role-name> <role-name>cvbdataentry</role-name> <role-name>cvbadmin</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <realm-name>ldap</realm-name> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/loginFail.jsp</form-error-page> </form-login-config> </login-config> <security-role> <role-name>asadmin</role-name> </security-role> <security-role> <role-name>cvbdataentry</role-name> </security-role> <security-role> <role-name>cvbadmin</role-name> </security-role> <security-role> <role-name>customer</role-name> </security-role> <security-role> <role-name>accountant</role-name> </security-role> <security-role> <role-name>participant</role-name> </security-role> <ejb-local-ref> <ejb-ref-name>ejb/DataAccessBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <local-home>com.deerteck.cvb.ejb.session.DataAccessLocalHome</local-home> <local>com.deerteck.cvb.ejb.session.DataAccessLocalObject</local> <ejb-link>ejb-jar-ic1.jar#DataAccessBean</ejb-link> </ejb-local-ref> <ejb-local-ref> <ejb-ref-name>ejb/LDAPBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <local-home>com.deerteck.cvb.ejb.session.LDAPLocalHome</local-home> <local>com.deerteck.cvb.ejb.session.LDAPLocalObject</local> <ejb-link>ejb-jar-ic1.jar#LDAPBean</ejb-link> </ejb-local-ref> </web-app>

  • Problems with java regular expressions

    Hi everybody,
    Could someone please help me sort out an issue with Java regular expressions? I have been using regular expressions in Python for years and I cannot figure out how to do what I am trying to do in Java.
    For example, I have this code in java:
    import java.util.regex.*;
    String text = "abc";
              Pattern p = Pattern.compile("(a)b(c)");
              Matcher m = p.matcher(text);
    if (m.matches())
                   int count = m.groupCount();
                   System.out.println("Groups found " + String.valueOf(count) );
                   for (int i = 0; i < count; i++)
                        System.out.println("group " + String.valueOf(i) + " " + m.group(i));
    My expectation is that group 0 would capture "abc", group 1 - "a" and group 2 - "c". Yet, I I get this:
    Groups found 2
    group 0 abc
    group 1 a
    I have tried other patterns and input text but the issue remains the same: no matter what, I cannot capture any paranthesized expression found in the pattern except for the first one. I tried the same example with Jakarta Regexp 1.5 and that works without any problems, I get what I expect.
    I am using Java 1.5.0 on Mac OS X 10.4.
    Thank to all who can help.

    paulcw wrote:
    If the group count is X, then there are X plus one groups to go through: 0 for the whole match, then 1 through X for the individual groups.It does seem confusing that the designers chose to exclude the zero-group from group count, but the documentation is clear.
    Matcher.groupCount():
    Group zero denotes the entire pattern by convention. It is not included in this count.

  • Windows Crashes with JRE 1.4.2  When Moving around JDialog

    Hi!
    I work on a Java Applet/application that was originally written to run on java 1.1 -- only AWT that too. Recently I managed to convince my manager (and his manager and his manager) to migrate from the AWT framework on java 1.1 (Microsoft JVM that is ) to Swing/JFC on Sun Java 1.4.2 ... it took a lot of explaining, demostrating, begging, pleading etc., to get this project funded.
    Now, my app is all developed in JFC and ready for deployment and during testing found a potential show stopper -- When a Dialog Box or any moveable componant (internal windows etc) is moved around (holding down the mouse on the title bar of a dialog and dragging it around), the OS simply froze up ... nothing could be done other than power cycling the PC. Does anyone know if its a bug in JRE 1.4.2 and if it has been fixed?? This could potentially result in rolling back to AWT :(( .... and of course me looking like a fool in front of my manager!!
    ..... Please provide any suggestion other than moving to JRE 1.5.x beta. I've also noticed this happening in other Java Applications (Netbeans for example). So, I think this is a major bug the JRE 1.4.2.
    A million thanks and few Duke Dollars for anyone pointing me in the right direction.
    Note:
    1. This problem is not just with my app ... some other java apps that are installed on my workstation (like netbeans) behave the same when Moving Around dialog boxes.
    2. The behaviour is very random. But it has happened multiple times (and the very first time my manager run our app on jre 1.4.2)
    I would give a million dollars if I had them. But for now, please do with the million thanks and few duke dollars.

    Have you tried this on another machine?Yes ... actually this has happened on a few workstations here ... all of them are Pentium IV based dell workstations running Windows 2000.
    What exact version of 1.4.2 did you download?Java(TM) Plug-in: Version 1.4.2_04
    Using JRE version 1.4.2_04 Java HotSpot(TM) Client VM
    Have you searched the bug database? This one could be related to yours:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4673572
    This sounds similar but the difference is its not just the app that feezes up (so that you could do an alt+ctrl+del and kill it)..... the OS freezes up and you can move the mouse around still the system even queu e is not full and eventuall all I hear is the beeping. At this point I've to power cycle.
    Is there any way you could post the code or is it too big? Or, have you tried just creating a very small >application or applet that just shows one dialog, and if so, does that show the same problem? (What I'm >trying to get at here is - is it something in your code that is causing this, or something in the JRE, or >perhaps something to do with your machine's configuration/OS?)Unfortunately I cannot post the code ... its company rules and regulations. I've tried creating a very small app and it appears to work ok .... but randomly causes this freeze up. There is no definate pattern (except that it happens when you move around a JDialog or a JInternalFrame) . It could freeze up some time and work perfectly fine at other times. It has actually happened on other applications too (Netbeans, JEdit etc). That's why I suspect this might be a obscure bug in the JRE.
    I'll try to find a pattern so that it can be re-produced by everyone.
    Thanks for the help.

  • Troubles with JRE 1.4.2 and iReport (with db2 connection)

    Hello everyone. My company is developing a product, and the client is working with JRE 1.4.2 . They (the client) are using db2 Database. We are using iReport to generate the product reports, but we encounter a problem with it - the report will compile and report (in any format) only once - afterwards, iReport will suddenly freeze and will stop to respond.
    Trying the same thing with JRE 5.0 worked perfectly, with not troubles at all (but we cannot ask our client to upgrade to JRE 5.0, of course)
    Anyone has any idea about how to fix this problem? perhaps there's a patch or something of the sort?
    I forgot to mention, there's no error message at all, and if any, it's a javaw.exe application hang.
    Any idea's?
    Thanks,
    Matt.

    Have you tried this on another machine?Yes ... actually this has happened on a few workstations here ... all of them are Pentium IV based dell workstations running Windows 2000.
    What exact version of 1.4.2 did you download?Java(TM) Plug-in: Version 1.4.2_04
    Using JRE version 1.4.2_04 Java HotSpot(TM) Client VM
    Have you searched the bug database? This one could be related to yours:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4673572
    This sounds similar but the difference is its not just the app that feezes up (so that you could do an alt+ctrl+del and kill it)..... the OS freezes up and you can move the mouse around still the system even queu e is not full and eventuall all I hear is the beeping. At this point I've to power cycle.
    Is there any way you could post the code or is it too big? Or, have you tried just creating a very small >application or applet that just shows one dialog, and if so, does that show the same problem? (What I'm >trying to get at here is - is it something in your code that is causing this, or something in the JRE, or >perhaps something to do with your machine's configuration/OS?)Unfortunately I cannot post the code ... its company rules and regulations. I've tried creating a very small app and it appears to work ok .... but randomly causes this freeze up. There is no definate pattern (except that it happens when you move around a JDialog or a JInternalFrame) . It could freeze up some time and work perfectly fine at other times. It has actually happened on other applications too (Netbeans, JEdit etc). That's why I suspect this might be a obscure bug in the JRE.
    I'll try to find a pattern so that it can be re-produced by everyone.
    Thanks for the help.

  • Dreamweaver rewriting spry:if statements

    I keep having a problem with Dreamweaver rewriting manually
    created Spry select list code.
    Example of the code as it should be:
    <select name="orgSelect" id="orgSelect"
    onchange="document.forms['frmSupportReq'].groupSelect.disabled =
    true;dsOrg.setCurrentRowNumber(this.selectedIndex);"
    spry:repeatchildren="dsOrg">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{name}" selected="selected">{name}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{name}">{name}</option>
    </select>
    Dreamweaver rewrites it, breaking it (below is a sample of
    the most recent break):
    <select name="orgSelect" id="orgSelect"
    onchange="document.forms['frmSupportReq'].groupSelect.disabled =
    true;dsOrg.setCurrentRowNumber(this.selectedIndex);"
    spry:repeatchildren="dsOrg">
    <option spry:if="{dsOrg::ds_RowNumber} ==
    {dsOrg::ds_CurrentRowNumber}" value="{dsOrg::name}"
    selected="selected">{dsOrg::name}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{name}">{name}</option>
    </select>
    Dreamweaver has rewritten the code in several different ways
    over the last two days for this particular item (which is the first
    part of a master/detail double select set).
    This is getting very irritating.
    Has anyone else had a similar problem? If so, has anyone
    found a way to STOP Dreamweaver from breaking the Spry code?
    I would appreciate suggestions on how to break Dreamweaver of
    this annoying habit.
    Thanks.
    Skip Keats

    Donald:
    I am not certain if I can 'reproduce' it, per se, as the
    occurrences do not follow any particular pattern, except what
    Dorfadobe notes -- switching between code/split and design views.
    All pages have at least one Spry-generated select list (used
    as a jump menu). Many have more. The code noted above is part of an
    actual form (rather than a jump menu system).
    What I have noticed is that Dreamweaver does not seem to
    change any code created by itself from design view. It only seems
    to change code that is manually created in code view. (On a
    separate note, it keeps trying to delete conditional validation
    that I am creating for the same form -- you know, 'if yes, then
    this field is available (and must validate)' type thing.
    My question: Could it be that Dreamweaver is somehow
    internally programmed to force conformance to its design view
    'widgets' in some way? If so, this is a serious problem as the
    widgets are rather limited in comparison to what can be done via
    hand-coding.
    Skip Keats

  • Safari reloads excessively, with unusual effects

    Starting today, Safari has refused to let me log into different websites. For some, right at the point that it appears to log in successfully, it suddenly reloads and goes back to the log in screen. For others, where I have previously clicked "keep me logged in" or an equivalent checkbox, it tries for a few minutes, and then comes up with
    Safari can't display this webpage
    Safari has repeatedly encountered an error while trying to display
    "https://www.facebook.com".
    It also affects some websites I don't have to log into.
    I have closed safari and re-opened it. The problem is still there. I've reset safari. That didn't help. I followed the instructions in this article, but safari was still acting up, so I put everything back. I guessed that the problem was either safari or my computer either overheating (a frequent problem it has, which has been slowly getting worse as it ages) or failing to connect to the network. It was easiest to try another browser, so I did that first. Lo and behold, Chrome works, so I know the trouble is with Safari, not with my computer or its internet connection. I'm just running out of ideas of how to fix it.
    The weird thing is, a few pages constantly reload until they come up with an error message, some only reload when I try to log in, and some are perfectly fine. I could view www.xkcd.com with no problems, but what-if.xkcd.com refused to load. Gmail only reloads (which causes logging out, as though the browser had been restarted rather than the page refreshed) right when the progress bar loading the inbox reaches 100%, before the actual messages appear. Pokefarm reloaded with the effect of causing me to be logged out every couple of pages that would load, until I checked the "automatically log me in" box one time when I logged back in, and now it only reloads the page every once in a while. Facebook (which I've left logged in near-permanently on my computer) refuses to load. My student account logs in, sometimes long enough to click the email link, then almost immediately goes to the "session has expired" link on both tabs. I'm not finding any particular pattern except that each website is consistent in how it acts. I'm really getting frustrated
    Ideas, anyone?

    Bee: Those are all good questions.
    As a college student with a campus-wide network, I have no clue if anything's been changed, though we usually get emails about planned outages for maintainence. I also wouldn't know who to call. But as I said, my other browsers worked just fine (I specifically tried Chrome) so I'm pretty sure the trouble wasn't in the network.
    The account with my name is an administrator, and I keep a second accont around, called "Admin" for when programs die and are harder to troubleshoot, mainly to figure out if I've just done something stupid and messed up my account rather than the whole program acting up. I didn't use that, because I tried another browser first. If that hadn't worked, I would have rebooted and seen if that helped. If that didn't help, then I would have experimented with the Admin account. I probably would have suspected the network at that point, and borrowed a friend's computer to test it.
    Anyway, those two are the only accounts currently on the computer, and both are password protected. No one else has access to it, (even my roommate won't brave the disaster area that is my desk) and I didn't change any settings recently. I don't think I've downloaded anything in the past week or more. The last thing I installed was months ago. (That's the long version of "no new security apps")
    That aside, I'm still not sure exactly what the problem was, but I think it was exacerbated by my laptop's heat issues. Because in the morning, Safari worked normally again. At that point, my computer had been asleep all night and had cooled down. If it had been off I would probably conclude that clearing the RAM helped, because it feels like memory is more closely related to how applications behave than heat is, but it was asleep and held onto all of my session data.
    The issue is resolved as of ~16 hours after the fact. Is there a way to mark it as such?
    I mean, I wouldn't mind continued discussion, in case that happens again, but it hasn't happened since. My computer has reacted much more predictably to heat and simply crashed. I think I like that better: I know what the problem is and how to fix it.

  • Image changing after merge or flattening. How can I troubleshoot?

    It happened on rare occasions before but recently I had the need to reset PS to it's default settings and it's happening with greater frequency. I'll make adjustments and when I try to shrink the file by merging or flattening the color profile or luminance will change. Often not a lot, but enough to notice.
    My work around was to make a stamp copy and save that, but it sometimes doesn't work.
    Can anyone suggest the settings I need to check to make everything seamless? Are there any color profiles that might change in the conversion I can check? I'm most often working in RGB in 16 or 8 bit mode. It's most often adjustments to levels or curves that don't take, but sometimes filters, too.
    Here's an example of my workflow with two pics. The difference is subtle but it's annoying.
    Filter sky out of photo, create mask to turn sky uniform white.
    Command E to merge the mask with the photo.
    Create Smart Object (from photo)
    Apply cutout filter. Apply notebook.
    Duplicate the SO with adjustments three times.
    Use Lasso to select a piece (flag) and copy to its own layer.
    Set that layer on top of the stack.
    Set the filter for all three layers to multiply.
    The texture from the filter Notebook fails every time I merge, flatten, or send back to LR and the color comes out lighter. Here's an example from this piece.https://flic.kr/p/r6A1Zd (what I want) https://flic.kr/p/qc5QTD (not what I want).

    Thank you for the response. I did read it right after you posted it but waited until I had yet another chance to try it out. Both times, neither solution worked.
    For whatever reason PS is showing me different images when I have my layers open from when I consolidate them -- no matter how I consolidate them. It doesn't happen every time and I can't identify a pattern except that it most frequently happens if I use the filters in the gallery. Also, it seems to not be applying color adjustments.
    If I zoom the image to 100% the before and after is always different. If I save it to disk in .psd or .tiff I still get a different image. When I send it to LR I have a different image from what I've been working on. It's frustrating. It can happen in RGB, LAB, or CMYK. I'm going to try reinstalling PS to see if that makes a difference, but assuming it doesn't I somehow need to make PS show me what I'm working on. Do you know what settings affect the image preview, the version I see while I'm working on screen?
    FYI, I'm using a 2013 iMac, 36GB RAM allocating PS with 90% of the memory.

Maybe you are looking for

  • A CS2 Epiphany on Installation Failures Mac PPC

    I have a legitimate copy of PhotoShop CS2 (upgrade) from PhotoShop 6 and have been using it for years on an iMac (PPC) currently running OS 10.4.11.  I needed to reformat the HDD on it due to it being full and the computer running a bit slow.  I de-a

  • Yellow tinted display

    Is anyone else still experiencing a yellow tinted display screen after "restoring" to 5A347? I'm wondering if this problem is isolated to my phone, and it could be exchanged for a new one.

  • Help with End User License Agreement

    Every time I try to view something in Adobe, my screen says "before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser" I have uninstalled and reinstalled a

  • Validations in datatable

    Hi I have a form generate by a datatable and I want to validate my form with a validator. I need to acces to the value of inputs but I don't know how I can acces to it because when I use a binding it don't work. I 'll paste my code it will be more cl

  • Missing font/substituted font in nav bar

    I cannot seem to get rid of a rogue font on my site. It appears to be in the Navigation Bar that is part of the Modern webpage template (see script code below). This text box is not editable in iWeb as far as I can tell. Each time I go to a page in I