[
https://issues.apache.org/jira/browse/CLEREZZA-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978905#action_12978905
]
Henry Story commented on CLEREZZA-387:
--------------------------------------
If I run Clerezza in debug mode, then connect to the running Clerezza using
Netbeans,
If I then futher set a breakpoint in
org.apache.clerezza.platform.typerendering/org.apache.clerezza.platform.typerendering.core/src/main/java/org/apache/clerezza/platform/typerendering/GenericGraphNodeMBW.java
at line 161
I can the run the following command from netbeans
System.err.println(new String(bytes,java.nio.charset.Charset.forName("UTF8")))
Which prints out the following to the console. There seems to be no trouble
with UTF-8 encoding at this point. So it is somewhat odd that
the same bytes a few lines further down (line 168 to be precise) have a UTF8
encoding problem.
At least it is clear that the file is indeed login.xhtml
------
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login Page</title>
<link href="/style/style.css" type="text/css" rel="stylesheet"
media="screen"></link>
<link href="/style/login.css" type="text/css" rel="stylesheet"
media="screen"></link>
</head>
<body>
<!-- header -->
<div id="tx-header">
<!-- system -->
<div id="tx-system"></div>
<!-- //system -->
</div>
<!-- // header -->
<!-- content -->
<div id="tx-login-mask">
<div>
<div>
<div id="tx-logo"></div>
<div class="tx-info"></div>
</div>
<form method="post" id="login-form" action="/login">
<fieldset class="tx-line">
<ol>
<li><label>Username</label>
<input name="user" size="30" type="text"
value=""></input></li>
<li><label>Password</label>
<input name="pass" size="30" type="password"
value=""></input></li>
<li>
<input name="stayloggedin" type="checkbox"
value="true"></input><label class="tx-checkbox">?Keep me logged in</label>
<input id="submitButton" type="submit"
value="Log In"></input>
</li>
</ol>
<input id="referer" name="referer" type="hidden"
value="http://localhost:8080/dashboard/overview#"></input>
</fieldset>
</form>
<a href="/reset/" class="tx-icon-right" style="padding-left:
1em; background-position: left center;">Forgot your password?</a>
</div>
</div>
<!-- // content -->
</body>
</html>
> Login problem: Invalid byte 2 of 2-byte UTF-8 sequence.
> -------------------------------------------------------
>
> Key: CLEREZZA-387
> URL: https://issues.apache.org/jira/browse/CLEREZZA-387
> Project: Clerezza
> Issue Type: Bug
> Environment: OSX, revision 1055072
> Reporter: Henry Story
>
> After uploading the latest changes, rebuilding all changed projects, and
> rebuilding the storageless launcher then the sesame lauchner, I start
> Clerezza with
> java -Xmx512m -XX:MaxPermSize=248M -jar
> org.apache.clerezza.platform.launcher.sesame-0.5-incubating-SNAPSHOT.jar
> --https_keystore_clientauth want --https_port 8443 --https_keystore_path
> /Users/hjs/tmp/cert/KEYSTORE.jks --https_keystore_password secret
> When I go to
> http://localhost:8080/dashboard/overview#
> and click on "Login:" I end up at
> http://localhost:8080/login?referer=http%3A%2F%2Flocalhost%3A8080%2Fdashboard%2Foverview%23
> with the message
> [[
> HTTP ERROR: 500
> Problem accessing /login. Reason:
> org.wymiwyg.wrhapi.HandlerException:
> com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:
> Invalid byte 2 of 2-byte UTF-8 sequence.
> Powered by Jetty://
> ]]
> The logs show:
> [[
> Caused by: org.wymiwyg.wrhapi.HandlerException:
> com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:
> Invalid byte 2 of 2-byte UTF-8 sequence.
> at
> org.apache.clerezza.triaxrs.JaxRsHandler.handleException(JaxRsHandler.java:592)
> at
> org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:340)
> ... 29 more
> Caused by:
> com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:
> Invalid byte 2 of 2-byte UTF-8 sequence.
> at
> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
> at
> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:369)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.peekChar(XMLEntityScanner.java:487)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2687)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
> at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
> at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
> at
> org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:168)
> at
> org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:76)
> at
> org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:333)
> ... 29 more
> ]]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.