RuleBaseLoader loadFromInputStream drools 2.5 compilation error on Java8 and weblogic12c - java-8

We are facing compilation error while compiling Rule Base from DB on server using drools-io-2.5.jar.
RuleBaseLoader.loadFromInputStream(stream);
stream is XML input stream picked from database.
This code is working with JAVA6 and weblogic 11g but we start getting error when we deployed on weblogic 12c on JAVA8.
Can someone please give a direction, how to resolve this.
Error:
<09-09-2020 18:12:47.235> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules Checking rule base: subscribertypemapping>
<09-09-2020 18:12:47.237> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules (Re)loading rule base: subscribertypemapping>
<09-09-2020 18:12:47.237> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules Loading subscribertypemapping rulebase>
<09-09-2020 18:12:48.301> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules Unexpected Error: A problem occured compiling the embedded code:
drools/org/subscribertypemapping_1599664368295/java/Function_0_0.java(28)
The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files
>
<09-09-2020 18:12:48.301> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules Problem with loading Rulebase: subscribertypemapping>
Thanks in advance !

Related

Elasticsearch main ERROR RollingFileManager (C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch.log)

About three days ago my local Elasticsearch instalation on Win 10 worked without any problems. Today as I tried to run elasticsearch it throws me this error. I dont understand what it means cause as you can see on the screenshot below log file exists. Why ES says java.io.FileNotFoundException? What it means and what should I do with it? Thanks a lot.
Here is console log
C:\Program Files\Elastic\Elasticsearch\6.4.0\bin
λ elasticsearch
2020-04-20 10:02:20,046 main ERROR RollingFileManager (C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch.log) java.io.FileNotFoundException: C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch.log (Access is denied) java.io.FileNotFoundException: C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch.log (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:640)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:608)
at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:113)
at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:114)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:188)
at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:145)
at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:61)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:123)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:959)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:899)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:891)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:514)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:238)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:250)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:547)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)
at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:163)
at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:119)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:294)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)
[org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory#3e84448c] unable to create manager for [C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData#4a7f959b[pattern=C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch-%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true), SizeBasedTriggeringPolicy(size=134217728)]), strategy=DefaultRolloverStrategy(min=-2147483648, max=2147483647, useMax=false), advertiseURI=null, layout=[%d{ISO8601}][%-5p ][%-25c{1.} ] [] %marker%.-10000m%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory#3e84448c] unable to create manager for [C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData#4a7f959b[pattern=C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch-%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true), SizeBasedTriggeringPolicy(size=134217728)]), strategy=DefaultRolloverStrategy(min=-2147483648, max=2147483647, useMax=false), advertiseURI=null, layout=[%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n, filePermissions=null, fileOwner=null]]
looks like you changed the ownership of your elasticsearch folder or now running it with a different user which doesn't have permission to write to you elasticsearch log file as clearly mentioned in the error message.
C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\elasticsearch.log
(Access is denied)
Please make sure that user which is running your elasticsearch process has access to this location C:\Program Files\Elastic\Elasticsearch\6.4.0\logs\.

Getting error on JBOSS start up Unable to instantiate driver class "oracle.jdbc.OracleDriver"

I am new to JBOSS server. For my application i am trying to create oracle JDBC connection in JBOSS.
I did the following things-
1) Created the folder oracle->main inside JBOSS_HOME/modules/com and placed ojdbc6.jar inside main folder.
2) created the module.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.oracle">
<resources>
<resource-root path="ojdbc6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
3) Created the ojdbc6.jar.index file.
4) In standalone.xml, register the driver as below-
<driver name="oracle" module="com.oracle">
<driver-class>
oracle.jdbc.OracleDriver
</driver-class>
</driver>
but while starting the JBOSS server it is showing an error as
11:31:09,847 WARN [org.jboss.as.connector.subsystems.datasources]
(ServerService Thread Pool -- 26) JBAS010402: Unable to instantiate
driver class "oracle.jdbc.OracleDriver": java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver from [Module "com.oracle:main" from local module loader #187814 (roots: C:\jboss-as-7.1.0.CR1b\modules)]
11:31:09,890 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 26) Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "oracle")
]) - failure description: "JBAS010434: Unable to instantiate driver class \"oracle.jdbc.OracleDriver\". See log (WARN) for more details"
I dont have the oracle on my local PC, it is on other machine.
Please help me.
Thanks in advance.
Try this link,Here its used for postgresql to create the datasource
JBoss AS 7 - Datasource configuration for postgresql
instead of postgres driver use oracle driver.

