jOOQ 3.6.3 Code Generation Bug? PatternSyntaxException: Illegal/unsupported escape sequence - jooq

It appears that jOOQs Code Generator has introduces a problem in v3.6.3. I cannot produces POJOs using this configuration file in v3.6.3
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<!-- Configure the database connection here -->
<jdbc>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://localhost:5432/my_db</url>
<user>postgres</user>
<password>pw</password>
</jdbc>
<generator>
<database>
<name>org.jooq.util.postgres.PostgresDatabase</name>
<inputSchema>public</inputSchema>
</database>
</generator>
</configuration>
but it starts to work again with v3.6.2. The error stack I'm getting in the latest version :
org.jooq.util.GeneratorException: Error generating code for schema public
at org.jooq.util.JavaGenerator.generate(JavaGenerator.java:268)
at org.jooq.util.GenerationTool.run(GenerationTool.java:426)
at org.jooq.util.GenerationTool.generate(GenerationTool.java:176)
at org.jooq.util.GenerationTool.main(GenerationTool.java:151)
Caused by: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 9
(?s:^.*?\Rpackage\s+(.*?);?\R.*?$)
^
at java.util.regex.Pattern.error(Unknown Source)
at java.util.regex.Pattern.escape(Unknown Source)
at java.util.regex.Pattern.atom(Unknown Source)
...
[main] ERROR org.jooq.util.GenerationTool - Cannot read jooq-config.xml. Error : Error generating code for schema public
org.jooq.util.GeneratorException: Error generating code for schema public
at org.jooq.util.JavaGenerator.generate(JavaGenerator.java:268)
at org.jooq.util.GenerationTool.run(GenerationTool.java:426)
at org.jooq.util.GenerationTool.generate(GenerationTool.java:176)
at org.jooq.util.GenerationTool.main(GenerationTool.java:151)
Caused by: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 9
(?s:^.*?\Rpackage\s+(.*?);?\R.*?$)
^
at java.util.regex.Pattern.error(Unknown Source)
...
at org.jooq.util.JavaWriter.beforeClose(JavaWriter.java:121)
at org.jooq.util.GeneratorWriter.close(GeneratorWriter.java:237)
at org.jooq.util.JavaGenerator.generateSchema(JavaGenerator.java:3131)
at org.jooq.util.JavaGenerator.generate(JavaGenerator.java:298)
at org.jooq.util.JavaGenerator.generate(JavaGenerator.java:265)
... 3 more
[main] ERROR org.jooq.util.GenerationTool - Usage : GenerationTool <configuration-file>

Yes, this is a known regression that applies only to jOOQ 3.6.3:
https://github.com/jOOQ/jOOQ/issues/4576
You can work around it by using Java 8 to run the source code generator.

Related

Quarkus native and org.kohsuke:github-api - Failed to deserialize exception

