Skip to content

Commit

Permalink
BIMServer-Fehler BimserverLockConflictException beim Aufbereiten einer
Browse files Browse the repository at this point in the history
hochgeladenen IFC-Datei
 http://bitnami/issues/7803
  • Loading branch information
WeltWeitBau committed Jan 11, 2024
1 parent 2c654e2 commit 7109757
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Bdb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
</parent>
<packaging>jar</packaging>
<name>Bdb</name>
Expand Down
2 changes: 1 addition & 1 deletion BimServer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
</parent>
<build>
<sourceDirectory>src</sourceDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ public BerkeleyKeyValueStore(Path dataDir, Properties properties) throws Databas
envConfig.setTxnTimeout(10, TimeUnit.SECONDS);

if(properties == null || !properties.containsKey(EnvironmentConfig.LOCK_TIMEOUT)) {
envConfig.setLockTimeout(1, TimeUnit.MILLISECONDS);
envConfig.setLockTimeout(2000, TimeUnit.MILLISECONDS);
}

LOGGER.info("bdb timeout ms:" + envConfig.getLockTimeout(TimeUnit.MILLISECONDS));

envConfig.setConfigParam(EnvironmentConfig.CHECKPOINTER_HIGH_PRIORITY, "true");
envConfig.setConfigParam(EnvironmentConfig.CLEANER_THREADS, "5");
Expand Down
2 changes: 1 addition & 1 deletion BimServerClientLib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
</parent>
<properties>
<cxf.version>3.3.2</cxf.version>
Expand Down
2 changes: 1 addition & 1 deletion BimServerJar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
</parent>
<build>
<sourceDirectory>src</sourceDirectory>
Expand Down
32 changes: 20 additions & 12 deletions BimServerWar/.settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -1,36 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">




<wb-module deploy-name="bimserverwar-1.3.0">

<wb-resource deploy-path="/WEB-INF/web.xml" source-path="/web.xml"/>


<wb-resource deploy-path="/WEB-INF/web.xml" source-path="/web.xml"/>



<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>




<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<dependent-module archiveName="bimserver-1.3.0.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/BimServer/BimServer">
<dependent-module archiveName="bimserver-1.3.2.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/BimServer/BimServer">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="bimserverclientlib-1.3.0.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/BimServerClientLib/BimServerClientLib">
<dependent-module archiveName="bimserverclientlib-1.3.2.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/BimServerClientLib/BimServerClientLib">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="shared-1.3.0.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/Shared/Shared">
<dependent-module archiveName="shared-1.3.2.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/Shared/Shared">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="pluginbase-1.3.0.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/PluginBase/PluginBase">
<dependent-module archiveName="pluginbase-1.3.2.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/PluginBase/PluginBase">
<dependency-type>uses</dependency-type>
</dependent-module>




<property name="java-output-path" value="/BimServerWar/target/classes"/>




<property name="context-root" value="bimserverwar"/>




</wb-module>




</project-modules>
2 changes: 1 addition & 1 deletion BimServerWar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
</parent>
<build>
<sourceDirectory>src</sourceDirectory>
Expand Down
22 changes: 22 additions & 0 deletions BimServerWar/src/org/bimserver/web/WarServerInitializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Properties;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
Expand Down Expand Up @@ -105,6 +107,9 @@ public void contextInitialized(ServletContextEvent servletContextEvent) {
} catch (IOException e1) {
e1.printStackTrace();
}

fetchBdbProperties(config);

config.setStartEmbeddedWebServer(false);
bimServer = new BimServer(config);

Expand All @@ -130,6 +135,23 @@ public void contextInitialized(ServletContextEvent servletContextEvent) {
}
servletContext.setAttribute("bimserver", bimServer);
}

private void fetchBdbProperties(BimServerConfig config) {
try {
Path bdbPropertiesFile = config.getHomeDir().resolve("bdb.properties");
if (Files.exists(bdbPropertiesFile)) {
try (InputStream inputStream = Files.newInputStream(bdbPropertiesFile)) {
Properties properties = new Properties();
properties.load(inputStream);
config.setBdbEnvironmentProperties(properties);
} catch (IOException e) {
e.printStackTrace();
}
}
} catch (Exception e) {
// no logger yet
}
}

private void setupLogging(Path homeDir) {
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
Expand Down
2 changes: 1 addition & 1 deletion PluginBase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
</parent>
<build>
<sourceDirectory>src</sourceDirectory>
Expand Down
2 changes: 1 addition & 1 deletion Shared/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
</parent>
<build>
<sourceDirectory>src</sourceDirectory>
Expand Down
2 changes: 1 addition & 1 deletion Tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
</parent>
<build>
<sourceDirectory>src</sourceDirectory>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.weltweitbau</groupId>
<artifactId>parent</artifactId>
<version>1.3.2</version>
<version>1.3.3</version>
<packaging>pom</packaging>
<description>This is the parent pom, no idea why this is being released</description>
<properties>
Expand All @@ -13,7 +13,7 @@
<url>https://github.com/WeltWeitBau/BIMserver.git</url>
<connection>scm:git:https://github.com/WeltWeitBau/BIMserver.git</connection>
<developerConnection>scm:git:https://github.com/WeltWeitBau/BIMserver.git</developerConnection>
<tag>v1.3.2</tag>
<tag>v1.3.3</tag>
</scm>
<organization>
<name>OpenSource BIM</name>
Expand Down

0 comments on commit 7109757

Please sign in to comment.