Assembly Binding Old Reference Exception

I have been trying to solve an assembly binding issue for the last 12 hours, with not much luck. Last week, I had upgraded all of the projects in a solution from EF 4.1.0.0 to EF 4.3.1.0. I added some tests this morning to an existing test project, cleaned and recompiled the solution. All the projects compile with no warnings or errors. At my entity framework call anywhere in the project, I receive the following exception:
Initialization method
NutricityPPCTests.Common.DizzleProductExtensionsTests.TestSetup threw
exception. System.IO.FileLoadException: System.IO.FileLoadException:
Could not load file or assembly 'EntityFramework, Version=4.1.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040).
I fired up the fusion assembly binding log viewer, and found the log entry that corresponds to the exception. I have verified that my test project, the MOMData project both are referencing the correct EF4.3.1.0 assembly. I verified there were no references to EF 4.1.0.0 in the project files. I deleted the contents of the obj and bin directories in both projects. The project has been cleaned and rebuilt so many times, that my hard drive is probably going to give out tomorrow.
*** Assembly Binder Log Entry (3/22/2012 # 5:55:11 PM) ***
The operation failed.
Bind result: hr = 0x80131040. No description available.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = NUTRICITY0\awolske
LOG: DisplayName = EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///C:/Users/awolske/Documents/NutricityWorkspace/Nutricity/NutricityPPCTests/bin/Release
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = QTAgent32.exe
Calling assembly : MomData, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\awolske\Documents\NutricityWorkspace\Nutricity\NutricityPPCTests\bin\Release\NutricityPPCTests.DLL.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Users/awolske/Documents/NutricityWorkspace/Nutricity/NutricityPPCTests/bin/Release/EntityFramework.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\Users\awolske\Documents\NutricityWorkspace\Nutricity\NutricityPPCTests\bin\Release\EntityFramework.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: The assembly reference did not match the assembly definition found.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
Where else should I be looking for the old referenced assembly?!? Any help would be welcome, and greatly appreciated! Thanks in advance for your time!
Add the following to your web.config file:
<runtime>
<assemblyBinding>
<dependentAssembly>
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.3.1.0" newVersion="4.3.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
I had the same error. Most of the projects in my solution where referencing the Entity Framework 4.3.0.0 dll, but when I checked the references for all the projects in my solution, I found some projects referencing the Entity Framework 4.1.0.0 dll. Removing and replacing them with new references to the Entity Framework 4.3.0.0 dll fixed the problem.

Content deployer error when publishing to Oracle broker db

I'm getting an error when trying to deploy content to an oracle broker database (I'm running Tridion 2011 sp1). I've had a search on the SDL Tridion forum and cannot find anyone that's had the same issue.
The error message in the cme is:
Committing Deployment Failed
Phase: Deployment Prepare Commit Phase failed, Unable to prepare transaction: tcm:0-55-66560,
org.hibernate.exception.SQLGrammarException: could not execute query,
org.hibernate.exception.SQLGrammarException: could not execute query, Unable to prepare transaction:
tcm:0-55-66560, org.hibernate.exception.SQLGrammarException: could not execute query,
org.hibernate.exception.SQLGrammarException: could not execute query
And in the deployer logs i get the following:
2012-02-24 15:07:27,866 WARN DeployPipelineExecutor - Phase: Deployment Prepare Commit Phase failure message: Unable to prepare transaction: tcm:0-55-66560, org.hibernate.exception.SQLGrammarException: could not execute query, org.hibernate.exception.SQLGrammarException: could not execute query for transaction: tcm:0-55-66560
2012-02-24 15:07:27,866 DEBUG DeployPipelineExecutor - Failure in Phase: Deployment Prepare Commit Phase attempt: 11 for transaction: tcm:0-55-66560
2012-02-24 15:07:27,866 ERROR DeployPipelineExecutor - Final attempt in Phase: Deployment Prepare Commit Phase failed for transaction: tcm:0-55-66560
2012-02-24 15:07:27,875 ERROR DeployPipelineExecutor - Original stacktrace for transaction: tcm:0-55-66560
com.tridion.deployer.ProcessingException: Unable to prepare transaction: tcm:0-55-66560, org.hibernate.exception.SQLGrammarException: could not execute query, org.hibernate.exception.SQLGrammarException: could not execute query
at com.tridion.deployer.phases.PreCommitPhase.handleFailure(PreCommitPhase.java:120) ~[cd_deployer.jar:na]
at com.tridion.deployer.phases.PreCommitPhase.execute(PreCommitPhase.java:101) ~[cd_deployer.jar:na]
at com.tridion.deployer.phases.DeployPipelineExecutor.runMainExecutePhase(DeployPipelineExecutor.java:186) [cd_deployer.jar:na]
at com.tridion.deployer.phases.DeployPipelineExecutor.doExecute(DeployPipelineExecutor.java:97) [cd_deployer.jar:na]
at com.tridion.deployer.phases.DeployPipelineExecutor.execute(DeployPipelineExecutor.java:61) [cd_deployer.jar:na]
at com.tridion.deployer.TransactionManager.handleDeployPackage(TransactionManager.java:80) [cd_deployer.jar:na]
at com.tridion.deployer.queue.QueueLocationHandler$1.run(QueueLocationHandler.java:176) [cd_deployer.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) [na:1.5.0_11]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) [na:1.5.0_11]
at java.util.concurrent.FutureTask.run(FutureTask.java:123) [na:1.5.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) [na:1.5.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) [na:1.5.0_11]
at java.lang.Thread.run(Thread.java:595) [na:1.5.0_11]
2012-02-24 15:07:27,875 INFO TransactionPersistence - Removing deployment transaction information: tcm:0-55-66560
2012-02-24 15:07:27,876 ERROR DeployPipelineExecutor - Unable to start processing deployment package with transactionId: tcm:0-55-66560
2012-02-24 15:07:27,880 DEBUG DeployPipelineExecutor - Checking if transaction is completed: tcm:0-55-66560 is true
2012-02-24 15:07:27,880 INFO DeployPipelineExecutor - Transaction is completed: tcm:0-55-66560
2012-02-24 15:07:27,882 INFO DeployPipelineExecutor - Finished executing deployment pipeline for: tcm:0-55-66560 in 2274 ms.
EDIT:
Here is the node from the cd_storage_conf.xml file:
<Storages>
<Storage Type="persistence" Id="ddeploy" dialect="ORACLESQL" Class="com.tridion.storage.persistence.JPADAOFactory">
<Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
<DataSource Class="oracle.jdbc.pool.OracleDataSource">
<Property Name="driverType" Value="thin"/>
<Property Name="networkProtocol" Value="tcp"/>
<Property Name="serverName" Value="secret"/>
<Property Name="portNumber" Value="1526"/>
<Property Name="databaseName" Value="secret"/>
<Property Name="user" Value="secret"/>
<Property Name="password" Value="secret"/>
</DataSource>
</Storage>
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile" defaultFilesystem="false">
<Root Path="/htdocs/en_US/" />
</Storage>
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultDataFile" defaultFilesystem="true" defaultStorage="true">
<Root Path="/htdocs/en_US/data" />
</Storage>
</Storages>
And the item types
<ItemTypes defaultStorageId="ddeploy" cached="false">
<Item typeMapping="Page" cached="false" storageId="defaultFile"/>
<Item typeMapping="Binary" cached="false" storageId="defaultFile"/>
</ItemTypes>
Any help would be greatly appreciated.
Doh! - I can confirm the issue here was that the oracle database user did not have access to the correct schema.
Still if anyone searches here for the same issue, they'll know the correct place to look :)
The error message indicates that the SQL query generated by hibernate doesn't execute properly on your database. Can you double check your storage config (perhaps post the <Storage/> element here. In particular, can you check that the dialect attribute is correct.

