Comments (3)
Error.log
DEBUG [2010-02-23 14:02:10,871] [VSensorLoader-Thread0] (TupleBasedSlidingHandler.java:331) - The original Query : select
max(timed) as timed,
sum(bt_deg_hr) /24 as bt_deg_day,
sum(am_deg_hr) /24 as am_deg_day,
sum(bm_deg_hr) /24 as bm_deg_day,
sum(ab_deg_hr) /24 as ab_deg_day,
sum(at_deg_hr) /24 as at_deg_day,
sum(bb_deg_hr) /24 as bb_deg_day
from wrapper
DEBUG [2010-02-23 14:02:10,871] [VSensorLoader-Thread0] (TupleBasedSlidingHandler.java:332) - The merged query : select
max(timed) as timed,
sum(bt_deg_hr) /24 as bt_deg_day,
sum(am_deg_hr) /24 as am_deg_day,
sum(bm_deg_hr) /24 as bm_deg_day,
sum(ab_deg_hr) /24 as ab_deg_day,
sum(at_deg_hr) /24 as at_deg_day,
sum(bb_deg_hr) /24 as bb_deg_day
from wrapper
where timed in (select timed from __562920518 where timed <= (select timed from _sql_view_helper_ where u_id='_303704454') and timed >= (select timed from _sql_view_helper_ where u_id='_303704454') - 86400000 ) order by timed desc of the StreamSource s1 of the InputStream: input1
DEBUG [2010-02-23 14:02:10,871] [VSensorLoader-Thread0] (StorageManager.java:1251) - Asking for connections to default DB=> busy: 3, max-size:8, idle:3
DEBUG [2010-02-23 14:02:10,871] [VSensorLoader-Thread0] (StorageManager.java:457) - Creating a view:create view _303704454 AS ( select
max(timed) as timed,
sum(bt_deg_hr) /24 as bt_deg_day,
sum(am_deg_hr) /24 as am_deg_day,
sum(bm_deg_hr) /24 as bm_deg_day,
sum(ab_deg_hr) /24 as ab_deg_day,
sum(at_deg_hr) /24 as at_deg_day,
sum(bb_deg_hr) /24 as bb_deg_day
from wrapper
where timed in (select timed from __562920518 where timed <= (select timed from _sql_view_helper_ where u_id='_303704454') and timed >= (select timed from _sql_view_helper_ where u_id='_303704454') - 86400000 ) order by timed desc )
ERROR [2010-02-23 14:02:10,886] [VSensorLoader-Thread0] (SQLViewQueryRewriter.java:45) - Table 'gsn.wrapper' doesn't exist
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'gsn.wrapper' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2643)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1356)
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169)
at gsn.storage.StorageManager.executeCreateView(StorageManager.java:459)
at gsn.storage.StorageManager.executeCreateView(StorageManager.java:448)
at gsn.beans.windowing.SQLViewQueryRewriter.initialize(SQLViewQueryRewriter.java:43)
at gsn.beans.windowing.TupleBasedSlidingHandler.addStreamSource(TupleBasedSlidingHandler.java:49)
at gsn.wrappers.AbstractWrapper.addListener(AbstractWrapper.java:75)
at gsn.beans.StreamSource.setWrapper(StreamSource.java:169)
at gsn.VSensorLoader.prepareStreamSource(VSensorLoader.java:375)
at gsn.VSensorLoader.prepareStreamSource(VSensorLoader.java:357)
at gsn.VSensorLoader.createInputStreams(VSensorLoader.java:310)
at gsn.VSensorLoader.loadPlugin(VSensorLoader.java:125)
at gsn.VSensorLoader.run(VSensorLoader.java:97)
at java.lang.Thread.run(Thread.java:619)
from gsn.
deg_days.xml
<?xml version="1.0" encoding="UTF-8"?>
<virtual-sensor name="deg_days" protected="false" priority="11" publish-to-microsoft-research-sensor-map="false">
<processing-class>
<class-name>gsn.vsensor.ScheduledStreamExporterVirtualSensor</class-name>
<init-params>
<param name="rate">86400000</param>
<param name="%start-time">2009-12-09T00:00:0.000+11:00</param>
<param name="url">jdbc:mysql://localhost:3306/csaw</param>
<param name="user">root</param>
<param name="password">URthe1</param>
<param name="driver">com.mysql.jdbc.Driver</param>
<param name="table">csaw_deg_days</param>
</init-params>
<output-specification rate="1"/>
<web-input/>
<output-structure>
<field name="at_deg_day" type="double"></field>
<field name="am_deg_day" type="double"></field>
<field name="ab_deg_day" type="double"></field>
<field name="bt_deg_day" type="double"></field>
<field name="bm_deg_day" type="double"></field>
<field name="bb_deg_day" type="double"></field>
</output-structure>
</processing-class>
<description>Data logging virtual sensor for CSAW flooring project with using
the Scheduled Bridge processing class</description>
<life-cycle pool-size="5"/>
<addressing>
<predicate key="geographical">127 Adelphi Rd.</predicate>
<predicate key="LATITUDE">-41.600763</predicate>
<predicate key="LONGITUDE">146.908344</predicate>
</addressing>
<storage history-size="30"/>
<streams>
<stream name="input1" rate="1000">
<source alias="s1" storage-size="24h" slide="2" sampling-rate="1.0">
<address wrapper="local">
<predicate key="query">select * from deg_hrs</predicate>
</address>
<query>select
max(timed) as timed,
sum(bt_deg_hr) /24 as bt_deg_day,
sum(am_deg_hr) /24 as am_deg_day,
sum(bm_deg_hr) /24 as bm_deg_day,
sum(ab_deg_hr) /24 as ab_deg_day,
sum(at_deg_hr) /24 as at_deg_day,
sum(bb_deg_hr) /24 as bb_deg_day
from wrapper
</query>
</source>
<query>select * from s1 </query>
</stream>
</streams>
</virtual-sensor>
from gsn.
I wasn't able to reproduce the bug with the latest version of GSN. Most likely it got corrected at some point. I'll close the issue, but feel free to open it again if you find another case where it appears.
from gsn.
Related Issues (20)
- By default, put GSN user files in user home HOT 2
- Consider using a tool like ZooKeeper (but simpler) to coordinate the different modules of GSN
- NOSQL support for GSN HOT 9
- deploying new sensor HOT 1
- Tiny-GSN Functionalities HOT 2
- h2 database gets initiliazed during startup event though not specified in gsn.xml file
- Storing to database HOT 1
- Location HOT 1
- Multiple value Sensor Deployment HOT 1
- Time Unit in GSN HOT 2
- Database Modification HOT 1
- Reliability of Values HOT 1
- How to enable debuging in GSN server ? HOT 1
- Error in input streams HOT 3
- Input Stream Error HOT 1
- Connecting various GSN's HOT 1
- database table HOT 1
- GSN configuration error HOT 29
- unable to load first virtual sensor
- gsn-release-1.1.6 in Eclipse shows error HOT 1
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 gsn.