I'm playing with Quarkus native and org.kohsuke:github-api:1.111 and I see Failed to deserialize exception in native mode when doing simple new GitHubBuilder().withOAuthToken(ghToken).build();. This works in JVM mode.
The main problem is probably the fact that org.kohsuke:github-api is not ready for native mode.
I still want to ask if there are any options to workaround this, maybe some jackson tricks for https://github.com/github-api/github-api/blob/master/src/main/java/org/kohsuke/github/GHMyself.java (stacktrace contains Cannot construct instance of org.kohsuke.github.GHMyself (no Creators, like default construct, exist)).
Exception details:
2020-05-05 10:47:06,891 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-1) HTTP Request to /hello failed, error id: a71018e5-de46-43a0-a194-80bd0b477f3d-1: org.jboss.resteasy.spi.UnhandledException: org.kohsuke.github.HttpException: Server returned HTTP response code: 200, message: '200 OK' for URL: https://api.github.com/user
...
Caused by: java.io.IOException: Failed to deserialize {"login":"rsvoboda","id":925259,"node_id":"MDQ6VXNlcjkyNTI1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/925259?v=4","gravatar_id":"","url":"https://api.github.com/users/rsvoboda","html_url":"https://github.com/rsvoboda","followers_url":"https://api.github.com/users/rsvoboda/followers","following_url":"https://api.github.com/users/rsvoboda/following{/other_user}","gists_url":"https://api.github.com/users/rsvoboda/gists{/gist_id}","starred_url":"https://api.github.com/users/rsvoboda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsvoboda/subscriptions","organizations_url":"https://api.github.com/users/rsvoboda/orgs","repos_url":"https://api.github.com/users/rsvoboda/repos","events_url":"https://api.github.com/users/rsvoboda/events{/privacy}","received_events_url":"https://api.github.com/users/rsvoboda/received_events","type":"User","site_admin":false,"name":"Rostislav Svoboda","company":"JBoss by Red Hat by IBM","blog":"https://twitter.com/r_svoboda","location":"Brno, Czech Republic","email":"rsvoboda#redhat.com","hireable":null,"bio":null,"public_repos":138,"public_gists":3,"followers":18,"following":2,"created_at":"2011-07-19T12:18:08Z","updated_at":"2020-04-29T14:38:31Z"}
at org.kohsuke.github.GitHubResponse.parseBody(GitHubResponse.java:87)
at org.kohsuke.github.GitHubClient.lambda$fetch$0(GitHubClient.java:146)
at org.kohsuke.github.GitHubClient.createResponse(GitHubClient.java:404)
at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:358)
... 37 more
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `org.kohsuke.github.GHMyself` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
at [Source: (String)"{"login":"rsvoboda","id":925259,"node_id":"MDQ6VXNlcjkyNTI1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/925259?v=4","gravatar_id":"","url":"https://api.github.com/users/rsvoboda","html_url":"https://github.com/rsvoboda","followers_url":"https://api.github.com/users/rsvoboda/followers","following_url":"https://api.github.com/users/rsvoboda/following{/other_user}","gists_url":"https://api.github.com/users/rsvoboda/gists{/gist_id}","starred_url":"https://api.github.com/users/rsvobod"[truncated 734 chars]; line: 1, column: 2]
at com.fasterxml.jackson.databind.DeserializationContext.reportBadDefinition(DeserializationContext.java:1592)
at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1058)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1297)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:326)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:159)
at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1719)
at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1261)
at org.kohsuke.github.GitHubResponse.parseBody(GitHubResponse.java:84)
Reproducer details:
generate the app - https://quarkus.io/guides/getting-started#bootstrapping-the-project
add dependencies and quarkus.native.enable-https-url-handler propery for native
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId>
<version>1.111</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jackson</artifactId>
</dependency>
...
<properties>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.enable-https-url-handler>true</quarkus.native.enable-https-url-handler>
</properties>
change GreetingResource
GitHub github = new GitHubBuilder().withOAuthToken(ghToken).build();
GHRepository ghRepo = github.getRepository("quarkusio/quarkus");
return ghRepo.toString();
drop .body(is("hello")) from GreetingResourceTest
run mvn clean verify -Dnative
You can also use #RegisterForReflection(targets = GHObject.class) on any of your classes
My guess is that you will need to register all the GHObject hierarchy for reflection using a ReflectiveHierarchyBuildItem.
So that requires an extension. It would be a useful addition for the Platform IMHO.
If you are running in native mode and getting the error is because of reflection to resolve the annotate your class with #RegisterForReflection also add a no-args constructor in your class then rebuild the application and run your error will be resolved.
for more reference see quarkus guide on the link

Error while creating ro.isdc.wro.extensions.manager.ExtensionsConfigurableWroManagerFactory

