• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Uh oh, I broke the Wiki

 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, one of the pages in it, at least. Let me explain before you start jumping on my back, though:
I am adding some information to the FAQ about how to set the class path in Linux. After submitting some of my changes to see how they show up, the Wiki throws an exception when I try to access the page. You can visit http://test.javaranch.com/wiki/view?HowToSetTheClasspath to see the error message for yourself, so I won't paste it here. Can I do something to fix this myself? Or does the admin need to do something? Please let me know and I'll be more than happy to help out.
Layne
p.s. I saved the original content along with my additions as a local text file. I can restore them as soon as I can have access to this particular WikiPage.
[ February 12, 2004: Message edited by: Layne Lund ]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for letting us know, Layne. I worked with this a bit; the previous text is currently restored, but the page is (apparently) not editable at the moment. I'm not sure what's going on; will give Friki creator Frank Carver a chance to take a look before I attempt further meddling.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Will you keep me posted on the progress of this page? I'd sure like to add my bit about Linux. Feel free to email me; my address is listed under my profile.
Layne
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If Jim doesn't beat me to it, I'll sort things out tonight when traffic on the wiki should be lower than during the day.
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The page is restored now, though the history is gone. Well, it's been moved to a backup directory, because I couldn't figure out how to make my hand edits mesh with the history without creating other problems. We're still working on the underlying problem that set this off initially. Hopefully Layne won't break it again right away.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I sure hope I don't break it again any time soon, either.
Fortunately, I had my modifications on the clipboard so I could paste them to a text editor and save them as a local file. I finished my comments and posted them to the Wiki now, so you don't have to worry so much about the archived/backed-up version.
Thanks a lot for your help. I hope you figure out how to fix the underylying problem so it doesn't happen again.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also broke the Friki Wiki
I wanted to save my data (new pages) on a share drive which is not a server so I entered its address. Start up shows.

Aug 20, 2004 9:44:33 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4647 ms
JMOS Wiki: located external storage dir 'd072001\jmos\Glossary\pages'
JMOS Wiki: looking for external config file 'd072001\jmos\Glossary\pages\wiki.pr
p'
JMOS Wiki: reading external config file 'd072001\jmos\Glossary\pages\wiki.prp'
JMOS Wiki: updating external config file 'd072001\jmos\Glossary\pages\wiki.prp'
JMOS Wiki: Created File Page Repository at 'd072001\jmos\Glossary\pages\pages'

But before the first page can be displayed a regular expression throws up.

description The server encountered an internal error () that prevented it from fulfilling this request.

The following looks a little funny because '\n' was used to break the line.

java.util.regex.PatternSyntaxException: Illegal/unsupported escape squence near index 20
(\p{Alpha}+) [^\s
\Z}]+)
^
java.util.regex.Pattern.error(Pattern.java:1528)
java.util.regex.Pattern.escape(Pattern.java:1964)
java.util.regex.Pattern.range(Pattern.java:2096)
java.util.regex.Pattern.clazz(Pattern.java:2056)
java.util.regex.Pattern.sequence(Pattern.java:1585)
java.util.regex.Pattern.expr(Pattern.java:1545)
java.util.regex.Pattern.group0(Pattern.java:2297)
java.util.regex.Pattern.sequence(Pattern.java:1573)
java.util.regex.Pattern.expr(Pattern.java:1545)
java.util.regex.Pattern.compile(Pattern.java:1279)
java.util.regex.Pattern.<init>(Pattern.java:1035)
java.util.regex.Pattern.compile(Pattern.java:802)
org.stringtree.regex.Pattern.compile(Pattern.java:18)
org.stringtree.juicer.regex.RegexStringFilter.<init>(RegexStringFilter.java:23)
org.stringtree.juicer.string.DynamicRegexReplaceStringFilter.<init>(DynamicRegexReplaceStringFilter.java:14)
org.stringtree.juicer.string.AugmentRegexReplaceStringFilter.<init>(AugmentRegexReplaceStringFilter.java:22)
org.stringtree.juicer.string.AugmentRegexReplaceStringFilter.<init>(AugmentRegexReplaceStringFilter.java:31)
org.stringtree.juicer.tract.RegexAugmentReplaceTractFilter.<init>(RegexAugmentReplaceTractFilter.java:10)
FilterReplace.init(FilterReplace.java:9)
org.stringtree.juicer.formatter.FromToTransformation.init(FromToTransformation.java:20)
org.stringtree.juicer.formatter.AugmentFromToTransformation.init(AugmentFromToTransformation.java:20)
org.stringtree.juicer.tract.ExternalTractPipeline.createFilter(ExternalTractPipeline.java:90)
org.stringtree.juicer.tract.ExternalTractPipeline.getFilters(ExternalTractPipeline.java:64)
org.stringtree.juicer.tract.ExternalTractPipeline.<init>(ExternalTractPipeline.java:23)
org.stringtree.juicer.tract.ExternalTractPipeline.<init>(ExternalTractPipeline.java:29)
org.stringtree.juicer.formatter.ExternalFormatter.<init>(ExternalFormatter.java:18)
com.efsol.wiki.ClassicToHTMLFilter.<init>(ClassicToHTMLFilter.java:27)
com.efsol.wiki.ClassicToHTMLFilter.<init>(ClassicToHTMLFilter.java:32)
com.efsol.wiki.WikiServlet.resetPolicy(WikiServlet.java:120)
com.efsol.wiki.WikiServlet.setPolicy(WikiServlet.java:63)
com.efsol.wiki.WikiServlet.setBaseDir(WikiServlet.java:202)
com.efsol.wiki.WikiServlet.setRedirect(WikiServlet.java:180)
com.efsol.wiki.WikiServlet.init(WikiServlet.java:231)
javax.servlet.GenericServlet.init(GenericServlet.java:211)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:534)

Poking around I am sure my address did it but I cannot figure out how to change the regular expression to allow the address or how to remove the address (short of reinstalling).

Regular Expression was in the original wiki.transform
# remote wiki link
FilterReplace wiki.RemoteWikiLink !(\p{Alpha}+)[^\s\n\Z}]+)!&~1{&1}{&2}!

Any help appreciated.

I also am looking for an explanation of the tilde (~) in above &~1 vs &1

[ August 20, 2004: Message edited by: Ann Klein ]
[ August 20, 2004: Message edited by: Ann Klein ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ann, did you break our installation? If so, did you fix it? Are you just asking a question about Friki?
 
reply
    Bookmark Topic Watch Topic
  • New Topic