hadoop-cloud / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Internal Server Error when using InMemoryProducerExample #274

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the InMemoryProducerExample
2. Enter the URL, 
http://localhost:8887/InMemoryProducerExample.svc/SystemProperties

What is the expected output? 

I'm new to this, so not sure, but I expected a list of environment variables.

What do you see instead?

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code>ServerErrorException</code>
<message lang="en-US">Internal Server Error</message>
</error>

What version of the product are you using? 

<dependency>
    <groupId>org.odata4j</groupId>
    <artifactId>odata4j-examples</artifactId>
    <version>0.7.0</version>
</dependency>  
<dependency>
    <groupId>org.odata4j</groupId>
    <artifactId>odata4j-dist</artifactId>
    <version>0.7.0</version>
</dependency>  

On what operating system?

Mac OS X, 10.7.5, JDK v1.6.0

Please provide any additional information below.

I am running the above example directly from within Eclipse via a Maven project 
with the above entires in my pom.xml (full copy below)

<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.financialforce</groupId>
  <artifactId>externalobjects</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>externalobjects</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
<dependency>
    <groupId>org.odata4j</groupId>
    <artifactId>odata4j-examples</artifactId>
    <version>0.7.0</version>
</dependency>  
    <dependency>
        <groupId>org.odata4j</groupId>
        <artifactId>odata4j-dist</artifactId>
        <version>0.7.0</version>
    </dependency>  
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

Original issue reported on code.google.com by afawc...@financialforce.com on 6 Dec 2013 at 6:34

GoogleCodeExporter commented 8 years ago
I've tried enabling logging, by creating a /resources folder, adding it to the 
classpath and putting the following in each, but i don't see any additional 
information sadly.

log4j.properties

#
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#
#

log4j.rootCategory=WARN, O

# Stdout
log4j.appender.O=org.apache.log4j.ConsoleAppender

# Archive log files (one backup file here)
log4j.appender.O.layout=org.apache.log4j.PatternLayout
log4j.appender.O.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c: %m%n

log4j.logger.org.odata4j=ERROR
log4j.logger.org.apache.cxf=ERROR
log4j.logger.com.sun.jersey=ERROR

logging.properties

handlers= java.util.logging.ConsoleHandler

.level= INFO

java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

org.odata4j.level = FINEST

Original comment by afawc...@financialforce.com on 6 Dec 2013 at 6:37