Currently I am working in a web app proyect that involves Java, javascript, css (compass). I am trying to configure a runtime solution that merges all *.js and *.scss into a single file. I am following the guidelines explained in the Wro4j site but still I get the following error:
2014-12-16 12:59:00,154 [http-bio-8080-exec-2] ERROR ro.isdc.wro.extensions.model.factory.SmartWroModelFactory - Using XmlModelFactory for model creation..
[FAIL] Model creation using XmlModelFactory failed. Trying another ...
[FAIL] Exception occured while building the model using: XmlModelFactory Cannot build model from XML Using GroovyModelFactory for model creation..
[FAIL] Model creation using GroovyModelFactory failed. Trying another ...
[FAIL] Exception occured while building the model using: GroovyModelFactory Invalid model found! Using JsonModelFactory for model creation..
[FAIL] Model creation using JsonModelFactory failed. Trying another ...
[FAIL] Exception occured while building the model using: JsonModelFactory Invalid model found!
2014-12-16 12:59:00,155 [http-bio-8080-exec-2] ERROR ro.isdc.wro.model.factory.FallbackAwareWroModelFactory - Error while creating the model
ro.isdc.wro.WroRuntimeException: Cannot create model using any of provided factories
at ro.isdc.wro.extensions.model.factory.SmartWroModelFactory.create(SmartWroModelFactory.java:194)
at ro.isdc.wro.extensions.model.factory.SmartWroModelFactory.create(SmartWroModelFactory.java:36)
at ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:27)
at ro.isdc.wro.model.factory.FallbackAwareWroModelFactory.create(FallbackAwareWroModelFactory.java:48)
at ro.isdc.wro.model.factory.FallbackAwareWroModelFactory.create(FallbackAwareWroModelFactory.java:22)
at ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:27)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.access$101(InMemoryCacheableWroModelFactory.java:19)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory$1.initialize(InMemoryCacheableWroModelFactory.java:32)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory$1.initialize(InMemoryCacheableWroModelFactory.java:29)
at ro.isdc.wro.util.LazyInitializer.get(LazyInitializer.java:33)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.create(InMemoryCacheableWroModelFactory.java:42)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.create(InMemoryCacheableWroModelFactory.java:19)
at ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:27)
at ro.isdc.wro.model.factory.ModelTransformerFactory.create(ModelTransformerFactory.java:55)
at ro.isdc.wro.model.factory.ModelTransformerFactory.create(ModelTransformerFactory.java:27)
at ro.isdc.wro.model.factory.DefaultWroModelFactoryDecorator.create(DefaultWroModelFactoryDecorator.java:53)
at ro.isdc.wro.model.factory.DefaultWroModelFactoryDecorator.create(DefaultWroModelFactoryDecorator.java:25)
at ro.isdc.wro.model.group.processor.GroupsProcessor.process(GroupsProcessor.java:65)
at ro.isdc.wro.cache.DefaultSynchronizedCacheStrategyDecorator.loadValue(DefaultSynchronizedCacheStrategyDecorator.java:40)
at ro.isdc.wro.cache.DefaultSynchronizedCacheStrategyDecorator.loadValue(DefaultSynchronizedCacheStrategyDecorator.java:22)
at ro.isdc.wro.cache.AbstractSynchronizedCacheStrategyDecorator.get(AbstractSynchronizedCacheStrategyDecorator.java:52)
at ro.isdc.wro.manager.WroManager.serveProcessedBundle(WroManager.java:182)
at ro.isdc.wro.manager.WroManager.process(WroManager.java:134)
at ro.isdc.wro.http.WroFilter.processRequest(WroFilter.java:374)
at ro.isdc.wro.http.WroFilter.doFilter(WroFilter.java:324)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at de.tetralog.pqa.auth.valve.PQACBSamlLoginValve.invoke(PQACBSamlLoginValve.java:46)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2014-12-16 12:59:00,157 [http-bio-8080-exec-2] WARN ro.isdc.wro.model.factory.FallbackAwareWroModelFactory - Couldn't load new model, reusing last Valid Model!
2014-12-16 12:59:00,160 [http-bio-8080-exec-2] INFO com.tetralog.optimize4.servlets.ErrorPageServlet - Error page servlet initialized with the following options: errorPage=/WEB-INF/pages/error/error.jsp, showStackTrace=true
2014-12-16 12:59:00,162 [http-bio-8080-exec-2] ERROR com.tetralog.optimize4.servlets.ErrorPageServlet - Unhandled error in web application: incident id 014a52f73440-6152ec8b, HTTP status code 404 (Not Found), error message: "/bestInvest/wro/all.js", servlet: default, request URI: "/bestInvest/wro/all.js" (referer: "http://localhost:8080/bestInvest/customerSelection.do")
2014-12-16 13:07:27,975 [http-bio-8080-exec-1] ERROR ro.isdc.wro.extensions.model.factory.SmartWroModelFactory - Using XmlModelFactory for model creation..
[FAIL] Model creation using XmlModelFactory failed. Trying another ...
[FAIL] Exception occured while building the model using: XmlModelFactory Cannot build model from XML Using GroovyModelFactory for model creation..
[FAIL] Model creation using GroovyModelFactory failed. Trying another ...
[FAIL] Exception occured while building the model using: GroovyModelFactory Invalid model found! Using JsonModelFactory for model creation..
[FAIL] Model creation using JsonModelFactory failed. Trying another ...
[FAIL] Exception occured while building the model using: JsonModelFactory Invalid model found!
2014-12-16 13:07:27,976 [http-bio-8080-exec-1] ERROR ro.isdc.wro.model.factory.FallbackAwareWroModelFactory - Error while creating the model
ro.isdc.wro.WroRuntimeException: Cannot create model using any of provided factories
at ro.isdc.wro.extensions.model.factory.SmartWroModelFactory.create(SmartWroModelFactory.java:194)
at ro.isdc.wro.extensions.model.factory.SmartWroModelFactory.create(SmartWroModelFactory.java:36)
at ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:27)
at ro.isdc.wro.model.factory.FallbackAwareWroModelFactory.create(FallbackAwareWroModelFactory.java:48)
at ro.isdc.wro.model.factory.FallbackAwareWroModelFactory.create(FallbackAwareWroModelFactory.java:22)
at ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:27)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.access$101(InMemoryCacheableWroModelFactory.java:19)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory$1.initialize(InMemoryCacheableWroModelFactory.java:32)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory$1.initialize(InMemoryCacheableWroModelFactory.java:29)
at ro.isdc.wro.util.LazyInitializer.get(LazyInitializer.java:33)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.create(InMemoryCacheableWroModelFactory.java:42)
at ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.create(InMemoryCacheableWroModelFactory.java:19)
at ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:27)
at ro.isdc.wro.model.factory.ModelTransformerFactory.create(ModelTransformerFactory.java:55)
at ro.isdc.wro.model.factory.ModelTransformerFactory.create(ModelTransformerFactory.java:27)
at ro.isdc.wro.model.factory.DefaultWroModelFactoryDecorator.create(DefaultWroModelFactoryDecorator.java:53)
at ro.isdc.wro.model.factory.DefaultWroModelFactoryDecorator.create(DefaultWroModelFactoryDecorator.java:25)
at ro.isdc.wro.model.group.processor.GroupsProcessor.process(GroupsProcessor.java:65)
at ro.isdc.wro.cache.DefaultSynchronizedCacheStrategyDecorator.loadValue(DefaultSynchronizedCacheStrategyDecorator.java:40)
at ro.isdc.wro.cache.DefaultSynchronizedCacheStrategyDecorator.loadValue(DefaultSynchronizedCacheStrategyDecorator.java:22)
at ro.isdc.wro.cache.AbstractSynchronizedCacheStrategyDecorator.get(AbstractSynchronizedCacheStrategyDecorator.java:52)
at ro.isdc.wro.manager.WroManager.serveProcessedBundle(WroManager.java:182)
at ro.isdc.wro.manager.WroManager.process(WroManager.java:134)
at ro.isdc.wro.http.WroFilter.processRequest(WroFilter.java:374)
at ro.isdc.wro.http.WroFilter.doFilter(WroFilter.java:324)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at de.tetralog.pqa.auth.valve.PQACBSamlLoginValve.invoke(PQACBSamlLoginValve.java:46)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2014-12-16 13:07:27,976 [http-bio-8080-exec-1] WARN ro.isdc.wro.model.factory.FallbackAwareWroModelFactory - Couldn't load new model, reusing last Valid Model!
I added the following dependencies to my pom.xml file:
<!-- ====================================================================================== -->
<!-- PROJECT DEPENDENCIES -->
<!-- ====================================================================================== -->
<dependencies>
<!-- WRO4J -->
<dependency>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-core</artifactId>
<version>${wro4j.version}</version>
</dependency>
<dependency>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-extensions</artifactId>
<version>${wro4j.version}</version>
</dependency>
<dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<version>1.7R2</version>
</dependency>
...
</dependencies>
I create the wro.properties file inside the WEF-INF directory:
<pre><code>
cacheUpdatePeriod=0
modelUpdatePeriod=0
debug=true
disableCache=false
minimizeEnabled=false
gzipResources=true
ignoreMissingResources=true
jmxEnabled=true
managerFactoryClassName=ro.isdc.wro.extensions.manager.ExtensionsConfigurableWroManagerFactory
preProcessors=semicolonAppender,sassCss,cssImport
postProcessors=cssVariables
uriLocators=servletContext,uri,classpath
</code></pre>
and also the wro.xml in the same directory:
<?xml version="1.0" encoding="UTF-8"?>
<groups xmlns="http://www.isdc.ro/wro"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.isdc.ro/wro wro.xsd">
<group name="all">
<js>/js/lib/jquery-1.11.1.min.js</js>
<js>/js/lib/jquery.ie-select-width.js</js>
<js>/js/lib/jquery.blockUI.js</js>
<js>/js/lib/stringPrototypeFix.js</js>
<js>/js/lib/jquery.tooltipster.min.js</js>
<js>/js/constants.js</js>
<js>/js/common.js</js>
<js>/js/lib/underscore-min.js</js>
<js>/js/lib/backbone-min.js</js>
<js>/js/lib/jquery-ui/jquery-ui-1.11.0.custom.min.js</js>
<js>/js/lib/jquery-ui/jquery.ui.datepicker-de.js</js>
<js>/js/lib/timepicker/jquery-ui-timepicker-de.js</js>
<js>/js/lib/datetime.control.js</js>
<js>/js/lib/arrayExtensions.js</js>
<js>/js/lib/moment.js</js>
<js>/js/plugins/numeral.min.js</js>
<js>/js/plugins/numericInput.jquery.plugin.js</js>
<js>/js/plugins/defaultText.jquery.plugin.js</js>
<js>/js/plugins/dialog.jquery.plugin.js</js>
<js>/js/plugins/dataTracker.js</js>
<js>/js/plugins/editableCombobox.jquery.plugin.js</js>
<js>/js/plugins/textField.utils.jQuery.plugin.js</js>
<js>/js/models/common/common.models.js</js>
<js>/js/models/common/permissionKeys.js</js>
<js>/js/models/common/common.errorCodes.js</js>
<js>/js/models/common/categoryModel.model.js</js>
<js>/js/models/common/predicates.js</js>
<js>/js/models/common/filterCondition.model.js</js>
<js>/js/views/common/*.js</js>
<js>/js/models/common/pageResultModel.model.js</js>
<js>/js/models/common/searchResultModel.model.js</js>
<js>/js/models/common/paginatedModel.model.js</js>
<js>/js/models/common/chart.model.js</js>
<js>/js/models/common/message.model.js</js>
<js>/js/models/common/dataTrackerFunction.model.js</js>
<js>/js/views/common/workflow/*.js</js>
<js>/js/models/common/workflow/*.js</js>
<js>/js/models/domain/user.model.js</js>
<js>/js/models/domain/advisor.model.js</js>
<js>/js/models/domain/distribution.model.js</js>
<js>/js/models/domain/charts/chartDistribution.model.js</js>
<js>/js/models/domain/charts/chart.model.js</js>
<js>/js/models/domain/money.model.js</js>
<js>/js/models/domain/customer.model.js</js>
<js>/js/models/domain/allocation.model.js</js>
<js>/js/models/domain/products/product.model.js</js>
<js>/js/models/domain/products/productInstance.model.js</js>
<js>/js/models/domain/products/productLine.model.js</js>
<js>/js/models/recommendation/portfolioPositions.model.js</js>
<js>/js/models/customer-selection/customerSearch.model.js</js>
<js>/js/models/customerReports/reportType.model.js</js>
<js>/js/models/customerReports/report.model.js</js>
<js>/js/models/customerReports/customerReports.model.js</js>
<js>/js/models/customer-selection/newCustomer.model.js</js>
<js>/js/models/customerProfileChanges/profileChanges.model.js</js>
<js>/js/models/customerProfileChanges/customerProfileChanges.model.js</js>
<js>/js/models/customerOverview/currentAllocation.model.js</js>
<js>/js/models/documentation/documentation.model.js</js>
<js>/js/models/documentation/tax.model.js</js>
<js>/js/models/documentation/taxReduction.model.js</js>
<js>/js/models/orderform/orderformOrderPosition.model.js</js>
<js>/js/models/orderform/orderformDeposit.model.js</js>
<js>/js/models/orderform/orderform.model.js</js>
<js>/js/views/customerSelection/customerSelectionPage.view.js</js>
<js>/js/views/customerSelection/customerSearch.view.js</js>
<js>/js/views/customerSelection/newCustomer.view.js</js>
<js>/js/views/customerProfile/customerProfilePage.view.js</js>
<js>/js/views/customerProfile/customerProfileByLaw.view.js</js>
<js>/js/views/customerReports/customerReportRow.view.js</js>
<js>/js/views/customerReports/customerReportsTable.view.js</js>
<js>/js/views/customerReports/customerReportsPage.view.js</js>
<js>/js/views/customerProfileChanges/customerProfileChangesPage.view.js</js>
<js>/js/views/customerProfileChanges/customerProfileChangesRow.view.js</js>
<js>/js/views/customerProfileChanges/customerProfileChangesTable.view.js</js>
<js>/js/models/domain/portfolios/instrumentCategory.model.js</js>
<js>/js/models/domain/portfolios/instrumentInfo.model.js</js>
<js>/js/models/domain/portfolios/position.model.js</js>
<js>/js/models/domain/portfolios/role.model.js</js>
<js>/js/models/domain/portfolios/portfolioNode.model.js</js>
<js>/js/models/domain/portfolios/portfolio.model.js</js>
<js>/js/models/domain/portfolios/modelPortfolio.model.js</js>
<js>/js/models/domain/portfolios/deposit.model.js</js>
<js>/js/models/domain/portfolios/account.model.js</js>
<js>/js/models/domain/portfolios/investmentParameters.model.js</js>
<js>/js/models/domain/portfolios/accountClassification.model.js</js>
<js>/js/models/domain/portfolios/manualCreatedAccount.model.js</js>
<js>/js/models/domain/portfolios/instrumentQuantity.model.js</js>
<js>/js/views/portfolios/depotsPageSummaryTable.view.js</js>
<js>/js/views/portfolios/depotsPageSummaryAccountTable.view.js</js>
<js>/js/views/portfolios/depotsPage.view.js</js>
<js>/js/views/portfolios/combination.view.js</js>
<js>/js/views/portfolios/analysis.view.js</js>
<js>/js/views/portfolios/investmentInfo.view.js</js>
<js>/js/views/portfolios/holistic.view.js</js>
<js>/js/views/portfolios/accountClassificationTable.view.js</js>
<js>/js/views/portfolios/instrumentTable.view.js</js>
<js>/js/views/portfolios/thirdPartyComponents.view.js</js>
<js>/js/views/portfolios/investmentSummaryTable.view.js</js>
<js>/js/views/start/start.view.js</js>
<js>/js/models/customerOverview/assetOverview.model.js</js>
<js>/js/models/customerOverview/nodeOverview.model.js</js>
<js>/js/views/customerOverview/depotDetails.view.js</js>
<js>/js/views/customerOverview/customerOverviewRow.view.js</js>
<js>/js/views/customerOverview/customerOverviewTable.view.js</js>
<js>/js/views/customerOverview/customerOverviewPage.view.js</js>
<js>/js/views/documentation/documentationPage.view.js</js>
<js>/js/views/documentation/documentationTaxes.view.js</js>
<js>/js/views/documentation/documentationVacationReplacement.view.js</js>
<js>/js/views/documentation/documentationFactsheetsAndKid.view.js</js>
<js>/js/views/orderform/orderformPosition.view.js</js>
<js>/js/views/orderform/orderformDepositTable.view.js</js>
<js>/js/views/orderform/orderformDeposit.view.js</js>
<js>/js/views/orderform/orderformPage.view.js</js>
<js>/js/views/model-allocation/modelAllocation.view.js</js>
<js>/js/views/model-allocation/modelPortfolioList.view.js</js>
<js>/js/views/model-allocation/modelAllocationTable.view.js</js>
<js>/js/views/model-allocation/modelAllocationRow.view.js</js>
<js>/js/models/model-allocation/positionAllocation.model.js</js>
<js>/js/models/model-allocation/asset-allocation.model.js</js>
<js>/js/models/model-allocation/current-asset-allocation.model.js</js>
<js>/js/models/product-selection/product-selection.module.js</js>
<js>/js/models/model-allocation/automatic-allocation.js</js>
<js>/js/views/product-selection/productSelectionPositionRow.view.js</js>
<js>/js/views/product-selection/productSelectionTable.view.js</js>
<js>/js/views/product-selection/productSelectionPage.view.js</js>
<js>/js/views/product-selection/savingsPlanSelection.view.js</js>
<js>/js/views/product-selection/MifidCellGenerator.js</js>
<js>/js/views/product-selection/recursiveHeader.view.js</js>
<js>/js/views/needs/focusPage.view.js</js>
<js>/js/models/needs/needs.model.js</js>
<js>/js/models/needs/needs-product-selection.model.js</js>
<js>/js/views/logout/logout.view.js</js>
<js>/js/views/product-search/productSearchTable.view.js</js>
<js>/js/views/product-search/hitList.view.js</js>
<js>/js/views/product-search/expandable.view.js</js>
<js>/js/models/domain/portfolios/link.model.js</js>
<js>/js/views/recommendationPortfolioPositions/recommendationPortfolioPositionsPage.view.js</js>
<js>/js/views/transactions/transactionsPage.view.js</js>
<js>/js/views/transactions/transactionsSummaryTable.view.js</js>
<js>/js/views/transactions/transactionsTableRow.view.js</js>
<js>/js/models/transaction/reallocationItem.model.js</js>
<js>/js/models/transaction/transaction.model.js</js>
<js>/js/views/user-profile/user-profile.view.js</js>
<js>/js/views/user-profile/userProfile.view.js</js>
<js>/js/views/sessions/sessions.js</js>
</group>
<group name="allcss">
<css>/scss/pages/_login.scss</css>
<css>/scss/pages/_customerSearch.scss</css>
<css>/scss/pages/_customerInfo.scss</css>
<css>/scss/pages/_customerProfile.scss</css>
<css>/scss/pages/_customerReports.scss</css>
<css>/scss/pages/_customerProfileChanges.scss</css>
<css>/scss/pages/_customerOverview.scss</css>
<css>/scss/pages/_workflow.scss</css>
<css>/scss/pages/_portfolios.scss</css>
<css>/scss/pages/_modelAllocation.scss</css>
<css>/scss/pages/_productSelection.scss</css>
<css>/scss/pages/_needs.scss</css>
<css>/scss/pages/_transactions.scss</css>
<css>/scss/pages/_startPage.scss</css>
<css>/scss/pages/_documentationPage.scss</css>
<css>/scss/pages/_orderformPage.scss</css>
<css>/scss/pages/_recommendation.scss</css>
<css>/scss/pages/_userProfile.scss</css>
</group>
</groups>
Finally in my web.xml I have:
<!-- ===================================================================================== -->
<!-- FILTERS -->
<!-- ===================================================================================== -->
<!-- Wro4j -->
<filter>
<filter-name>WebResourceOptimizer</filter-name>
<filter-class>ro.isdc.wro.http.WroFilter</filter-class>
</filter>
...
<!-- ===================================================================================== -->
<!-- FILTER MAPPINGS -->
<!-- ===================================================================================== -->
<!-- Wro4j -->
<filter-mapping>
<filter-name>WebResourceOptimizer</filter-name>
<url-pattern>/wro/*</url-pattern>
</filter-mapping>
...
am I doing something wrong? Is there something missing?
I was using version 1.4.7 with ro.isdc.wro.extensions.manager.ExtensionsConfigurableWroManagerFactory . Now I am trying with version 1.7.7 and ro.isdc.wro.manager.factory.ConfigurableWroManagerFactory but still get the same error. The stack trace is a bit different, but that's something expected since I am using a different factory:
2014-12-17 17:09:32,604 [http-bio-8080-exec-4] ERROR ro.isdc.wro.extensions.model.factory.SmartWroModelFactory - Using XmlModelFactory for model creation..
[FAIL] Model creation using XmlModelFactory failed. Trying another ...
[FAIL] Exception occured while building the model using: XmlModelFactory Cannot build model from XML: Invalid resource requested: /WEB-INF/wro.xml Using LazyWroModelFactoryDecorator for model creation..
[FAIL] Model creation using LazyWroModelFactoryDecorator failed. Trying another ...
[FAIL] Exception occured while building the model using: LazyWroModelFactoryDecorator Invalid model found! Using LazyWroModelFactoryDecorator for model creation..
[FAIL] Model creation using LazyWroModelFactoryDecorator failed. Trying another ...
[FAIL] Exception occured while building the model using: LazyWroModelFactoryDecorator Invalid model found!
2014-12-17 17:09:32,605 [http-bio-8080-exec-4] ERROR ro.isdc.wro.model.factory.FallbackAwareWroModelFactory - Error while creating the model
ro.isdc.wro.WroRuntimeException: Cannot create model using any of provided factories
at ro.isdc.wro.extensions.model.factory.SmartWroModelFactory.create(SmartWroModelFactory.java:209)
at ro.isdc.wro.extensions.model.factory.SmartWroModelFactory.create(SmartWroModelFactory.java:38)
at ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:27)
Regarding the location of the wro.xml, I have the following project tree under eclipse:
project_root
+src
+main
+WEB-INF
-web.xml
-wro.properties
-wro.xml

Upgrading Hazelcast from 2.5 to 3.1

I was using Hazelcast 2.5. Recently we noticed "APPARENT DEADLOCK" issue on our production servers. Somewhere we find that upgrading to Hazelcast 3.0 or greater can solve the problem. Now when I am trying to upgrade to 3.1, i am getting following error in ApplicationContext.xml and it is not recognizing namespace "hz" anymore.
applicationContext-hazelcast.xml contents before upgrading to 3.1 (Removed some namespaces)
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:cache="http://www.springframework.org/schema/cache"
xmlns:hz="http://www.hazelcast.com/schema/spring"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.hazelcast.com/schema/spring http://www.hazelcast.com/schema/spring/hazelcast-spring-2.5.xsd">
applicationContext-hazelcast.xml contents after upgrading to 3.1 (Removed some namespaces)
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:cache="http://www.springframework.org/schema/cache"
xmlns:hz="http://www.hazelcast.com/schema/spring"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.hazelcast.com/schema/spring http://www.hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd">
Error Message:
Multiple annotations found at this line:
- schema_reference.4: Failed to read schema document 'http://www.hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd', because 1) could not find the document; 2) the document could not be read; 3)
the root element of the document is not <xsd:schema>.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'hz:hazelcast'.
How can i do this ?
You're right looks like there's a problem downloading the 3.1 XSD. I'm getting a HTTP 403 when I try to use hazelcast-spring-3.1.
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:637)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:582)
at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:685)
at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:530)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2175)
... 31 more
When I upgrade to using hazelcast-spring-3.2 everything works for me and I can get a Hazelcast Instance via a Spring Bean. Could you try to upgrade to 3.2 and let me know if that works for you. In the meantime I'm going to raise an issue in github.com/hazelcast for the 3.1 issue.

How to make WebLogic 12c to use Java EE version 5 instead of 6?

We are migrating our application that runs on WebLogic 10 to WebLogic 12.
I specified the Java EE version to be 5 in application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
I don't understand why I still got this warning message on the console...
"<Warning> <Munger> <BEA-2156203> <A version attrib
ute was not found in element "application" in the deployment descriptor weblogic
.utils.classloaders.GenericClassLoader#1e21f52 finder: weblogic.utils.classloade
rs.CodeGenClassFinder#2696ac annotation: /META-INF/application.xml. A version at
tribute is required, but this version of the WebLogic Server will assume that th
e latest version is used. Future versions of WebLogic Server will reject descrip
tors that do not specify the Java EE version. To eliminate this warning, add an
appropriate "version=" to element "application" in the deployment descriptor.>"
I was able to deploy the application. But when I run the application, I got this error:
WARN - javax.servlet.ServletException: Could not find a RenderKit for "HTML_BASIC"
javax.servlet.ServletException: Could not find a RenderKit for "HTML_BASIC"
at javax.faces.webapp._ErrorPageWriter.throwException(_ErrorPageWriter.java:549)
at javax.faces.webapp.FacesServlet.handleLifecycleException(FacesServlet.java:293)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:187)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.IllegalArgumentException: Could not find a RenderKit for "HTML_BASIC"
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getResponseStateManager(RendererUtils.java:1181)
at org.apache.myfaces.lifecycle.DefaultRestoreViewSupport.isPostback(DefaultRestoreViewSupport.java:141)
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:80)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:178)
... 25 more
We are using JSF 1.2 and I did deploy jsf 1.2 before I deploy the application.
Here is my weblogic-application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application
xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd"
>
<wls:application-param>
<wls:param-name>webapp.encoding.default</wls:param-name>
<wls:param-value>UTF-8</wls:param-value>
</wls:application-param>
<wls:prefer-application-packages>
<wls:package-name>org.apache.*</wls:package-name>
<wls:package-name>javax.faces.*</wls:package-name>
<wls:package-name>com.sun.faces.*</wls:package-name>
<wls:package-name>org.mozilla.javascript.*</wls:package-name>
<wls:package-name>org.mozilla.classfile.*</wls:package-name>
</wls:prefer-application-packages>
<wls:prefer-application-resources>
<wls:resource-name>org.apache.*</wls:resource-name>
<wls:resource-name>javax.faces.*</wls:resource-name>
<wls:resource-name>com.sun.faces.*</wls:resource-name>
<wls:resource-name>META-INF/services/javax.servlet.ServletContainerInitializer</wls:resource-name>
<wls:resource-name>META-INF/services/com.sun.faces.spi.FacesConfigResourceProvider</wls:resource-name>
</wls:prefer-application-resources>
<wls:library-ref>
<wls:library-name>jsf</wls:library-name>
<wls:specification-version>1.2</wls:specification-version>
<wls:implementation-version>1.2.9.0</wls:implementation-version>
<wls:exact-match>true</wls:exact-match>
</wls:library-ref>
</wls:weblogic-application>
Update:
The 'Could not find a RenderKit for "HTML_BASIC"' error was caused by missing myfaces library. I added myfaces-api.jar and myfaces-imp.jar to /lib and the error is gone. After that my application runs fine. But I still get the warning message complaining about Jave EE Version descriptor missing.
Update 2:
It looks like the warning about Java EE version descriptor is caused by double deployments of jsf. Our application deploys jsf itself. If I don't deploy jsf 1.2 separately from admin console then I don't get the warning.

csv import with dataimporthandler solr

I am trying to use solr with DIH to index csv files.
I've patched my DIH library using patch SOLR-2549 mentioned on the solr wiki (see http://wiki.apache.org/solr/DataImportHandler#Configuration_in_data-config.xml-1) in order to import csv files without using Transformers along with LineEntityProcessor.
Unfortunately, I could not get my import work and I have the following error stack:
INFO: [csv] webapp=/solr path=/dataimport params={command=full-import&optimize=false&clean=true&commit=true&verbose=true} status=0 QTime=33 {deleteByQuery=*:*} 0 33
7 nov. 2012 14:16:03 org.apache.solr.common.SolrException log
GRAVE: Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.NullPointerException
at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:273)
at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:382)
at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:448)
at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:429)
Caused by: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.NullPointerException
at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:413)
at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:326)
at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:234)
... 3 more
Caused by: org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.NullPointerException
at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:542)
at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:411)
... 5 more
Caused by: java.lang.NullPointerException
at org.apache.solr.handler.dataimport.LineEntityProcessor.initDelimitedOrFixedWidth(LineEntityProcessor.java:142)
at org.apache.solr.handler.dataimport.LineEntityProcessor.init(LineEntityProcessor.java:115)
at org.apache.solr.handler.dataimport.EntityProcessorWrapper.init(EntityProcessorWrapper.java:74)
at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:430)
at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:498)
... 6 more
I think it's related to my data configuration.
This is my data-config.xml file:
<dataConfig>
<dataSource name="dfs" type="FileDataSource"/>
<document>
<entity name="sourcefile"
processor="FileListEntityProcessor"
fileName="rocinter.csv"
rootEntity="false"
baseDir="/user/xxx/work/solr/example/example-DIH/solr/csv/inputfolder"
>
<entity name="entryline"
processor="LineEntityProcessor"
url="${sourcefile.fileAbsolutePath}"
rootEntity="true"
dataSource="fds"
separator=","
>
</entity>
</entity>
</document>
</dataConfig>
Could anybody help me undestand this issue or provide a clear config file using patched LineEntityProcessor version to import csv files ?
I'v finally got an answer from the user mailing list.
Actually that was a bug in the patch.
A newer version of the patch is attached to jira issue.
see: SOLR-2549

Resources