unable to start webmatrix

I recently installed WebMatrix. When I start the WebMatrix on my machine, it shows me the error and closes. Following are the error details
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: webmatrix.exe
Problem Signature 02: 7.9.0.0
Problem Signature 03: 4e694933
Problem Signature 04: Microsoft.WebMatrix.Core
Problem Signature 05: 7.9.0.0
Problem Signature 06: 4e69493b
Problem Signature 07: 1544
Problem Signature 08: 24
Problem Signature 09: System.ArgumentException
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
hi Justin Thanks for the update. here is the event log you asked for
Log Name:
Application
Source: Application Error
Date: 12/12/2011 11:57:52 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: HANU-LPT2.hanusoftware.local
Description:
Faulting application name: WebMatrix.exe, version: 7.1.1307.1, time stamp: 0x4e694933
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0xe0434352
Fault offset: 0x0000b9bc
Faulting process id: 0xd8
Faulting application start time: 0x01ccb8971a1262b8
Faulting application path: C:\Program Files (x86)\Microsoft WebMatrix\WebMatrix.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 6a9b0c3e-248a-11e1-ab5c-705ab6a78e2c
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2011-12-12T06:27:52.000000000Z" />
<EventRecordID>418956</EventRecordID>
<Channel>Application</Channel>
<Computer>HANU-LPT2.hanusoftware.local</Computer>
<Security />
</System>
<EventData>
<Data>WebMatrix.exe</Data>
<Data>7.1.1307.1</Data>
<Data>4e694933</Data>
<Data>KERNELBASE.dll</Data>
<Data>6.1.7601.17651</Data>
<Data>4e211319</Data>
<Data>e0434352</Data>
<Data>0000b9bc</Data>
<Data>d8</Data>
<Data>01ccb8971a1262b8</Data>
<Data>C:\Program Files (x86)\Microsoft WebMatrix\WebMatrix.exe</Data>
<Data>C:\Windows\syswow64\KERNELBASE.dll</Data>
<Data>6a9b0c3e-248a-11e1-ab5c-705ab6a78e2c</Data>
</EventData>
</Event>
Looks like it's well-known issue:
there is a known issue with Dev 11 Beta and WM 2 Beta. We are
actively working on an update to WM 2 Beta to address this - I
anticipate this will be released early next week (Chris Sfanos, Web
Platform Installer PM)
Recommendation to rollback:
Uninstall Microsoft SQL Server Compact 4.0 SP1 x64 ENU CTP1
Uninstall Web Platform Installer
Uninstall WebMatrix Beta 2
Uninstall IIS 7.5 Express
(If you installed PHP for WebMatrix) Delete the remaining PHP folder under C:\Program Files (x86)\IIS Express
Install Web Platform Installer 3.0 (http://www.microsoft.com/web/downloads/platform.aspx)
Install WebMatrix 1 from the Web Platform Installer 3.0
(If desired) Install PHP for WebMatrix from the Web Platform Installer 3.0
Link: http://forums.iis.net/p/1187677/2015970.aspx
I had the same issue with Webmatrix.
Go to Documents->IISExpress->config folder
Delete the applicationhost.config file and start webmatrix
It should start normally
found the solution on IIS forums
I had issues with my applicationhost.config the bindings that I setup stopped working.
<binding protocol="http" bindingInformation="*:50499:*" />
Had to become, still unsure why
<binding protocol="http" bindingInformation="*:50499:localhost" />

Resources