Lexical Error At Line 1 Column 13. Encountered 58 After
and to http://spring.io/questions for a curated defaultspringsecuritycontextsource list of stackoverflow tags that Pivotal engineers, and spring security ldap the community, monitor. Announcement Announcement Module Collapse No announcement yet. BadLdapGrammarException: Failed to parse DN Page Title Module Move Remove Collapse This topic is closedX X Conversation Detail Module Collapse Posts Latest Activity Search Forums Page of 1 Filter Time All Time Today Last Week Last Month Show All Discussions only Photos only Videos only Links only Polls only Filtered by: Clear All new posts griff Member Join Date: Jan 2008 Posts: 37 #1 BadLdapGrammarException: Failed to parse DN Jun 4th, 2010, 02:15 PM Can anyone tell me why I am unable to configure the ldap authentication manger as shown in the ldap samples? I am using Spring Security 3.0.2, following the documentation: in the reference guide Here is my configuration: Code:
ERROR [QuartzScheduler_Worker-8] [directory.ldap.mapper.GroupContextMapper] mapFromContext Failed to map attribute
a remote directoryAgile BoardInsert Lucidchart Diagram ExportXMLWordPrintable Details Type: https://issues.liferay.com/browse/LPS-39125 Bug Status: Closed Resolution: Won't Fix Affects Version/s: http://www.java-forums.org/awt-swing/21703-lexical-error-line-1-column-32-a.html 6.1.20 EE GA2 Fix Version/s: None Component/s: Util, Util > Web Proxy Labels: ee-ts Environment: LIFERAY VERSION: 6.1 GA2 OPERATING SYSTEM: Other Linux Distribution APPLICATION SERVER: Tomcat 7.0 JAVA VIRTUAL MACHINE: Java lexical error 6 DATABASE: Oracle 11.1 Description ISSUE Opening a link on a directory listing from within the Web Proxy portlet results in an error in the log and on screen. STEPS TO REPRODUCE 1. Add web proxy portlet to page 2. lexical error at Link proxy to a site directory with files that can be previewed in browser, i.e. gif, pdf, text files 3. Click on link to open the file RESULTS OF TESTING Errors in the log. Screen shows HTTP Status 500 message with the same error in the log ERRORS/LOGS SEVERE: Servlet.service() for servlet [Portlet Bridge Servlet] in context with path [] threw exception [Downstream error: Lexical error at line 1, column 13. Encountered: ":" (58), after : ""] with root cause org.apache.tomcat.util.http.parser.TokenMgrError: Lexical error at line 1, column 13. Encountered: ":" (58), after : "" at org.apache.tomcat.util.http.parser.HttpParserTokenManager.getNextToken(HttpParserTokenManager.java:434) at org.apache.tomcat.util.http.parser.HttpParser.jj_consume_token(HttpParser.java:260) at org.apache.tomcat.util.http.parser.HttpParser.MediaType(HttpParser.java:17) at org.apache.catalina.connector.Response.setContentType(Response.java:807) at org.apache.catalina.connector.ResponseFacade.setContentType(ResponseFacade.java:245) at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:123) at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:123) at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:123) at com.liferay.portal.kernel.servlet.HeaderCacheServletResponse.setContentType(HeaderCacheServletResponse.java:208) at org.portletbridge.portlet.PortletBridgeServlet$1.doInHttpClient(PortletBridgeServlet.java:294) at org.portletbridge.portlet.DefaultHttpClientTemplate.service(DefaultHttpClientTemplate.java:50) at org.portletbridge.portlet.Port
of 5 Thread: Lexical error at line 1, column 32. LinkBack LinkBack URL About LinkBacks Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 10-02-2009,05:11 PM #1 javamula Member Join Date Sep 2009 Posts 22 Rep Power 0 Lexical error at line 1, column 32. Dear All, Please help what is going on when running the project... here is the error message: run: INSERT INTO CURRENCY VALUES ("AFN','Afghanistan Afghanis',47.6326566391,0.0209940001) Exception in thread "main" java.sql.SQLSyntaxErrorException: Lexical error at line 1, column 32. Encountered: "\ufeff" (65279), after : "". When executing the following code... Java Code: static void insertTable(String tableName, String datName, Statement stmt) throws SQLException, IOException { BufferedReader in = new BufferedReader(new FileReader(datName +".dat")); String line; while ((line = in.readLine())!= null) { String command = "INSERT INTO " +tableName +" VALUES (" +line +")"; thank you for your kind help in this matter.... Reply With Quote 10-02-2009,07:13 PM #2 r035198x Senior Member Join Date Aug 2009 Posts 2,388 Rep Power 10 Try passing the statements through a PreparedStatement instead. Reply With Quote 10-03-2009,05:49 PM #3 javamula Member Join Date Sep 2009 Posts 22 Rep Power 0 Lexical being solved by PreparedStatement.. Dear r035198x, thank you for the advice. Case closed now. but why only insert the ROW 1,3,5... while the ROW 2,4,6...being skipped in readLine() Java Code: static void insertTable(String tableName, String datName, Statement stmt, Connection conn) throws SQLException, IOException { String sql = "INSERT INTO CURRENCY VALUES (?,?,?,?)"; PreparedStatement dataUpdate = conn.prepareStatement(sql); BufferedReader in = new BufferedReader(new FileReader(datName +".dat")); String line; String[] tokens = {null