Comments (20)
Did you build the system from source or deploy one of the packaged distributions from the downloads page? If building from source, make sure you have run the following to properly build the server:
mvn clean install
mvn -P buildServer install
from sitewhere.
Dear Derekadams,
I just clone the source code from github and building from source code and also build with maven, after building successful with maven command: "mvn clean install -Dmaven.test.skip=true" then I start tomcat inside eclipse. Above error appear during the time i start sitewhere web with tomcat :) I will try with "mvn -P buildServer install" command before start tomcat and will let you know the result 👍
from sitewhere.
Dear Derekadams,
After running "mvn -P buildServer install" command, then I continue to start tomcat inside eclipse, another exception is throw as below.
SEVERE: Servlet.service() for servlet [mvc] in context with path [/sitewhere] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at com.sitewhere.web.mvc.SiteWhereController.login(SiteWhereController.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
I am running on Mac OS X. I already install MongoDB and mosquitto on my Mac
Thanks
from sitewhere.
When you say you are running SiteWhere on Tomcat in Eclipse, is that an embedded Tomcat instance? If so, that's an untested configuration. The output of the "buildServer" command is a standalone Tomcat installation with the SiteWhere configuration files and WAR already in place (see deploy folder under the root for sitewhere-server-1.5.0.zip or tar.gz). You may be able to copy the contents of the conf/sitewhere directory from the distribution and get it to work in Eclipse, but we recommend running the system from the packaged archive.
from sitewhere.
Yes, my purpose is debugging sitewhere in eclipse directly. So that is why I start sitewhere inside eclipse. If I follow you to run tomcat from sitewhere-server-1.5.0.zip or tar.gz extract file it's ok. But if i run tomcat inside eclipse it's still error. I will check the configuration more deeply!
from sitewhere.
One option is to connect to the external SiteWhere/Tomcat instance remotely from Eclipse. That will still allow you to set breakpoints in the code just as if it were running locally (it's the method we use to debug). If you edit the command near the bottom of the startup.bat file (or similarly in startup.sh) as shown below:
call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
.. then connect from Eclipse with the following Remote Java Application settings..
The debugger should connect and allow you to debug the code.
Hope that helps!
from sitewhere.
That's great, I was Remote debugging of Tomcat using Eclipse successful. Thanks you so much
from sitewhere.
unable to load the adminiistartive console of the sitewhere. I have set up mongodb and mosquitto mqtt server but stiill unable startup the home page of sitewhere
from sitewhere.
Sitewhere now using Spring Boot, I think you should open another issue and describe more detail your issue!
from sitewhere.
@anhdenday can u provide installation procedure for installing sitewhere inn win7 using mosquitto mqtt...............i have tried installing using the same way as using hive mq ended up in a dead end
from sitewhere.
unable to run sitewhere admin console at http://localhost:8080/sitewhere
from sitewhere.
You just want to install or you want to debug from the IDE like Eclipse or IntellijUDEA?
from sitewhere.
Sitewhere installation problem #45
On Fri, Jul 15, 2016 at 1:13 AM, Freman [email protected] wrote:
Sitewhere now using Spring Boot, I think you should open another issue and
describle more detail your issue!—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AThdSUPdqHpH_gAt2OPjzsHz6UnnBOPfks5qV0EugaJpZM4HD716
.
from sitewhere.
i just want to install sitewhere....iam using the mongodb and mosquitto at
1883 port bith are up n running....started sitewhere server....stil unable
to open sitewhere admin
Iam not using eclipse IDE
On Fri, Jul 15, 2016 at 1:38 AM, Sameer Betageri [email protected]
wrote:
Sitewhere installation problem #45
On Fri, Jul 15, 2016 at 1:13 AM, Freman [email protected] wrote:
Sitewhere now using Spring Boot, I think you should open another issue
and describle more detail your issue!—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AThdSUPdqHpH_gAt2OPjzsHz6UnnBOPfks5qV0EugaJpZM4HD716
.
from sitewhere.
i have followed the innstallation video on youtube ....followed those steps
On Fri, Jul 15, 2016 at 1:40 AM, Sameer Betageri [email protected]
wrote:
i just want to install sitewhere....iam using the mongodb and mosquitto at
1883 port bith are up n running....started sitewhere server....stil unable
to open sitewhere adminIam not using eclipse IDE
On Fri, Jul 15, 2016 at 1:38 AM, Sameer Betageri [email protected]
wrote:Sitewhere installation problem #45
On Fri, Jul 15, 2016 at 1:13 AM, Freman [email protected] wrote:
Sitewhere now using Spring Boot, I think you should open another issue
and describle more detail your issue!—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AThdSUPdqHpH_gAt2OPjzsHz6UnnBOPfks5qV0EugaJpZM4HD716
.
from sitewhere.
The step like this:
1- Install JDK 8
2- Install MongoDB
3- Install Message Broker (like HiveMQ or Mosquitto)
4- Run sitewhere like tutorial at sitewhere page
cd /opt
wget https://s3.amazonaws.com/sitewhere/sitewhere-server-1.7.0.tgz
tar -zxvf sitewhere-server-1.7.0.tgz
mv sitewhere-server-1.7.0 /opt/sitewhere
export SITEWHERE_HOME=/opt/sitewhere
cd /opt/sitewhere/bin
sh startup.sh
Brgs
from sitewhere.
In the window, I just run inside the IDE like IntelliJ IDEA for debugging in my local.
To deploy on the server i am usually using Ubuntu.
I never install sitewhere server on window before, just run directly from the source code by using IDE like Eclipse or IntelliJ . But the step is the same.
1- Install JDK 8
2- Install MongoDB
3- Install Message Broker (like HiveMQ or Mosquitto)
4- Run sitewhere on IDE
from sitewhere.
The default admin console page should be: http://localhost:8080/sitewhere/admin/
from sitewhere.
can u provide link for steps to run from ide eclipse
On Fri, Jul 15, 2016 at 1:52 AM, Freman [email protected] wrote:
In the window, I just run inside the IDE like IntelliJ IDEA for debugging
in my local.
To deploy on the server i am usually using Ubuntu.
I never install sitewhere server on window before, just run directly from
the source code by using IDE like Eclipse or IntelliJ . But the step is the
same.1- Install JDK 8
2- Install MongoDB
3- Install Message Broker (like HiveMQ or Mosquitto)
4- Run sitewhere on IDE—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AThdSSEcyXIUMg5hVvIypY2hB1733Cmrks5qV0o3gaJpZM4HD716
.
from sitewhere.
Sitewhere 1.7 had problem with spring boot during running on eclipse. I've changed to use IntelliJ and it's ok. Following above step I've mentioned before and refer this issue #39 .
Hope this help
from sitewhere.
Related Issues (20)
- future isn't success, cause: (org.apache.zookeeper.ClientCnxnSocketNetty) [nioEventLoopGroup-2-1] java.nio.channels.ClosedChannelException
- WARN fsync-ing the write ahead log in SyncThread:2 took 3932ms which will adversely effect operation latency. File size is 67108880 bytes
- What is the purpose of spring native support v3.1.0 HOT 1
- How to deploy a highly reliable production environment instead of swctl deploying all services in a cluster HOT 2
- License, documentation, and developer resource concerns HOT 5
- stat /bin/grpc_health_probe: no such file or directory": unknown
- I want Sitewhere to support other relational databases besides the default database postgres95. Can you give me some suggestions? HOT 7
- javax.enterprise.inject.spi.DeploymentException: No config value of type HOT 1
- 3.1.0 will probably be released more
- Why doesn't the device have a name HOT 2
- swctl:v0.9.2 Debug mode cannot be turned on
- V3.0 can't add tenant HOT 1
- How to optimize Kafka messages with serious accumulation?
- helm install failed
- Cannot deploy sitewhere using HELM - Pods are failing with Error: SRCFG00014: Property sitewhere.config.k8s.pod.ip not found HOT 2
- How can I quickly add two microservices
- swctl create instance sitewhere failed
- Excellent open-source gentleman, noticed that the sitewhere project has not been updated for more than a year HOT 2
- Is there any simplified installation guide?
- Job cannot call the event management service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sitewhere.